diff --git a/packages/ae-devtools-cli/a8n-transport/EVIDENCE.md b/packages/ae-devtools-cli/a8n-transport/EVIDENCE.md index 03399b10..08c1e071 100644 --- a/packages/ae-devtools-cli/a8n-transport/EVIDENCE.md +++ b/packages/ae-devtools-cli/a8n-transport/EVIDENCE.md @@ -248,3 +248,11 @@ candidate tarball. It is scoped to macOS arm64 + AE 2026 `26.5.3x9` + owned sessions; Windows, AE2027, VSCode+a8n real-host, Problems panel, and SDK/CEP/UXP surfaces remain unverified (Issue #21, `release-scope.json` stays `not-recorded` pending owner decision). + + +## Issue #366 follow-up — moved + +The #366 attach pre-flight / project-pin / comp-layer-loop real-host runs are +CLI `--out` artifacts (`ae-devtools.cli.run/v1`), not `a8n-transport` +real-run records, so they live under `../devtools-cli/evidence/` and are +documented in `../devtools-cli/EVIDENCE.md`. diff --git a/packages/ae-devtools-cli/a8n-transport/attach-target.mjs b/packages/ae-devtools-cli/a8n-transport/attach-target.mjs new file mode 100644 index 00000000..63cd4d84 --- /dev/null +++ b/packages/ae-devtools-cli/a8n-transport/attach-target.mjs @@ -0,0 +1,101 @@ +/** + * attach-target.mjs — the attach-only session opener boundary (Issue + * #366, hardened under #374). + * + * `a8n-attached` must NEVER be able to spawn a new After Effects process: + * the whole point of the mode is operating on the instance the USER + * already has open. ae-a8n's `AfterEffects.launch` does not honour that — + * when its attach attempt fails (busy/modal host, census race) it falls + * back to cold-starting a second AE, which is exactly the failure mode + * observed on Windows (ae-a8n #99, ae-devtools #366 Windows pre-flight + * findings). + * + * This module is the single seam where the attached lane obtains a + * session, and it is attach-ONLY: + * + * `AfterEffects.attach(options)` — the attach-only API ae-a8n ships + * for this contract (ae-a8n #269 / PR #270, released in the 0.5.0 + * train — never launches; refuses when no attachable instance + * exists). The option/return shape mirrors `launch`: + * `{ installDir?, hostScript, sessionRoot, authorization, + * target?: { pid } }` in, an AfterEffects session out. When the + * pre-flight census identified exactly one process, its pid is + * forwarded as `target.pid` so ae-a8n binds the SAME process — + * a pid that no longer names an in-scope AE is refused upstream. + * + * There is NO fallback: an ae-a8n build without `attach` cannot serve + * the attached lane at all, so this boundary refuses with + * ATTACHED_TARGET_UNSUPPORTED instead of calling `launch`. The pinned + * dependency must therefore carry ae-a8n >= 0.5.0 before the attached + * lane is usable from the registry package (dep flip tracked at + * release time — see Issue #374). + * + * Detection is deliberately explicit — no option-name guessing. If + * ae-a8n ships the capability under a different export, this module is + * the one place that changes. + */ + +/** True when the resolved ae-a8n module exposes the attach-only API. */ +export function hasAttachApi(AfterEffects) { + return ( + AfterEffects !== null && + typeof AfterEffects === "function" && + typeof AfterEffects.attach === "function" + ); +} + +/** + * Open a session against an already-running After Effects. + * + * @param {object} deps + * AfterEffects — ae-a8n AfterEffects class (or fixture) + * installDir — optional install pin forwarded to ae-a8n + * hostScriptPath — built extension host script + * sessionRoot — ae-a8n session root dir + * authorization — ae-a8n launch authorization grant + * targetPid — optional pid pin forwarded as `target.pid` (the + * census-identified process) + * @returns {Promise} the ae-a8n session (AfterEffects instance) + * @throws {Error} code ATTACHED_TARGET_UNSUPPORTED when the resolved + * ae-a8n does not export `AfterEffects.attach` — the attached + * lane has no spawn-capable fallback by contract (Issue #374). + * Whatever ae-a8n's attach throws propagates unchanged. + * + * Platform boundary: ae-a8n's attach on Windows refuses the default + * script transport (every script delivery there spawns `AfterFX.exe + * -r`); attach requires the `in-ae-dispatcher` transport or another + * attach-capable selection, which this opener does not supply. On + * win32 `AfterEffects.attach` therefore surfaces ae-a8n's typed + * refusal — fail-closed, nothing is launched (Issue #382). Windows + * attach remains UNVERIFIED on this path (#224). + */ +export async function openAttachTarget({ AfterEffects, installDir, hostScriptPath, sessionRoot, authorization, targetPid }) { + if (!hasAttachApi(AfterEffects)) { + const e = new Error( + "ae-a8n does not export AfterEffects.attach — the a8n-attached lane " + + "is attach-only and has no launch fallback (Issue #374). Pin " + + "@ido-bata/ae-a8n >= 0.5.0 or point aeA8nRoot at an ae-a8n build " + + "that carries the attach API (ae-a8n #269).", + ); + e.code = "ATTACHED_TARGET_UNSUPPORTED"; + throw e; + } + const options = { + ...(typeof installDir === "string" && installDir.length > 0 ? { installDir } : {}), + hostScript: hostScriptPath, + sessionRoot, + authorization, + }; + // Attach-only: ae-a8n refuses rather than spawn when no running, + // attachable instance exists. There is no fallback from here. + if (Number.isInteger(targetPid) && targetPid > 0) { + options.target = { pid: targetPid }; + } + const ae = await AfterEffects.attach(options); + // Provenance marker for evidence: which opener actually ran. + try { ae.attachApi = "AfterEffects.attach"; } catch { /* frozen session */ } + return ae; +} + +export const ATTACH_TARGET_DOC = + "attach-only boundary: AfterEffects.attach only; no launch fallback (Issues #366, #374)"; diff --git a/packages/ae-devtools-cli/a8n-transport/attached-session.mjs b/packages/ae-devtools-cli/a8n-transport/attached-session.mjs new file mode 100644 index 00000000..de969e34 --- /dev/null +++ b/packages/ae-devtools-cli/a8n-transport/attached-session.mjs @@ -0,0 +1,880 @@ +/** + * attached-session.mjs — explicit attach to an already-running After + * Effects for the dev-loop surfaces (Issue #366). + * + * This is a DIFFERENT mode from openSliceSession (session.mjs), which + * requires `ownership.kind === "owned"` for disposable conformance runs. + * Here the target is a host the USER opened — possibly with unsaved + * work — so the rules differ: + * + * - attach is explicit: the caller chooses session kind + * "a8n-attached" and may pin the target with installDir/aeVersion; + * - the session MUST come back `attached`. If ae-a8n reports `owned`, + * this launch started a fresh After Effects — that is not the + * requested target, so the session is closed (safe: owned) and the + * open refuses. `unknown` refuses the same way; + * - extension dispatch runs under an ae-a8n `authorization` grant + * naming ONLY `aeDevtools.trustedEval` — the narrowest scope that + * lets the trusted-execution runner reach the host. `hostEnvironment` + * and `menuCommands` are never granted on an attached session; + * - the returned session carries `policy.readOnly === true` unless the + * caller explicitly scoped mutating ops at open time + * (`options.mutatingOps`): then `policy.mutation.allowedOps` names + * exactly those ops and dev-loop surfaces refuse every other + * mutating op before consent. Ops that can destroy unsaved user + * work (ATTACHED_FORBIDDEN_OPS) are never grantable on an attached + * session, no matter what the caller asks for; + * - close() releases the connection only. ae-a8n never quits a host + * the session does not own, and this module adds no quit path. + * + * Target evidence: ae-a8n does not expose a host pid for attached + * sessions, so identity comes from the OS process census (pid + + * start stamp + executable path) plus what the session CAN attest — + * AE version, resolved install dir, ownership evidence, and the open + * project's file path when readable. It is evidence for the caller, + * and the baseline revalidateTarget() re-checks before every mutating + * dispatch — never authority by itself. + * + * Attach pre-flight (Issue #366): launching AE only to discover there + * is no usable target costs a full cold start plus a forced quit. + * Before launch the opener censuses running AE processes for the + * resolved install: no processes, or only processes fully attributed + * to other installs, refuse as ATTACHED_TARGET_NOT_RUNNING; two or + * more instances of the same install refuse as ambiguous + * (ATTACHED_TARGET_AMBIGUOUS); AE processes whose image path the OS + * would not disclose refuse as ATTACHED_TARGET_UNVERIFIED — falling + * through could cold-start a duplicate AE. Exactly one attributed + * match falls through to the attach-only opener (attach-target.mjs), + * where ae-a8n's own census + ownership check remain the authority. + * + * Attach-only boundary: the session is obtained through + * openAttachTarget(), which calls ae-a8n's `AfterEffects.attach` + * (never spawns) and refuses with ATTACHED_TARGET_UNSUPPORTED when the + * resolved ae-a8n does not export it — there is no launch fallback in + * this lane (Issue #374). + * + * Identity + re-validation (Issue #366): the matched census row's pid + * and process start stamp are recorded as `target.identity` together + * with the live AE version and open-project file. `revalidateTarget()` + * re-runs the census and re-reads version/project immediately before + * every mutating dispatch (wired as `targetGuard` through + * dev-loop/session-open.mjs → runOperation): a changed pid, a reused + * pid (start stamp differs), a second instance of the same install, an + * unreadable census, a version drift, or a project switch all refuse — + * fail-closed, nothing is sent. Sessions whose identity could not be + * attested at open (no pid) refuse mutating ops the same way; reads + * are unaffected. + * + * Project pin: `options.projectFile` names the project file the + * caller expects the attached AE to have open. After attach the open + * project's file is compared (normalized, case-folded on + * case-insensitive filesystems); a missing or different file refuses + * with ATTACHED_TARGET_MISMATCH before any dispatch. + */ +import { execFile } from "node:child_process"; +import { randomUUID } from "node:crypto"; +import { mkdtempSync, realpathSync, rmSync, statSync } from "node:fs"; +import { tmpdir } from "node:os"; +import { dirname, join, resolve } from "node:path"; +import { fileURLToPath } from "node:url"; +import { promisify } from "node:util"; + +import { createJsxRunner } from "../trusted-execution/runner.mjs"; +import { getOperation } from "../scripting-adapters/registry.mjs"; +import { createDispatchStore, defaultDispatchStoreDir } from "../trusted-execution/dispatch-store.mjs"; +import { createA8nTransport, EVAL_METHOD } from "./transport.mjs"; +import { resolveDispatchBudgets } from "./dispatch-budget.mjs"; +import { openAttachTarget } from "./attach-target.mjs"; +import { resolveAeA8n } from "./ae-a8n-resolve.mjs"; +import { + missingContractExports, + aeA8nContractError, + aeA8nHandshakeError, +} from "./compat.mjs"; +import { runHandshakeContractChecks } from "./contract.mjs"; +import { DEFAULT_CLOSE_TIMEOUT_MS } from "../dev-loop/session-close.mjs"; + +const execFileAsync = promisify(execFile); +const HERE = dirname(fileURLToPath(import.meta.url)); +const EXTENSION_MODULE = join(HERE, "extension.mjs"); + +/** + * Ops an attached session must NEVER dispatch, even when the caller + * explicitly lists them in mutatingOps. `project.close` runs + * CloseOptions.DO_NOT_SAVE_CHANGES — on a user's live AE that silently + * discards unsaved work, which no consent flag can make safe. The list + * is enforced at session open AND recorded in the policy so evidence + * shows the scope that was actually granted. + */ +export const ATTACHED_FORBIDDEN_OPS = Object.freeze(["project.close"]); + +/** + * Normalize and validate the caller's mutation scope BEFORE any AE + * process is touched. Every entry must name a registered MUTATING op; + * reads need no grant and unknown/typo'd ids fail fast here instead of + * silently widening or narrowing the session's authority. + * + * @returns {string[]} deduplicated op ids + */ +function normalizeMutatingOps(raw) { + if (raw === undefined || raw === null) return []; + if (!Array.isArray(raw)) { + const e = new Error("mutatingOps must be an array of operation ids"); + e.code = "ATTACHED_MUTATION_SCOPE"; + throw e; + } + const seen = new Set(); + for (const opId of raw) { + if (typeof opId !== "string" || opId.length === 0) { + const e = new Error(`mutatingOps entries must be non-empty strings, got ${JSON.stringify(opId)}`); + e.code = "ATTACHED_MUTATION_SCOPE"; + throw e; + } + if (seen.has(opId)) continue; + seen.add(opId); + if (ATTACHED_FORBIDDEN_OPS.includes(opId)) { + const e = new Error( + `'${opId}' can never be granted on an attached session: it discards ` + + `unsaved work or quits the host (DO_NOT_SAVE_CHANGES).`, + ); + e.code = "ATTACHED_MUTATION_FORBIDDEN"; + throw e; + } + let op = null; + try { op = getOperation(opId); } catch { op = null; } + if (op === null) { + const e = new Error(`mutatingOps names unknown operation '${opId}'`); + e.code = "ATTACHED_MUTATION_SCOPE"; + throw e; + } + if (op.mutating !== true) { + const e = new Error(`mutatingOps names '${opId}' which is not a mutating op — reads need no grant`); + e.code = "ATTACHED_MUTATION_SCOPE"; + throw e; + } + } + return [...seen]; +} + +/** + * Normalize a host path for comparison: slash-folded, trailing slashes + * stripped. Case is NOT folded — case-sensitive volumes (case-sensitive + * APFS, case-sensitive NTFS mounts) can hold distinct projects whose + * paths differ only by case, and folding would equate them. Alias + * validity (symlinks, `..`, case-variant spellings on case-insensitive + * volumes) is handled by hostPathsEqual via realpath/stat identity, + * not by string folding. + */ +function normalizeHostPath(p) { + return String(p).replace(/\\/g, "/").replace(/\/+$/, ""); +} + +/** + * Path equality for target identity. Exact normalized-string match + * first; otherwise compare filesystem identity (dev+ino after stat, + * which follows symlinks) so aliases of the SAME file still match + * regardless of spelling — while `Cut/Main.aep` vs `cut/Main.aep` on a + * case-sensitive volume remain distinct (different inodes or ENOENT). + * When either side cannot be stat'ed the answer is false: an + * unverifiable path equality must fail closed, never equate. + */ +function hostPathsEqual(a, b) { + const na = normalizeHostPath(a); + const nb = normalizeHostPath(b); + if (na === nb) return true; + try { + // bigint stats: dev/ino can exceed Number.MAX_SAFE_INTEGER on some + // filesystems — a rounded comparison could equate distinct files + // and accept the wrong project pin (CodeRabbit, Issue #390). + const sa = statSync(na, { bigint: true }); + const sb = statSync(nb, { bigint: true }); + // ino 0n means "no useful file index" on some filesystems — never + // treat two zero-inode stats as the same file. + return sa.dev === sb.dev && sa.ino !== 0n && sa.ino === sb.ino; + } catch { + return false; + } +} + +/** Normalize a project-file path the same way, resolving relative + * paths and symlinks where the filesystem allows. */ +function normalizeProjectFilePath(p) { + let s = String(p).trim(); + if (s.startsWith("file://")) { + try { s = fileURLToPath(s); } catch { /* keep raw */ } + } + s = resolve(s); + try { s = realpathSync.native(s); } catch { /* keep resolved form */ } + return normalizeHostPath(s); +} + +/** + * Census running After Effects processes for the attach pre-flight. + * + * Contract: resolves to an array of { pid, path, startedAt } rows — + * one per process whose image name is an After Effects executable + * (ANY install/version; `path` is its executable path, or null when + * the OS would not disclose it; `startedAt` is the OS process-start + * stamp used for pid-reuse detection, or null when unreadable), or + * null when the platform has no probe or the probe failed. Callers + * must treat null AND any row with a null path as inconclusive. + */ +async function defaultHostProcessProbe() { + if (process.platform === "darwin") { + const { stdout } = await execFileAsync("ps", ["-axo", "pid=,comm="], { + timeout: 5_000, maxBuffer: 4 * 1024 * 1024, + }); + const rows = []; + for (const line of stdout.split("\n")) { + const m = line.match(/^\s*(\d+)\s+(.+)$/); + if (m === null) continue; + const path = m[2].trim(); + const base = path.split("/").pop(); + // "After Effects" is the .app executable name on every macOS + // version; "AfterFX" covers helper naming drift. Path-less comm + // values still match by basename and stay unattributed. + if (base === "After Effects" || base === "AfterFX") { + rows.push({ pid: Number(m[1]), path: path.includes("/") ? path : null, startedAt: null }); + } + } + // Process-start stamps for pid-reuse detection: one extra `ps` + // per AE row (there is at most a handful). Unreadable → null, + // which weakens but never falsifies the identity check. + await Promise.all(rows.map(async (row) => { + try { + const { stdout: stamp } = await execFileAsync( + "ps", ["-o", "lstart=", "-p", String(row.pid)], + { timeout: 5_000 }, + ); + const s = (stamp ?? "").trim(); + row.startedAt = s.length > 0 ? s : null; + } catch { + row.startedAt = null; + } + })); + return rows; + } + if (process.platform === "win32") { + const { stdout } = await execFileAsync( + "powershell.exe", + [ + "-NoProfile", "-NonInteractive", "-Command", + "Get-CimInstance Win32_Process -Filter \"Name='AfterFX.exe'\" | " + + "ForEach-Object { \"$($_.ProcessId)`t$($_.ExecutablePath)`t$($_.CreationDate)\" }", + ], + { timeout: 8_000, maxBuffer: 1024 * 1024 }, + ); + const rows = []; + for (const line of stdout.split(/\r?\n/)) { + const t = line.indexOf("\t"); + if (t === -1) continue; + const pid = Number(line.slice(0, t).trim()); + if (!Number.isInteger(pid) || pid <= 0) continue; + const rest = line.slice(t + 1); + const t2 = rest.indexOf("\t"); + const path = (t2 === -1 ? rest : rest.slice(0, t2)).trim(); + const startedAt = t2 === -1 ? "" : rest.slice(t2 + 1).trim(); + rows.push({ + pid, + path: path.length > 0 ? path : null, + startedAt: startedAt.length > 0 ? startedAt : null, + }); + } + return rows; + } + return null; +} + +/** + * @param {object} options + * installDir — pin the AE install to attach to (forwarded to launch) + * aeVersion — optional expected AE version; a live version that + * differs refuses the session after attach + * workdir — scratch dir for the generated host script + * callTimeoutMs — per-dispatch ae.call budget (default 9500) + * deadlineMs — runner deadline; absent derives callTimeoutMs + + * margin so the deadline always covers the call + * budget, and an explicit deadline <= callTimeout + * refuses USAGE (Issue #383, shared with the owned + * opener via dispatch-budget.mjs) + * aeA8nRoot — local ae-a8n checkout root with a built dist/ + * mutatingOps — explicit op-level mutation scope (Issue #366): + * array of registered mutating opIds the caller + * consents to dispatch on the attached host. Empty/ + * absent keeps the session read-only. Validated + * before launch — a bad scope never opens AE. + * projectFile — expected open-project file path; after attach the + * live project's file must match (normalized) or the + * session refuses with ATTACHED_TARGET_MISMATCH. + * hostProcessProbe — test seam for the attach pre-flight census; + * defaults to the platform process scan. Injected + * probes return the same {pid,path} row contract. + */ +export async function openAttachedSliceSession(options = {}) { + const mutatingOps = normalizeMutatingOps(options.mutatingOps); + // Budget validation FIRST (with mutatingOps): an incompatible + // callTimeout/deadline pair refuses before ae-a8n resolution, + // census or attach — same rule as the owned opener (Issue #383). + const budgets = resolveDispatchBudgets({ + callTimeoutMs: options.callTimeoutMs, + deadlineMs: options.deadlineMs, + }); + const { AfterEffects, mod: aeA8nMod, cliPath, source: aeA8nSource, head: aeA8nHead } = + await resolveAeA8n({ aeA8nRoot: options.aeA8nRoot }); + const missing = missingContractExports(aeA8nMod); + if (missing.length > 0) { + throw aeA8nContractError({ + source: aeA8nSource, + version: aeA8nHead, + missing, + }); + } + const battery = runHandshakeContractChecks(aeA8nMod); + if (!battery.ok) { + throw aeA8nHandshakeError({ + source: aeA8nSource, + version: aeA8nHead, + failures: battery.checks.filter((c) => !c.ok), + }); + } + const optInstallDir = + typeof options.installDir === "string" && options.installDir.length > 0 + ? options.installDir + : null; + const expectedVersion = + typeof options.aeVersion === "string" && options.aeVersion.length > 0 + ? options.aeVersion + : null; + const expectedProjectFile = + typeof options.projectFile === "string" && options.projectFile.length > 0 + ? options.projectFile + : null; + const workdir = options.workdir ?? mkdtempSync(join(tmpdir(), "a8n-attached-")); + const sessionRoot = join(workdir, "a8n-session"); + + // Resolve the install identity BEFORE launch: the attach pre-flight + // needs the executable path to census running hosts, and the same + // resolution feeds target evidence after attach. A resolution + // failure is not fatal here — launch surfaces the real error. + let installInfo = null; + try { + if (typeof aeA8nMod.resolveInstall === "function") { + installInfo = await aeA8nMod.resolveInstall( + process.platform, + optInstallDir !== null ? { installDir: optInstallDir } : {}, + ); + } + } catch { + installInfo = null; + } + + const preflightError = (code, message) => { + const e = new Error(message); + e.code = code; + e.sliceWorkdir = workdir; + e.sliceSessionRoot = sessionRoot; + return e; + }; + + // Census row for the single install-attributed AE process, retained + // for the session identity (pid + process start stamp). Null when the + // probe was inconclusive — identity attestation is then weaker and + // mutating ops refuse at re-validation time. + let matchedCensusRow = null; + let processProbe = null; + let targetExe = null; + + // Attach pre-flight: refuse BEFORE any AE side effect unless the + // census finds exactly one process attributable to the target + // install. Anything else — none, foreign-only, ambiguous, or + // unattributable — refuses here; only a single match falls through + // to the attach-only opener, where ae-a8n's own census + ownership + // check decide. + if ( + installInfo !== null && + typeof installInfo.executable === "string" && + installInfo.executable.length > 0 + ) { + targetExe = installInfo.executable; + processProbe = typeof options.hostProcessProbe === "function" + ? options.hostProcessProbe + : defaultHostProcessProbe; + let rows = null; + try { + rows = await processProbe(installInfo); + } catch { + rows = null; + } + if (Array.isArray(rows)) { + const exact = rows.filter( + (r) => typeof r?.path === "string" && r.path.length > 0 && hostPathsEqual(r.path, installInfo.executable), + ); + const unattributed = rows.some((r) => typeof r?.path !== "string" || r.path.length === 0); + if (rows.length === 0) { + throw preflightError( + "ATTACHED_TARGET_NOT_RUNNING", + `a8n-attached found no running After Effects process for install ` + + `${installInfo.executable}; start AE first or use --session a8n ` + + `for a disposable owned session. No AE process was launched.`, + ); + } + if (exact.length >= 2) { + throw preflightError( + "ATTACHED_TARGET_AMBIGUOUS", + `${exact.length} After Effects processes match install ` + + `${installInfo.executable}; the attach target is ambiguous. ` + + `Close extra instances or pin a single target.`, + ); + } + if (exact.length === 0) { + if (unattributed) { + // AE processes exist but none could be attributed to this + // install (e.g. another user session / elevation hides the + // image path). We cannot prove there is no usable target, and + // falling through would cold-start a duplicate AE — refuse. + throw preflightError( + "ATTACHED_TARGET_UNVERIFIED", + `After Effects processes are running but none could be ` + + `attributed to install ${installInfo.executable} (process ` + + `image path undisclosed). Refusing to launch a duplicate; ` + + `run from the same user session as After Effects or close ` + + `the other instances.`, + ); + } + // Every running AE process is fully attributed to a DIFFERENT + // install — this install has no running target. + throw preflightError( + "ATTACHED_TARGET_NOT_RUNNING", + `a8n-attached found After Effects processes but none match ` + + `install ${installInfo.executable}; start that AE first or ` + + `use --session a8n for a disposable owned session. No AE ` + + `process was launched.`, + ); + } + // exact === 1: the target install has exactly one running + // process — retain it for identity attestation and fall through + // to the attach-only opener (a `-r` launcher can also transiently + // share the install path on Windows, so ownership stays the final + // authority). + matchedCensusRow = exact[0]; + } + } + + const hostScriptPath = join(workdir, "a8n-host-ext.js"); + await execFileAsync(process.execPath, [ + cliPath, "extension", "build", + "--extension", EXTENSION_MODULE, + "--out", hostScriptPath, + ], { timeout: 30_000 }); + + let ae; + try { + // Attach-only boundary (attach-target.mjs): AfterEffects.attach + // can never spawn a process; an ae-a8n without the attach API + // refuses here with ATTACHED_TARGET_UNSUPPORTED (Issue #374). + ae = await openAttachTarget({ + AfterEffects, + installDir: optInstallDir, + hostScriptPath, + sessionRoot, + // Pin the census-identified process when we have one — ae-a8n's + // attach refuses if that pid no longer names an in-scope AE. + targetPid: matchedCensusRow !== null && Number.isInteger(matchedCensusRow.pid) + ? matchedCensusRow.pid + : null, + // The narrowest grant that lets the trusted-execution runner reach + // the host: only the caller-facing eval method. hostEnvironment and + // menuCommands stay ungranted on a host we do not own. + authorization: { extensionMethods: [EVAL_METHOD] }, + }); + } catch (error) { + if (error !== null && typeof error === "object") { + error.sliceWorkdir = workdir; + error.sliceSessionRoot = sessionRoot; + } + throw error; + } + + try { + const info = ae.info(); + const ownership = ae.ownership(); + const liveVersion = typeof info.version === "string" ? info.version : null; + + // Resolve the concrete install identity for evidence (same + // best-effort mechanics as session.mjs). installInfo was already + // resolved before launch for the pre-flight census. + let installDir = optInstallDir; + let appPath = null; + try { + const exe = typeof installInfo?.executable === "string" ? installInfo.executable : null; + if (exe !== null && exe.length > 0) { + if (process.platform === "darwin") { + appPath = dirname(dirname(dirname(exe))); + installDir = installDir ?? appPath.replace(/\.app$/, ""); + } else { + installDir = installDir ?? dirname(exe); + } + } + } catch { + // marker metadata only + } + + const refuse = (code, message) => { + const refusal = new Error(message); + refusal.code = code; + refusal.sliceWorkdir = workdir; + refusal.sliceSessionRoot = sessionRoot; + refusal.sliceTracePath = ae.tracePath; + // No close here: the shared catch below performs the single + // bounded close for every post-launch failure. + throw refusal; + }; + + if (!ownership || ownership.kind !== "attached") { + refuse( + "ATTACHED_TARGET_NOT_RUNNING", + `a8n-attached requires an already-running After Effects; ` + + `this session reports ownership ${JSON.stringify(ownership)}. ` + + `Use --session a8n for a disposable owned session.`, + ); + } + if (expectedVersion !== null && liveVersion !== expectedVersion) { + refuse( + "ATTACHED_TARGET_MISMATCH", + `attached AE version ${JSON.stringify(liveVersion)} does not match ` + + `requested ${JSON.stringify(expectedVersion)}; nothing was dispatched`, + ); + } + + // Open-project identity, best-effort: a project that cannot be read + // is recorded as null, never guessed. + let project = null; + try { + if (typeof ae.project === "function") { + // ae.project() is async and resolves to a Project handle; + // .info() is a second call on that handle — awaiting the + // outer promise alone reads nothing. + const handle = await ae.project(); + const info = await handle.info(); + project = { + file: typeof info?.file === "string" ? info.file : null, + name: typeof info?.name === "string" ? info.name : null, + }; + } + } catch { + project = null; + } + + // Project pin: when the caller named the project file they expect + // open, the attached host must actually have THAT project open — + // "some AE answered" is not proof the target is the intended one. + // A null/unreadable project file can never satisfy a pin. + if (expectedProjectFile !== null) { + const actualFile = + project !== null && typeof project.file === "string" && project.file.length > 0 + ? project.file + : null; + const matched = + actualFile !== null && + hostPathsEqual(normalizeProjectFilePath(actualFile), normalizeProjectFilePath(expectedProjectFile)); + if (!matched) { + refuse( + "ATTACHED_TARGET_MISMATCH", + `attached project's file ${JSON.stringify(actualFile)} does not match ` + + `requested project ${JSON.stringify(expectedProjectFile)}; ` + + `nothing was dispatched`, + ); + } + } + + // Session identity (Issue #366): the baseline every mutating + // dispatch re-validates against. pid/processStart come from the + // pre-flight census row (null when the probe was inconclusive — + // mutating ops then refuse as UNVERIFIED); version and project are + // the live values read above. + const identity = { + pid: matchedCensusRow !== null && Number.isInteger(matchedCensusRow.pid) + ? matchedCensusRow.pid + : null, + processStart: typeof matchedCensusRow?.startedAt === "string" && + matchedCensusRow.startedAt.length > 0 + ? matchedCensusRow.startedAt + : null, + executable: targetExe ?? + (typeof installInfo?.executable === "string" ? installInfo.executable : null), + aeVersion: liveVersion, + projectFile: project !== null && typeof project.file === "string" && project.file.length > 0 + ? normalizeProjectFilePath(project.file) + : null, + projectName: project !== null && typeof project.name === "string" ? project.name : null, + ownershipEvidence: typeof ownership.evidence === "string" ? ownership.evidence : null, + attestedAt: new Date().toISOString(), + }; + + /** + * Re-validate the attached target immediately before a mutating + * dispatch (targetGuard contract: resolves {ok:true} or + * {ok:false, code, detail}; never throws). Fail-closed on every + * unprovable state — census unreadable, target gone, a second + * instance, pid/start-stamp drift, version drift, project switch. + */ + async function revalidateTarget() { + const refuseGuard = (code, detail) => ({ ok: false, code, detail }); + try { + if (processProbe === null || identity.executable === null || identity.pid === null) { + return refuseGuard( + "ATTACHED_TARGET_UNVERIFIED", + "session identity was not fully attested at open (no pid/exe); mutating dispatch refused", + ); + } + // Census verification, run TWICE around the version RPC and + // BEFORE the project read: a second instance of the same + // install can start while ae.info()/ae.project() is pending. + // The project attestation is deliberately the LAST observation + // (Issue #390): the census cannot see a project switch during + // its own await, and the residual project-read → dispatch + // window is covered in-eval by the host-side project guard + // (Issue #385). + const censusVerdict = async () => { + let rows = null; + try { + rows = await processProbe(installInfo); + } catch { + rows = null; + } + if (!Array.isArray(rows)) { + return refuseGuard( + "ATTACHED_TARGET_UNVERIFIED", + "host process census unreadable at re-validation; mutating dispatch refused", + ); + } + if (rows.some((r) => typeof r?.path !== "string" || r.path.length === 0)) { + return refuseGuard( + "ATTACHED_TARGET_UNVERIFIED", + "an After Effects process image is undisclosed; target identity unprovable", + ); + } + const matches = rows.filter( + (r) => typeof r?.path === "string" && r.path.length > 0 && hostPathsEqual(r.path, identity.executable), + ); + if (matches.length === 0) { + return refuseGuard( + "ATTACHED_TARGET_NOT_RUNNING", + "the attached After Effects process is gone; mutating dispatch refused", + ); + } + if (matches.length > 1) { + return refuseGuard( + "ATTACHED_TARGET_AMBIGUOUS", + `${matches.length} After Effects processes match the install; the target is ambiguous`, + ); + } + const row = matches[0]; + if (row.pid !== identity.pid) { + return refuseGuard( + "ATTACHED_TARGET_CHANGED", + `After Effects pid changed ${identity.pid} -> ${row.pid}; the original target is gone`, + ); + } + // A missing baseline start stamp means pid reuse can never be + // ruled out for the life of this session — refuse mutation + // rather than skipping the check (reads stay available). + if (identity.processStart === null) { + return refuseGuard( + "ATTACHED_TARGET_UNVERIFIED", + "the attached process start stamp was not attested at open; mutating dispatch refused", + ); + } + if (row.startedAt !== identity.processStart) { + const readable = typeof row.startedAt === "string" && row.startedAt.length > 0; + return refuseGuard( + readable ? "ATTACHED_TARGET_CHANGED" : "ATTACHED_TARGET_UNVERIFIED", + "After Effects process start stamp differs or is unreadable — possible pid reuse", + ); + } + return { ok: true, row }; + }; + + const firstCensus = await censusVerdict(); + if (firstCensus.ok !== true) return firstCensus; + + let liveVersion = null; + try { + const i = typeof ae.info === "function" ? ae.info() : null; + liveVersion = i !== null && typeof i === "object" && typeof i.version === "string" + ? i.version + : null; + } catch { + liveVersion = null; + } + if (liveVersion !== identity.aeVersion) { + return refuseGuard( + "ATTACHED_TARGET_CHANGED", + `After Effects version drifted ${JSON.stringify(identity.aeVersion)} -> ${JSON.stringify(liveVersion)}`, + ); + } + // Post-RPC census BEFORE the project read: the census checks + // process identity only, so it cannot detect a project switch + // made during its own await. Running it first makes the + // project attestation below the LAST observation before the + // ok verdict — the residual window (project read → dispatch) + // is covered inside the mutation itself by the host-side + // project guard (Issue #385 / withHostProjectGuard). + const secondCensus = await censusVerdict(); + if (secondCensus.ok !== true) return secondCensus; + // Project identity: writes require a SUCCESSFUL project + // attestation at re-validation — when the project cannot be + // read now, a project switch cannot be ruled out, so the + // weaker pid+version attestation is not enough for mutation. + // (Reads are unaffected: they never reach this guard.) + let liveProject = null; + try { + if (typeof ae.project === "function") { + const handle = await ae.project(); + const pinfo = await handle.info(); + liveProject = { + file: typeof pinfo?.file === "string" && pinfo.file.length > 0 + ? normalizeProjectFilePath(pinfo.file) + : null, + name: typeof pinfo?.name === "string" ? pinfo.name : null, + }; + } + } catch { + liveProject = null; + } + if (liveProject === null) { + return refuseGuard( + "ATTACHED_TARGET_UNVERIFIED", + "the open project could not be attested at re-validation; mutating dispatch refused", + ); + } + const fileSame = liveProject.file !== null && identity.projectFile !== null + ? hostPathsEqual(liveProject.file, identity.projectFile) + : liveProject.file === identity.projectFile; + if (!fileSame || liveProject.name !== identity.projectName) { + return refuseGuard( + "ATTACHED_TARGET_CHANGED", + `the open project changed since attach ` + + `(${JSON.stringify(identity.projectFile)} -> ${JSON.stringify(liveProject.file)}); ` + + `mutating dispatch refused`, + ); + } + return { ok: true }; + } catch (error) { + return refuseGuard( + "ATTACHED_TARGET_UNVERIFIED", + `target re-validation failed: ${error?.message ?? String(error)}`, + ); + } + } + + const pin = { + sessionId: `a8n-attached-${randomUUID()}`, + aeVersion: liveVersion, + dispatchId: `disp-${randomUUID()}`, + }; + const transport = createA8nTransport({ + ae, + callTimeoutMs: budgets.callTimeoutMs, + }); + transport.dispatchStore = createDispatchStore({ + dir: options.dispatchStoreDir ?? defaultDispatchStoreDir(), + }); + const runner = createJsxRunner({ + transport, + deadlineMs: budgets.deadlineMs, + }); + + const target = { + ownership: ownership.kind, + ownershipEvidence: typeof ownership.evidence === "string" ? ownership.evidence : null, + aeVersion: liveVersion, + installDir, + appPath, + project, + projectFile: expectedProjectFile, + identity, + // Which opener actually ran — always "AfterEffects.attach" now + // that the launch fallback is removed (Issue #374). + attachApi: typeof ae.attachApi === "string" ? ae.attachApi : null, + }; + + async function close() { + try { + // Attached hosts are never quit by ae-a8n; this releases the + // session's connection and staged files only. + await ae.close({ unsavedChanges: "refuse" }); + } finally { + if (options.workdir === undefined) { + rmSync(workdir, { recursive: true, force: true }); + } + } + } + + return { + ae, transport, runner, pin, info, ownership, close, workdir, + aeA8nSource, aeA8nHead, tracePath: ae.tracePath, sessionRoot, + installDir, appPath, target, + attached: true, + // Host-side project guard (Issue #385): the attested + // app.project.file.fsName (ae-a8n's project.info reports exactly + // that string). dev-loop surfaces forward it into runOperation, + // which injects it into the consent-bound source so the host + // re-verifies project identity inside the same evaluation that + // performs the op — closing the guard→eval TOCTOU window. + // Null when the open project has no file (unsaved) or identity + // was unreadable; hostProjectGuardRequired then refuses + // mutations that cannot be host-verified. + hostProjectGuard: + project !== null && typeof project.file === "string" && project.file.length > 0 + ? project.file + : null, + hostProjectGuardRequired: true, + // Re-validation immediately before each mutating dispatch — + // dev-loop surfaces forward this as `targetGuard` into + // runOperation, which invokes it after consent approval and + // before anything is sent (fail-closed). + revalidateTarget, + // Dispatch policy: read-only unless the caller scoped mutating ops + // at open time. dev-loop surfaces refuse anything outside + // mutation.allowedOps before consent (dev-loop/devloop.mjs); the + // scope is part of the returned session so every surface's + // evidence records exactly what was granted. + policy: mutatingOps.length === 0 + ? { readOnly: true, mode: "attached" } + : { + readOnly: false, + mode: "attached", + mutation: { allowedOps: mutatingOps }, + }, + negotiateCapabilities: aeA8nMod.negotiateCapabilities, + assertDispatchAllowed: aeA8nMod.assertDispatchAllowed, + }; + } catch (error) { + let closeError = null; + try { + if (typeof ae.close === "function") { + const closePromise = Promise.resolve() + .then(() => ae.close({ unsavedChanges: "refuse" })) + .then(() => null, (e) => { closeError = e; }); + let timedOut = false; + await Promise.race([ + closePromise, + new Promise((resolve) => setTimeout(() => { timedOut = true; resolve(); }, DEFAULT_CLOSE_TIMEOUT_MS)), + ]); + if (timedOut) closeError = new Error(`ae.close timed out after ${DEFAULT_CLOSE_TIMEOUT_MS}ms`); + } + } catch (e) { + closeError = e; + } + if (error !== null && typeof error === "object") { + try { error.sliceWorkdir ??= workdir; } catch { /* frozen error */ } + try { error.sliceSessionRoot ??= sessionRoot; } catch { /* frozen error */ } + try { error.sliceTracePath ??= ae.tracePath; } catch { /* trace path is best-effort */ } + if (closeError !== null) { + try { error.sliceCloseError = String(closeError?.message ?? closeError); } catch { /* frozen error */ } + } + } + throw error; + } +} diff --git a/packages/ae-devtools-cli/a8n-transport/dispatch-budget.mjs b/packages/ae-devtools-cli/a8n-transport/dispatch-budget.mjs new file mode 100644 index 00000000..a2a366ac --- /dev/null +++ b/packages/ae-devtools-cli/a8n-transport/dispatch-budget.mjs @@ -0,0 +1,50 @@ +/** + * dispatch-budget.mjs — shared per-call / runner-deadline resolution for + * the a8n session openers (Issue #383). + * + * The runner deadline bounds the WHOLE dispatch (transport send + host + * call + reply); callTimeoutMs bounds only the ae.call leg. When the + * deadline is at or below the call budget, a host operation that would + * have completed inside its budget is quarantined as UNKNOWN at the + * deadline instead — e.g. `--call-timeout-ms 30000` alone used to leave + * the runner on its 10s default, so a 15s host op reported UNKNOWN. + * + * Both openers (owned `session.mjs`, attached `attached-session.mjs`) + * resolve through this one function so the pair can never drift between + * session kinds. An explicitly incompatible pair (deadline <= + * callTimeout) refuses with USAGE before any launch/attach — there is + * no legitimate configuration where the runner must fire first. + */ + +export const DEFAULT_CALL_TIMEOUT_MS = 9_500; +/** Headroom between the call budget and the runner deadline (default pair was 9500/10000). */ +export const DEFAULT_DEADLINE_MARGIN_MS = 500; + +/** + * @param {object} options + * callTimeoutMs — per-dispatch ae.call budget; non-positive/non-finite + * values fall back to the default (CLI positiveMsFlag + * already filters them upstream) + * deadlineMs — runner deadline; absent derives callTimeout + margin + * @returns {{callTimeoutMs:number, deadlineMs:number}} + * @throws {Error} code "USAGE" when an explicit deadlineMs does not + * exceed callTimeoutMs + */ +export function resolveDispatchBudgets({ callTimeoutMs, deadlineMs } = {}) { + const callTimeout = Number.isFinite(callTimeoutMs) && callTimeoutMs > 0 + ? callTimeoutMs + : DEFAULT_CALL_TIMEOUT_MS; + const deadline = Number.isFinite(deadlineMs) && deadlineMs > 0 + ? deadlineMs + : callTimeout + DEFAULT_DEADLINE_MARGIN_MS; + if (!(deadline > callTimeout)) { + const e = new Error( + `deadlineMs (${deadline}) must exceed callTimeoutMs (${callTimeout}): ` + + "a runner deadline at or below the per-call budget reports UNKNOWN " + + "for host calls that would still have completed", + ); + e.code = "USAGE"; + throw e; + } + return { callTimeoutMs: callTimeout, deadlineMs: deadline }; +} diff --git a/packages/ae-devtools-cli/a8n-transport/session.mjs b/packages/ae-devtools-cli/a8n-transport/session.mjs index 5fffd7c4..d0a58fdf 100644 --- a/packages/ae-devtools-cli/a8n-transport/session.mjs +++ b/packages/ae-devtools-cli/a8n-transport/session.mjs @@ -38,6 +38,7 @@ import { promisify } from "node:util"; import { createJsxRunner } from "../trusted-execution/runner.mjs"; import { createDispatchStore, defaultDispatchStoreDir } from "../trusted-execution/dispatch-store.mjs"; import { createA8nTransport } from "./transport.mjs"; +import { resolveDispatchBudgets } from "./dispatch-budget.mjs"; import { resolveAeA8n } from "./ae-a8n-resolve.mjs"; import { missingContractExports, @@ -68,10 +69,20 @@ const EXTENSION_MODULE = join(HERE, "extension.mjs"); * aeA8nRoot — local ae-a8n checkout root with a built dist/; overrides * the pinned npm dependency (recorded in evidence) * callTimeoutMs — per-dispatch ae.call budget (default 9500) - * deadlineMs — runner deadline (default 10000; keep > callTimeoutMs) + * deadlineMs — runner deadline; absent derives callTimeoutMs + + * margin so the deadline always covers the call + * budget, and an explicit deadline <= callTimeout + * refuses USAGE (Issue #383, shared with the + * attached opener via dispatch-budget.mjs) * workdir — scratch dir for the generated host script (default: tmp) */ export async function openSliceSession(options = {}) { + // Budget validation FIRST: an incompatible callTimeout/deadline pair + // refuses before ae-a8n resolution, extension build or launch. + const budgets = resolveDispatchBudgets({ + callTimeoutMs: options.callTimeoutMs, + deadlineMs: options.deadlineMs, + }); const { AfterEffects, mod: aeA8nMod, cliPath, source: aeA8nSource, head: aeA8nHead } = await resolveAeA8n({ aeA8nRoot: options.aeA8nRoot }); // Contract gate (Issue #138): refuse BEFORE extension build / launch when @@ -197,7 +208,7 @@ export async function openSliceSession(options = {}) { }; const transport = createA8nTransport({ ae, - callTimeoutMs: options.callTimeoutMs ?? 9_500, + callTimeoutMs: budgets.callTimeoutMs, }); // Cross-instance dispatch dedup/quarantine (Issue #255): attach the // store to the TRANSPORT, not the runner — every createJsxRunner() @@ -213,7 +224,7 @@ export async function openSliceSession(options = {}) { }); const runner = createJsxRunner({ transport, - deadlineMs: options.deadlineMs ?? 10_000, + deadlineMs: budgets.deadlineMs, }); async function close() { diff --git a/packages/ae-devtools-cli/a8n-transport/tests/attached-session.test.mjs b/packages/ae-devtools-cli/a8n-transport/tests/attached-session.test.mjs new file mode 100644 index 00000000..f14f6324 --- /dev/null +++ b/packages/ae-devtools-cli/a8n-transport/tests/attached-session.test.mjs @@ -0,0 +1,926 @@ +/** + * attached-session tests — Issue #366 vertical slice. + * + * Automated-test level: fixture ae-a8n roots stub AfterEffects.launch; + * no real After Effects is contacted. Real-host evidence is recorded + * separately (a8n-transport/EVIDENCE.md). + * + * Covered invariants: + * - the launch carries ONLY the extensionMethods grant for + * aeDevtools.trustedEval (no hostEnvironment/menuCommands); + * - ownership must be "attached" — an "owned" result means this launch + * started a fresh AE, which is not the requested target: refuse and + * close; + * - an aeVersion pin mismatch refuses after attach; + * - the returned session is read-only at the dev-loop policy level. + */ +import { test } from "node:test"; +import assert from "node:assert/strict"; +import { mkdtempSync, mkdirSync, writeFileSync, appendFileSync, readFileSync, rmSync } from "node:fs"; +import { tmpdir } from "node:os"; +import { dirname, join } from "node:path"; +import { fileURLToPath, pathToFileURL } from "node:url"; + +import { openAttachedSliceSession } from "../attached-session.mjs"; +import { execute as devloopExecute, verify as devloopVerify } from "../../dev-loop/devloop.mjs"; +import * as okModule from "./fixtures/handshake-ok.mjs"; + +const HERE = dirname(fileURLToPath(import.meta.url)); +const OK_FIXTURE_URL = pathToFileURL(join(HERE, "fixtures", "handshake-ok.mjs")).href; + +/** + * Fixture root whose AfterEffects.launch returns a scripted fake `ae`. + * AE_FIXTURE_BEHAVIOR selects the post-launch shape: + * "attached-ok" — ownership attached, version 26.5-fake, project read + * "owned" — ownership owned (fresh AE — must refuse) + * "version-mismatch" — attached but live version differs from pin + * launchArgs (exported) records every launch() options object. + */ +function launchFixtureRoot() { + const root = mkdtempSync(join(tmpdir(), "a8n-att-fixture-")); + mkdirSync(join(root, "dist"), { recursive: true }); + writeFileSync( + join(root, "package.json"), + JSON.stringify({ name: "ae-a8n-fixture", version: "0.0.0-test" }), + ); + const okUrl = JSON.stringify(OK_FIXTURE_URL); + writeFileSync(join(root, "dist", "index.js"), ` +import { appendFileSync } from "node:fs"; +const callLog = () => { + const f = process.env.AE_FIXTURE_CALL_LOG; + if (typeof f === "string" && f.length > 0) appendFileSync(f, "project\\n"); +}; +export * from ${okUrl}; +export const launchArgs = []; +export const launchLog = []; +export const attachArgs = []; +// Read at launch() time, not import time — one fixture root serves +// several behavior selections within a single test. +const behavior = () => process.env.AE_FIXTURE_BEHAVIOR ?? "attached-ok"; +// Install resolution is env-gated: unset → null → the attach +// pre-flight is skipped, so existing tests stay hermetic. Set +// AE_FIXTURE_INSTALL_EXE to exercise the pre-flight census (paired +// with an injected hostProcessProbe — never a real process scan). +export const resolveInstall = async () => + process.env.AE_FIXTURE_INSTALL_EXE + ? { executable: process.env.AE_FIXTURE_INSTALL_EXE, installDir: "/fake/install" } + : null; +const openImpl = async (options, sink) => { + (sink?.args ?? launchArgs).push(options ?? {}); + const entry = { closed: 0 }; + (sink?.log ?? launchLog).push(entry); + const b = behavior(); + const version = b === "version-mismatch" ? "99.9-fake" : "26.5-fake"; + return { + info: () => ({ version, build: "9" }), + ownership: () => ({ + kind: b === "owned" ? "owned" : "attached", + evidence: "fixture-evidence", + }), + project: () => { + if (process.env.AE_FIXTURE_PROJECT_FAIL === "1") { + throw new Error("fixture: project unreadable"); + } + return { + info: async () => { + callLog(); + return { + file: process.env.AE_FIXTURE_PROJECT_FILE ?? "/tmp/user-project.aep", + name: process.env.AE_FIXTURE_PROJECT_NAME ?? "user-project", + itemCount: 3, + }; + }, + }; + }, + call: async () => { throw new Error("call not used in fixture tests"); }, + close: async () => { entry.closed += 1; }, + tracePath: "/tmp/fake-a8n-trace.jsonl", + }; + }; +export const AfterEffects = Object.assign(function AfterEffects() {}, { + launch: (options) => openImpl(options, { args: launchArgs, log: launchLog }), + // Attach-only API (ae-a8n >= 0.5.0 contract): present by default so + // tests exercise the only supported opener; AE_FIXTURE_NO_ATTACH=1 + // removes it to cover the ATTACHED_TARGET_UNSUPPORTED refusal. + // Records into attachArgs so tests can prove which opener ran. + ...(process.env.AE_FIXTURE_NO_ATTACH !== "1" + ? { attach: (options) => { attachArgs.push(options ?? {}); return openImpl(options, { args: launchArgs, log: launchLog }); } } + : {}), +}); +`); + writeFileSync(join(root, "dist", "cli.js"), ` +import { writeFileSync } from "node:fs"; +const outIndex = process.argv.indexOf("--out"); +if (outIndex === -1) { console.error("fixture cli: --out is required"); process.exit(2); } +writeFileSync(process.argv[outIndex + 1], "// fixture host script"); +`); + return root; +} + +async function importFixture(root) { + return import(pathToFileURL(join(root, "dist", "index.js")).href); +} + +function withEnvVars(vars, fn) { + const prev = {}; + for (const [k, v] of Object.entries(vars)) { + prev[k] = process.env[k]; + if (v === undefined) delete process.env[k]; + else process.env[k] = v; + } + return Promise.resolve() + .then(fn) + .finally(() => { + for (const [k, v] of Object.entries(prev)) { + if (v === undefined) delete process.env[k]; + else process.env[k] = v; + } + }); +} + +function withBehavior(value, fn) { + return withEnvVars({ AE_FIXTURE_BEHAVIOR: value }, fn); +} + +test("openAttachedSliceSession: attaches with narrow extensionMethods grant only", async () => { + const root = launchFixtureRoot(); + const workdir = mkdtempSync(join(tmpdir(), "a8n-att-wd-")); + try { + await withBehavior("attached-ok", async () => { + const s = await openAttachedSliceSession({ aeA8nRoot: root, workdir }); + try { + assert.equal(s.attached, true); + assert.deepEqual(s.policy, { readOnly: true, mode: "attached" }); + assert.equal(s.ownership.kind, "attached"); + assert.equal(s.info.version, "26.5-fake"); + assert.equal(s.target.project.file, "/tmp/user-project.aep"); + const { launchArgs } = await importFixture(root); + assert.equal(launchArgs.length, 1); + const auth = launchArgs[0].authorization; + assert.deepEqual(auth, { extensionMethods: ["aeDevtools.trustedEval"] }); + assert.equal(auth.hostEnvironment, undefined); + assert.equal(auth.menuCommands, undefined); + } finally { + await s.close(); + } + }); + } finally { + rmSync(root, { recursive: true, force: true }); + rmSync(workdir, { recursive: true, force: true }); + } +}); + +test("openAttachedSliceSession: owned result refuses — fresh AE is not the target", async () => { + const root = launchFixtureRoot(); + const workdir = mkdtempSync(join(tmpdir(), "a8n-att-wd-")); + try { + await withBehavior("owned", async () => { + await assert.rejects( + openAttachedSliceSession({ aeA8nRoot: root, workdir }), + (e) => e.code === "ATTACHED_TARGET_NOT_RUNNING", + ); + const { launchLog } = await importFixture(root); + assert.equal(launchLog[0].closed, 1, "the freshly launched owned AE must be closed"); + }); + } finally { + rmSync(root, { recursive: true, force: true }); + rmSync(workdir, { recursive: true, force: true }); + } +}); + +test("openAttachedSliceSession: aeVersion pin mismatch refuses after attach", async () => { + const root = launchFixtureRoot(); + const workdir = mkdtempSync(join(tmpdir(), "a8n-att-wd-")); + try { + await withBehavior("version-mismatch", async () => { + await assert.rejects( + openAttachedSliceSession({ aeA8nRoot: root, workdir, aeVersion: "26.5-fake" }), + (e) => e.code === "ATTACHED_TARGET_MISMATCH", + ); + }); + // Matching pin on the same behavior still opens (live is 99.9-fake). + await withBehavior("attached-ok", async () => { + const s = await openAttachedSliceSession({ + aeA8nRoot: root, workdir, aeVersion: "26.5-fake", + }); + await s.close(); + }); + } finally { + rmSync(root, { recursive: true, force: true }); + rmSync(workdir, { recursive: true, force: true }); + } +}); + +/* ------------------------------------------------------------------ */ +/* attach pre-flight + project pin (Issue #366) */ +/* ------------------------------------------------------------------ */ + +const FAKE_EXE = + "/fake/Adobe After Effects 2027.app/Contents/MacOS/After Effects"; +const FAKE_EXE_ENV = { AE_FIXTURE_INSTALL_EXE: FAKE_EXE }; + +test("preflight: zero AE processes refuses before any launch", async () => { + const root = launchFixtureRoot(); + const workdir = mkdtempSync(join(tmpdir(), "a8n-att-wd-")); + try { + await withEnvVars(FAKE_EXE_ENV, async () => { + await assert.rejects( + openAttachedSliceSession({ + aeA8nRoot: root, workdir, hostProcessProbe: async () => [], + }), + (e) => + e.code === "ATTACHED_TARGET_NOT_RUNNING" && + /No AE process was launched/.test(e.message), + ); + const { launchArgs, launchLog } = await importFixture(root); + assert.equal(launchArgs.length, 0, "pre-flight refusal must not call launch()"); + assert.equal(launchLog.length, 0); + }); + } finally { + rmSync(root, { recursive: true, force: true }); + rmSync(workdir, { recursive: true, force: true }); + } +}); + +test("preflight: two instances of the same install refuse as ambiguous", async () => { + const root = launchFixtureRoot(); + const workdir = mkdtempSync(join(tmpdir(), "a8n-att-wd-")); + try { + await withEnvVars(FAKE_EXE_ENV, async () => { + await assert.rejects( + openAttachedSliceSession({ + aeA8nRoot: root, + workdir, + hostProcessProbe: async () => [ + { pid: 101, path: FAKE_EXE }, + { pid: 202, path: FAKE_EXE }, + ], + }), + (e) => e.code === "ATTACHED_TARGET_AMBIGUOUS", + ); + const { launchArgs } = await importFixture(root); + assert.equal(launchArgs.length, 0); + }); + } finally { + rmSync(root, { recursive: true, force: true }); + rmSync(workdir, { recursive: true, force: true }); + } +}); + +test("preflight: unattributed rows refuse UNVERIFIED, foreign-only rows NOT_RUNNING", async () => { + const root = launchFixtureRoot(); + const workdir = mkdtempSync(join(tmpdir(), "a8n-att-wd-")); + try { + await withEnvVars(FAKE_EXE_ENV, async () => { + // An AE process whose image path the OS would not disclose can + // never be proven "not the target" — launching would risk a + // duplicate instance, so attach refuses before any side effect. + await assert.rejects( + openAttachedSliceSession({ + aeA8nRoot: root, workdir, + hostProcessProbe: async () => [{ pid: 1, path: null }], + }), + (e) => e.code === "ATTACHED_TARGET_UNVERIFIED", + ); + // Fully attributed rows for a DIFFERENT install prove this + // install has no running target. + await assert.rejects( + openAttachedSliceSession({ + aeA8nRoot: root, workdir, + hostProcessProbe: async () => [ + { pid: 2, path: "/other/Adobe After Effects 2026.app/Contents/MacOS/After Effects" }, + ], + }), + (e) => e.code === "ATTACHED_TARGET_NOT_RUNNING", + ); + // Only a failed/absent probe stays inconclusive and reaches + // launch(), where ae-a8n's own census + ownership decide. + const s = await openAttachedSliceSession({ + aeA8nRoot: root, workdir, hostProcessProbe: async () => null, + }); + await s.close(); + const { launchArgs } = await importFixture(root); + assert.equal(launchArgs.length, 1, "only an inconclusive probe reaches launch()"); + }); + } finally { + rmSync(root, { recursive: true, force: true }); + rmSync(workdir, { recursive: true, force: true }); + } +}); + +test("projectFile pin: matching project opens, mismatch refuses", async () => { + const root = launchFixtureRoot(); + const workdir = mkdtempSync(join(tmpdir(), "a8n-att-wd-")); + try { + await withEnvVars( + { ...FAKE_EXE_ENV, AE_FIXTURE_PROJECT_FILE: "/tmp/user-project.aep" }, + async () => { + const ok = await openAttachedSliceSession({ + aeA8nRoot: root, + workdir, + projectFile: "/tmp/user-project.aep", + hostProcessProbe: async () => [{ pid: 7, path: FAKE_EXE }], + }); + assert.equal(ok.target.projectFile, "/tmp/user-project.aep"); + await ok.close(); + + await assert.rejects( + openAttachedSliceSession({ + aeA8nRoot: root, + workdir, + projectFile: "/tmp/other-project.aep", + hostProcessProbe: async () => [{ pid: 7, path: FAKE_EXE }], + }), + (e) => e.code === "ATTACHED_TARGET_MISMATCH", + ); + const { launchLog } = await importFixture(root); + assert.equal(launchLog[1].closed, 1, "mismatch must close the attached session"); + }, + ); + } finally { + rmSync(root, { recursive: true, force: true }); + rmSync(workdir, { recursive: true, force: true }); + } +}); + +/* ------------------------------------------------------------------ */ +/* dev-loop read-only policy (Issue #366) */ +/* ------------------------------------------------------------------ */ + +const readOnlyPolicy = { readOnly: true, mode: "attached" }; +const stubRunner = { runScript: async () => ({ ok: true }) }; +const approvedConsent = async () => ({ approved: true }); + +test("devloop.execute: readOnly session refuses mutating ops before consent", async () => { + let consentCalls = 0; + const result = await devloopExecute({ + opId: "project.new", + args: {}, + runner: stubRunner, + pin: { sessionId: "s", aeVersion: "26.5", dispatchId: "d" }, + projectIdentity: "test", + consentProvider: async () => { consentCalls += 1; return { approved: true }; }, + trustedScriptOptIn: true, + scriptProvenance: "test", + sessionPolicy: readOnlyPolicy, + }); + assert.equal(result.status, "refused"); + assert.equal(result.stage, "session-policy"); + assert.equal(result.reason, "READ_ONLY_SESSION"); + assert.equal(consentCalls, 0, "consent must not even be consulted for a policy refusal"); +}); + +test("devloop.execute: readOnly session still allows read ops through", async () => { + // read.projectSummary is non-mutating; with a stub runner the dispatch + // reaches runOperation's own gates (which may still refuse downstream — + // what matters is the session policy did NOT refuse it). + const result = await devloopExecute({ + opId: "read.projectSummary", + args: {}, + runner: stubRunner, + pin: { sessionId: "s", aeVersion: "26.5", dispatchId: "d" }, + projectIdentity: "test", + consentProvider: approvedConsent, + trustedScriptOptIn: true, + scriptProvenance: "test", + sessionPolicy: readOnlyPolicy, + }); + assert.notEqual(result?.reason, "READ_ONLY_SESSION"); +}); + +test("devloop.verify: read op unaffected by session policy", async () => { + const result = await devloopVerify({ + readOpId: "read.projectSummary", + runner: stubRunner, + pin: { sessionId: "s", aeVersion: "26.5", dispatchId: "d" }, + projectIdentity: "test", + consentProvider: approvedConsent, + trustedScriptOptIn: true, + scriptProvenance: "test", + sessionPolicy: readOnlyPolicy, + }); + assert.notEqual(result?.reason, "READ_ONLY_SESSION"); +}); + +/* ------------------------------------------------------------------ */ +/* dev-loop mutation scope (Issue #366) */ +/* ------------------------------------------------------------------ */ + +const scopedPolicy = { + readOnly: false, + mode: "attached", + mutation: { allowedOps: ["project.new"] }, +}; + +test("devloop.execute: scoped session refuses mutating ops outside allowedOps", async () => { + let consentCalls = 0; + const result = await devloopExecute({ + opId: "project.save", + args: {}, + runner: stubRunner, + pin: { sessionId: "s", aeVersion: "26.5", dispatchId: "d" }, + projectIdentity: "test", + consentProvider: async () => { consentCalls += 1; return { approved: true }; }, + trustedScriptOptIn: true, + scriptProvenance: "test", + sessionPolicy: scopedPolicy, + }); + assert.equal(result.status, "refused"); + assert.equal(result.stage, "session-policy"); + assert.equal(result.reason, "ATTACHED_MUTATION_NOT_GRANTED"); + assert.equal(consentCalls, 0, "consent must not even be consulted for a scope refusal"); +}); + +test("devloop.execute: scoped session lets an allowed mutating op reach the canonical path", async () => { + // project.new is in allowedOps, so the session policy must NOT refuse; + // whatever runOperation decides downstream (stub runner may still + // refuse) is not a session-policy refusal. + const result = await devloopExecute({ + opId: "project.new", + args: {}, + runner: stubRunner, + pin: { sessionId: "s", aeVersion: "26.5", dispatchId: "d" }, + projectIdentity: "test", + consentProvider: approvedConsent, + trustedScriptOptIn: true, + scriptProvenance: "test", + sessionPolicy: scopedPolicy, + }); + assert.notEqual(result?.reason, "ATTACHED_MUTATION_NOT_GRANTED"); + assert.notEqual(result?.reason, "READ_ONLY_SESSION"); +}); + +test("devloop.execute: attached policy without allowedOps fails closed", async () => { + const result = await devloopExecute({ + opId: "project.new", + args: {}, + runner: stubRunner, + pin: { sessionId: "s", aeVersion: "26.5", dispatchId: "d" }, + projectIdentity: "test", + consentProvider: approvedConsent, + trustedScriptOptIn: true, + scriptProvenance: "test", + sessionPolicy: { readOnly: false, mode: "attached" }, + }); + assert.equal(result.status, "refused"); + assert.equal(result.reason, "ATTACHED_MUTATION_NOT_GRANTED"); +}); + +/* ------------------------------------------------------------------ */ +/* open-time mutation scope validation (Issue #366) */ +/* ------------------------------------------------------------------ */ + +test("openAttachedSliceSession: mutatingOps produces a scoped policy", async () => { + const root = launchFixtureRoot(); + const workdir = mkdtempSync(join(tmpdir(), "a8n-att-wd-")); + try { + await withBehavior("attached-ok", async () => { + const s = await openAttachedSliceSession({ + aeA8nRoot: root, workdir, mutatingOps: ["project.new", "project.new"], + }); + try { + assert.deepEqual(s.policy, { + readOnly: false, + mode: "attached", + mutation: { allowedOps: ["project.new"] }, + }); + } finally { + await s.close(); + } + }); + } finally { + rmSync(root, { recursive: true, force: true }); + rmSync(workdir, { recursive: true, force: true }); + } +}); + +test("openAttachedSliceSession: unknown/read-only/forbidden mutatingOps refuse BEFORE launch", async () => { + const cases = [ + { ops: ["no.such.op"], code: "ATTACHED_MUTATION_SCOPE" }, + { ops: ["read.projectSummary"], code: "ATTACHED_MUTATION_SCOPE" }, + { ops: ["project.close"], code: "ATTACHED_MUTATION_FORBIDDEN" }, + { ops: "project.new", code: "ATTACHED_MUTATION_SCOPE" }, + ]; + for (const { ops, code } of cases) { + const root = launchFixtureRoot(); + const workdir = mkdtempSync(join(tmpdir(), "a8n-att-wd-")); + try { + await assert.rejects( + openAttachedSliceSession({ aeA8nRoot: root, workdir, mutatingOps: ops }), + (e) => e.code === code, + `mutatingOps ${JSON.stringify(ops)} must refuse with ${code}`, + ); + const { launchArgs } = await importFixture(root); + assert.equal(launchArgs.length, 0, "a bad mutation scope must never reach AfterEffects.launch"); + } finally { + rmSync(root, { recursive: true, force: true }); + rmSync(workdir, { recursive: true, force: true }); + } + } +}); + +/* ------------------------------------------------------------------ */ +/* attach-only opener + target re-validation (Issues #366, #374) */ +/* ------------------------------------------------------------------ */ + +test("attach boundary: AfterEffects.attach is the only opener", async () => { + const root = launchFixtureRoot(); + const workdir = mkdtempSync(join(tmpdir(), "a8n-att-wd-")); + try { + await withEnvVars({ ...FAKE_EXE_ENV }, async () => { + const s = await openAttachedSliceSession({ + aeA8nRoot: root, + workdir, + hostProcessProbe: async () => [{ pid: 7, path: FAKE_EXE, startedAt: "start-1" }], + }); + try { + const { attachArgs } = await importFixture(root); + assert.equal(attachArgs.length, 1, "attach-only API must be used when present"); + assert.equal(s.target.attachApi, "AfterEffects.attach"); + assert.equal(s.target.identity.pid, 7); + assert.equal(s.target.identity.processStart, "start-1"); + assert.equal(s.target.identity.executable, FAKE_EXE); + // The census-identified pid is forwarded as the attach target pin. + assert.deepEqual(attachArgs[0].target, { pid: 7 }); + } finally { + await s.close(); + } + }); + } finally { + rmSync(root, { recursive: true, force: true }); + rmSync(workdir, { recursive: true, force: true }); + } +}); + +test("attach boundary: ae-a8n without attach API refuses — no launch fallback", async () => { + const root = launchFixtureRoot(); + const workdir = mkdtempSync(join(tmpdir(), "a8n-att-wd-")); + try { + await withEnvVars({ AE_FIXTURE_NO_ATTACH: "1" }, async () => { + await assert.rejects( + openAttachedSliceSession({ aeA8nRoot: root, workdir }), + (e) => e.code === "ATTACHED_TARGET_UNSUPPORTED", + ); + // The launch path must never run for the attached lane. + const { launchArgs } = await importFixture(root); + assert.equal(launchArgs.length, 0, "AfterEffects.launch must not be called"); + }); + } finally { + rmSync(root, { recursive: true, force: true }); + rmSync(workdir, { recursive: true, force: true }); + } +}); + +const STABLE_ROWS = [{ pid: 7, path: FAKE_EXE, startedAt: "start-1" }]; + +async function openWithProbe(root, workdir, probe, extra = {}) { + return openAttachedSliceSession({ + aeA8nRoot: root, + workdir, + hostProcessProbe: probe, + ...extra, + }); +} + +test("revalidateTarget: stable census + project passes", async () => { + const root = launchFixtureRoot(); + const workdir = mkdtempSync(join(tmpdir(), "a8n-att-wd-")); + try { + await withEnvVars(FAKE_EXE_ENV, async () => { + const s = await openWithProbe(root, workdir, async () => STABLE_ROWS); + try { + const g = await s.revalidateTarget(); + assert.equal(g.ok, true); + } finally { + await s.close(); + } + }); + } finally { + rmSync(root, { recursive: true, force: true }); + rmSync(workdir, { recursive: true, force: true }); + } +}); + +test("revalidateTarget: pid change / second instance / unreadable census / project switch all refuse", async () => { + const root = launchFixtureRoot(); + const workdir = mkdtempSync(join(tmpdir(), "a8n-att-wd-")); + const cases = [ + { + name: "pid changed", + probe: async () => [{ pid: 99, path: FAKE_EXE, startedAt: "start-1" }], + code: "ATTACHED_TARGET_CHANGED", + }, + { + name: "pid reused (start stamp differs)", + probe: async () => [{ pid: 7, path: FAKE_EXE, startedAt: "start-2" }], + code: "ATTACHED_TARGET_CHANGED", + }, + { + name: "second instance of same install", + probe: async () => [ + { pid: 7, path: FAKE_EXE, startedAt: "start-1" }, + { pid: 8, path: FAKE_EXE, startedAt: "start-0" }, + ], + code: "ATTACHED_TARGET_AMBIGUOUS", + }, + { + name: "target gone", + probe: async () => [{ pid: 8, path: "/other/AE.app/x", startedAt: "s" }], + code: "ATTACHED_TARGET_NOT_RUNNING", + }, + { + name: "unreadable census", + probe: async () => null, + code: "ATTACHED_TARGET_UNVERIFIED", + }, + { + name: "unattributed row", + probe: async () => [{ pid: 7, path: null, startedAt: null }], + code: "ATTACHED_TARGET_UNVERIFIED", + }, + ]; + try { + await withEnvVars(FAKE_EXE_ENV, async () => { + for (const c of cases) { + // Probe is per-open; revalidation re-invokes the SAME probe, so + // make it stateful: first call (pre-flight) stable, later calls + // return the drifted census. + let calls = 0; + const stateful = async () => (++calls === 1 ? STABLE_ROWS : c.probe()); + const s = await openWithProbe(root, workdir, stateful); + try { + const g = await s.revalidateTarget(); + assert.equal(g.ok, false, `${c.name} must refuse`); + assert.equal(g.code, c.code, `${c.name}: expected ${c.code}, got ${g.code}`); + } finally { + await s.close(); + } + } + }); + } finally { + rmSync(root, { recursive: true, force: true }); + rmSync(workdir, { recursive: true, force: true }); + } +}); + +test("revalidateTarget: project switch refuses; unattested identity refuses mutating guard", async () => { + const root = launchFixtureRoot(); + const workdir = mkdtempSync(join(tmpdir(), "a8n-att-wd-")); + try { + await withEnvVars( + { ...FAKE_EXE_ENV, AE_FIXTURE_PROJECT_FILE: "/tmp/project-a.aep", AE_FIXTURE_PROJECT_NAME: "proj-a" }, + async () => { + const s = await openWithProbe(root, workdir, async () => STABLE_ROWS); + try { + assert.equal((await s.revalidateTarget()).ok, true); + // Switch the project the fixture reports → next revalidation refuses. + process.env.AE_FIXTURE_PROJECT_FILE = "/tmp/project-b.aep"; + process.env.AE_FIXTURE_PROJECT_NAME = "proj-b"; + const g = await s.revalidateTarget(); + assert.equal(g.ok, false); + assert.equal(g.code, "ATTACHED_TARGET_CHANGED"); + } finally { + await s.close(); + } + }, + ); + // No install exe → no census → unattested identity. + await withBehavior("attached-ok", async () => { + const s = await openAttachedSliceSession({ aeA8nRoot: root, workdir }); + try { + const g = await s.revalidateTarget(); + assert.equal(g.ok, false); + assert.equal(g.code, "ATTACHED_TARGET_UNVERIFIED"); + } finally { + await s.close(); + } + }); + } finally { + rmSync(root, { recursive: true, force: true }); + rmSync(workdir, { recursive: true, force: true }); + } +}); + +test("runOperation targetGuard: mutating op refused before send when guard fails; reads unaffected", async () => { + let sends = 0; + const countingRunner = { runScript: async () => { sends += 1; return { outcome: "COMPLETED" }; } }; + const base = { + runner: countingRunner, + pin: { sessionId: "s", aeVersion: "26.5", dispatchId: "d" }, + projectIdentity: "test", + consentProvider: approvedConsent, + trustedScriptOptIn: true, + scriptProvenance: "test", + confirmDestructive: true, + }; + const failingGuard = async () => ({ ok: false, code: "ATTACHED_TARGET_CHANGED", detail: "pid drifted" }); + const r1 = await devloopExecute({ + opId: "project.new", args: {}, ...base, + sessionPolicy: { readOnly: false, mode: "attached", mutation: { allowedOps: ["project.new"] } }, + targetGuard: failingGuard, + }); + assert.equal(r1.status, "refused"); + assert.equal(r1.reason, "ATTACHED_TARGET_GUARD"); + assert.equal(r1.guardCode, "ATTACHED_TARGET_CHANGED"); + assert.equal(sends, 0, "a refused guard must never reach the transport"); + + // Throwing guard fails closed the same way. + const r2 = await devloopExecute({ + opId: "project.new", args: {}, ...base, + sessionPolicy: { readOnly: false, mode: "attached", mutation: { allowedOps: ["project.new"] } }, + targetGuard: async () => { throw new Error("census exploded"); }, + }); + assert.equal(r2.status, "refused"); + assert.equal(r2.reason, "ATTACHED_TARGET_GUARD"); + assert.equal(sends, 0); + + // Passing guard lets the dispatch through. + const r3 = await devloopExecute({ + opId: "project.new", args: {}, ...base, + sessionPolicy: { readOnly: false, mode: "attached", mutation: { allowedOps: ["project.new"] } }, + targetGuard: async () => ({ ok: true }), + }); + assert.equal(sends, 1); + assert.notEqual(r3?.reason, "ATTACHED_TARGET_GUARD"); + + // Read ops never invoke the guard. + let guardCalls = 0; + await devloopExecute({ + opId: "read.projectSummary", args: {}, ...base, + sessionPolicy: readOnlyPolicy, + targetGuard: async () => { guardCalls += 1; return { ok: false, code: "X", detail: "no" }; }, + }); + assert.equal(guardCalls, 0, "read ops must not pay the re-validation cost"); +}); + +test("revalidateTarget: missing baseline process start stamp refuses mutation (Issue #382)", async () => { + const root = launchFixtureRoot(); + const workdir = mkdtempSync(join(tmpdir(), "a8n-att-wd-")); + try { + await withEnvVars(FAKE_EXE_ENV, async () => { + // Census rows without startedAt → identity.processStart stays + // null; pid reuse can then never be ruled out, so the guard must + // refuse mutation instead of skipping the stamp comparison. + const s = await openWithProbe(root, workdir, async () => [{ pid: 7, path: FAKE_EXE }]); + try { + assert.equal(s.target.identity.processStart, null); + const g = await s.revalidateTarget(); + assert.equal(g.ok, false); + assert.equal(g.code, "ATTACHED_TARGET_UNVERIFIED"); + } finally { + await s.close(); + } + }); + } finally { + rmSync(root, { recursive: true, force: true }); + rmSync(workdir, { recursive: true, force: true }); + } +}); + +test("revalidateTarget: project unreadable at re-validation refuses mutation (Issue #382)", async () => { + const root = launchFixtureRoot(); + const workdir = mkdtempSync(join(tmpdir(), "a8n-att-wd-")); + try { + await withEnvVars(FAKE_EXE_ENV, async () => { + const s = await openWithProbe(root, workdir, async () => STABLE_ROWS); + try { + assert.equal((await s.revalidateTarget()).ok, true); + // Project becomes unreadable AFTER open — a switch can no + // longer be ruled out, so writes must refuse even though the + // baseline had a readable project. withEnvVars restores the + // flag afterwards — a leaked "1" would poison later tests. + await withEnvVars({ AE_FIXTURE_PROJECT_FAIL: "1" }, async () => { + const g = await s.revalidateTarget(); + assert.equal(g.ok, false); + assert.equal(g.code, "ATTACHED_TARGET_UNVERIFIED"); + }); + } finally { + await s.close(); + } + }); + } finally { + rmSync(root, { recursive: true, force: true }); + rmSync(workdir, { recursive: true, force: true }); + } +}); + +test("revalidateTarget: second instance appearing during project RPCs is caught (Issue #382)", async () => { + const root = launchFixtureRoot(); + const workdir = mkdtempSync(join(tmpdir(), "a8n-att-wd-")); + try { + await withEnvVars(FAKE_EXE_ENV, async () => { + // Probe call order: 1 = open pre-flight, 2 = first census inside + // revalidateTarget, 3 = post-RPC census. The second instance + // appears only for the post-RPC read — approval must refuse. + let calls = 0; + const lateJoiner = async () => { + calls += 1; + if (calls <= 2) return STABLE_ROWS; + return [ + { pid: 7, path: FAKE_EXE, startedAt: "start-1" }, + { pid: 8, path: FAKE_EXE, startedAt: "start-0" }, + ]; + }; + const s = await openWithProbe(root, workdir, lateJoiner); + try { + const g = await s.revalidateTarget(); + assert.equal(g.ok, false); + assert.equal(g.code, "ATTACHED_TARGET_AMBIGUOUS"); + } finally { + await s.close(); + } + }); + } finally { + rmSync(root, { recursive: true, force: true }); + rmSync(workdir, { recursive: true, force: true }); + } +}); + +test("projectFile pin: case-variant spelling of the same file still matches (Issue #382)", async () => { + const root = launchFixtureRoot(); + const workdir = mkdtempSync(join(tmpdir(), "a8n-att-wd-")); + const projDir = mkdtempSync(join(tmpdir(), "a8n-att-proj-")); + try { + // A real file so stat identity (dev+ino) decides equality: a + // case-variant spelling of the SAME file is an alias, not a + // different project. + const realPath = join(projDir, "CaseProbe.aep"); + writeFileSync(realPath, "fixture"); + const caseVariant = join(projDir, "caseprobe.aep"); + // On a case-insensitive volume the variant stats to the same inode + // → alias, pin matches. On a case-sensitive volume it is a + // different (nonexistent) path → the pin must refuse, never fold. + let sameFile = false; + try { + const { statSync } = await import("node:fs"); + const a = statSync(realPath), b = statSync(caseVariant); + sameFile = a.dev === b.dev && a.ino === b.ino; + } catch { sameFile = false; } + await withEnvVars( + { ...FAKE_EXE_ENV, AE_FIXTURE_PROJECT_FILE: realPath }, + async () => { + if (sameFile) { + const s = await openAttachedSliceSession({ + aeA8nRoot: root, + workdir, + projectFile: caseVariant, + hostProcessProbe: async () => [{ pid: 7, path: FAKE_EXE }], + }); + try { + assert.equal(s.target.projectFile, caseVariant); + } finally { + await s.close(); + } + } else { + await assert.rejects( + openAttachedSliceSession({ + aeA8nRoot: root, + workdir, + projectFile: caseVariant, + hostProcessProbe: async () => [{ pid: 7, path: FAKE_EXE }], + }), + (e) => e.code === "ATTACHED_TARGET_MISMATCH", + ); + } + }, + ); + } finally { + rmSync(root, { recursive: true, force: true }); + rmSync(workdir, { recursive: true, force: true }); + rmSync(projDir, { recursive: true, force: true }); + } +}); + +test("revalidateTarget: project attestation is the LAST observation (Issue #390)", async () => { + const root = launchFixtureRoot(); + const workdir = mkdtempSync(join(tmpdir(), "a8n-att-wd-")); + const logFile = join(workdir, "call-order.log"); + try { + await withEnvVars( + { ...FAKE_EXE_ENV, AE_FIXTURE_CALL_LOG: logFile }, + async () => { + // Probe calls append "probe"; the fixture's project.info() + // appends "project". Order must be census, census, project — + // the census cannot see a project switch during its own await, + // so the project read must come after the final census. + const probe = async () => { + appendFileSync(logFile, "probe\n"); + return STABLE_ROWS; + }; + const s = await openWithProbe(root, workdir, probe); + try { + writeFileSync(logFile, ""); // drop open-phase events + const g = await s.revalidateTarget(); + assert.equal(g.ok, true); + const events = readFileSync(logFile, "utf8").trim().split("\n").filter(Boolean); + assert.deepEqual(events, ["probe", "probe", "project"]); + } finally { + await s.close(); + } + }, + ); + } finally { + rmSync(root, { recursive: true, force: true }); + rmSync(workdir, { recursive: true, force: true }); + } +}); diff --git a/packages/ae-devtools-cli/a8n-transport/tests/dispatch-budget.test.mjs b/packages/ae-devtools-cli/a8n-transport/tests/dispatch-budget.test.mjs new file mode 100644 index 00000000..6c671cb9 --- /dev/null +++ b/packages/ae-devtools-cli/a8n-transport/tests/dispatch-budget.test.mjs @@ -0,0 +1,63 @@ +/** + * dispatch-budget.test.mjs — Issue #383: the runner deadline must + * always cover the per-call budget, for BOTH a8n openers. + * Fake-level only: budget resolution refuses before ae-a8n resolution, + * so no AE and no ae-a8n fixture is needed for the refusal paths. + */ +import test from "node:test"; +import assert from "node:assert/strict"; + +import { + resolveDispatchBudgets, + DEFAULT_CALL_TIMEOUT_MS, + DEFAULT_DEADLINE_MARGIN_MS, +} from "../dispatch-budget.mjs"; +import { openSliceSession } from "../session.mjs"; +import { openAttachedSliceSession } from "../attached-session.mjs"; + +test("defaults preserve the historical 9500/10000 pair", () => { + const b = resolveDispatchBudgets({}); + assert.equal(b.callTimeoutMs, DEFAULT_CALL_TIMEOUT_MS); + assert.equal(b.deadlineMs, DEFAULT_CALL_TIMEOUT_MS + DEFAULT_DEADLINE_MARGIN_MS); +}); + +test("deadline derives from callTimeoutMs when unspecified", () => { + const b = resolveDispatchBudgets({ callTimeoutMs: 30_000 }); + assert.equal(b.callTimeoutMs, 30_000); + assert.equal(b.deadlineMs, 30_000 + DEFAULT_DEADLINE_MARGIN_MS); + assert.ok(b.deadlineMs > b.callTimeoutMs); +}); + +test("explicit compatible pair passes through", () => { + const b = resolveDispatchBudgets({ callTimeoutMs: 5_000, deadlineMs: 20_000 }); + assert.deepEqual(b, { callTimeoutMs: 5_000, deadlineMs: 20_000 }); +}); + +test("explicit deadline <= callTimeout refuses USAGE", () => { + for (const deadlineMs of [1_000, 9_500]) { + assert.throws( + () => resolveDispatchBudgets({ callTimeoutMs: 9_500, deadlineMs }), + (e) => e.code === "USAGE", + ); + } +}); + +test("non-positive/non-finite values fall back to defaults", () => { + const b = resolveDispatchBudgets({ callTimeoutMs: 0, deadlineMs: -5 }); + assert.equal(b.callTimeoutMs, DEFAULT_CALL_TIMEOUT_MS); + assert.equal(b.deadlineMs, DEFAULT_CALL_TIMEOUT_MS + DEFAULT_DEADLINE_MARGIN_MS); +}); + +test("openSliceSession refuses an incompatible pair before ae-a8n resolution", async () => { + await assert.rejects( + () => openSliceSession({ callTimeoutMs: 30_000, deadlineMs: 10_000 }), + (e) => e.code === "USAGE" && /deadlineMs/.test(e.message), + ); +}); + +test("openAttachedSliceSession refuses an incompatible pair before census/attach", async () => { + await assert.rejects( + () => openAttachedSliceSession({ callTimeoutMs: 30_000, deadlineMs: 10_000 }), + (e) => e.code === "USAGE" && /deadlineMs/.test(e.message), + ); +}); diff --git a/packages/ae-devtools-cli/conformance/mcp-real-run.mjs b/packages/ae-devtools-cli/conformance/mcp-real-run.mjs index 1a318061..afc33cfe 100644 --- a/packages/ae-devtools-cli/conformance/mcp-real-run.mjs +++ b/packages/ae-devtools-cli/conformance/mcp-real-run.mjs @@ -35,7 +35,7 @@ import { dirname, join } from "node:path"; import { fileURLToPath } from "node:url"; import { arg } from "../devtools-cli/argv.mjs"; -import { spawnMcpStdio, withTimeout } from "../devtools-cli/real-run-kit.mjs"; +import { spawnMcpStdio, withTimeout, isCleanServerShutdown } from "../devtools-cli/real-run-kit.mjs"; const HERE = dirname(fileURLToPath(import.meta.url)); const CLI = join(HERE, ".."); @@ -204,14 +204,30 @@ try { await new Promise((r) => setTimeout(r, 3000)); shutdownConfirmed = child.exitCode !== null || child.signalCode !== null; } - // A child that only exits because SIGKILL destroyed it did NOT shut - // down cleanly — session.close() (unsavedChanges:"refuse") never ran - // to completion. That is a failed run, not a confirmed cleanup. - const cleanShutdown = shutdownConfirmed && !forcedKill && child.signalCode !== "SIGKILL"; - rec({ step: "server.stopped", fixturePath, shutdownConfirmed, cleanShutdown, forcedKill, results }); + // Clean shutdown means the server's OWN shutdown path completed: + // SIGTERM → shutdown(143) → session.close() → process.exit(143). + // Merely stopping is not proof — an exit code of 1 (e.g. an + // unhandled rejection during close) or death by signal means + // session.close() never confirmed the owned AE session closed + // (Issue #384). exitCode/signalCode are recorded either way. + const exitCode = child.exitCode; + const signalCode = child.signalCode; + const cleanShutdown = isCleanServerShutdown({ + shutdownConfirmed, forcedKill, exitCode, signalCode, + }); + rec({ + step: "server.stopped", fixturePath, shutdownConfirmed, cleanShutdown, + forcedKill, exitCode, signalCode, results, + }); if (!cleanShutdown) { fatal = true; - rec({ fatal: shutdownConfirmed ? "MCP server child required SIGKILL — unclean shutdown" : "MCP server child did not exit after SIGTERM+SIGKILL" }); + rec({ + fatal: !shutdownConfirmed + ? "MCP server child did not exit after SIGTERM+SIGKILL" + : forcedKill + ? "MCP server child required SIGKILL — unclean shutdown" + : `MCP server shutdown exit was not the clean SIGTERM path (exitCode=${exitCode} signalCode=${signalCode})`, + }); } // Verdict: a recorded isError or a non-COMPLETED outcome is a failed diff --git a/packages/ae-devtools-cli/conformance/real-run.mjs b/packages/ae-devtools-cli/conformance/real-run.mjs index 175ba674..6c1f4755 100644 --- a/packages/ae-devtools-cli/conformance/real-run.mjs +++ b/packages/ae-devtools-cli/conformance/real-run.mjs @@ -65,6 +65,7 @@ import { aeProcessSnapshot, createEvalDispatch, gitHeadAndDirty, + isCleanTimeoutProbe, } from "../devtools-cli/real-run-kit.mjs"; const HERE = dirname(new URL(import.meta.url).pathname); @@ -478,20 +479,31 @@ export async function main() { }); const t0 = Date.now(); const timeoutRequestId = `conf-timeout-${Date.now().toString(36)}`; + // Exactly-one-send check (Issue #384): an UNKNOWN outcome alone does + // not prove the runner did not resend. No other probe dispatches in + // this window, so the transport send-count delta across the probe + + // late-completion wait must be exactly 1. + const sendsBeforeTimeout = session.transport.sendCount(); const timeoutResult = await timeoutDispatch('$.sleep(2000); "slept"', timeoutRequestId); + // Let the sleeping host script finish before close. + await new Promise((r) => setTimeout(r, 2500)); + const sendsAfterTimeout = session.transport.sendCount(); + const timeoutSendDelta = sendsAfterTimeout - sendsBeforeTimeout; + evidence.timeoutProbe = { outcome: timeoutResult.outcome, contractOutcome: timeoutResult.contractOutcome ?? null, retry: timeoutResult.retry ?? null, elapsedMs: Date.now() - t0, quarantined: shortRunner.isQuarantined(timeoutRequestId), + sendsBefore: sendsBeforeTimeout, + sendsAfter: sendsAfterTimeout, + sendDelta: timeoutSendDelta, }; step("timeout.probe", { - ok: timeoutResult.outcome === "UNKNOWN", + ok: isCleanTimeoutProbe({ outcome: timeoutResult.outcome, sendDelta: timeoutSendDelta }), ...evidence.timeoutProbe, }); - // Let the sleeping host script finish before close. - await new Promise((r) => setTimeout(r, 2500)); evidence.transportSends = session.transport.sendCount(); evidence.opResultSummary = Object.fromEntries( diff --git a/packages/ae-devtools-cli/dev-loop/devloop.mjs b/packages/ae-devtools-cli/dev-loop/devloop.mjs index dc7fd190..08fc069c 100644 --- a/packages/ae-devtools-cli/dev-loop/devloop.mjs +++ b/packages/ae-devtools-cli/dev-loop/devloop.mjs @@ -37,10 +37,19 @@ export const DEVLOOP_SCHEMA = "ae-devtools.dev-loop/v1"; * state still reports WHICH backend would be used. pin is included * only when a session is actually open — a closed/failed state must * not fabricate host identity. + * + * CAP049 version-aware metadata: for an OPEN session the response also + * carries `api` (the dev-loop contract version) and `host` — the + * version/ownership/target fields the session opener already attested + * in `session.meta`. Fields the opener did not attest stay null; a + * session without meta (fake) reports `host: null`. Nothing here opens + * a session, probes a host, or upgrades an evidence level. */ export function sessionStatus({ session = null, sessionKind = null, opening = false, failed = false } = {}) { const state = session ? "open" : failed ? "failed" : opening ? "opening" : "closed"; + const meta = session !== null && typeof session === "object" ? session.meta ?? null : null; return { + api: { devLoop: DEVLOOP_SCHEMA }, session: { kind: sessionKind ?? session?.kind ?? null, state, @@ -48,6 +57,21 @@ export function sessionStatus({ session = null, sessionKind = null, opening = fa ? { evidenceLevel: session.evidenceLevel ?? null, pin: session.pin ?? null, + host: meta === null ? null : { + aeVersion: meta.aeVersion ?? null, + ownership: meta.ownership ?? null, + aeA8nHead: meta.aeA8nHead ?? null, + attached: meta.attached === true, + ...(meta.target && typeof meta.target === "object" + ? { + target: { + pid: meta.target.identity?.pid ?? null, + projectFile: meta.target.projectFile ?? null, + attachApi: meta.target.attachApi ?? null, + }, + } + : {}), + }, } : {}), }, @@ -96,8 +120,47 @@ export function inspect(opId) { } /** Execute via the canonical path. All safety inputs are forwarded - * untouched — this function adds NO approval of its own. */ + * untouched — this function adds NO approval of its own. + * + * Session-imposed policy (Issue #366): `input.sessionPolicy` refuses + * mutating ops BEFORE consent — an attached session to a user's + * running AE must never dispatch a write the session itself forbids. + * `readOnly === true` refuses every mutating op; `mode === "attached"` + * with `mutation.allowedOps` permits exactly the ops the caller + * scoped at session open and refuses the rest. This is a restriction + * layered on the canonical path, not a new permission path: it can + * only refuse, never approve. */ export async function execute(input = {}) { + const { opId, sessionPolicy } = input ?? {}; + if (sessionPolicy && typeof opId === "string") { + let op = null; + try { op = getOperation(opId); } catch { /* unknown op → runOperation reports it */ } + if (op !== null && op.mutating === true) { + if (sessionPolicy.readOnly === true) { + return { + status: "refused", + stage: "session-policy", + reason: "READ_ONLY_SESSION", + detail: `'${opId}' mutates project/AE state; this session is attached read-only (Issue #366)`, + opId, + }; + } + if (sessionPolicy.mode === "attached") { + const allowed = sessionPolicy.mutation?.allowedOps; + if (!Array.isArray(allowed) || !allowed.includes(opId)) { + return { + status: "refused", + stage: "session-policy", + reason: "ATTACHED_MUTATION_NOT_GRANTED", + detail: `'${opId}' is outside this attached session's mutation scope ` + + `(allowed: ${Array.isArray(allowed) ? allowed.join(", ") || "none" : "none"}); ` + + `re-open with --allow-mutation ${opId} to grant it explicitly`, + opId, + }; + } + } + } + } // `?? {}` covers null — runOperation's destructuring would throw a // TypeError on null instead of producing its structured refusal. return runOperation(input ?? {}); @@ -115,6 +178,7 @@ export async function verify(input = {}) { const { runner, pin, projectIdentity, consentProvider, trustedScriptOptIn, scriptProvenance, readOpId = "read.projectSummary", readArgs = {}, requestId, + hostProjectGuard, hostProjectGuardRequired, } = input ?? {}; const op = (() => { try { return getOperation(readOpId); } catch { return null; } })(); if (!op || op.mutating) { @@ -129,5 +193,6 @@ export async function verify(input = {}) { return runOperation({ opId: readOpId, args: readArgs, runner, pin, projectIdentity, consentProvider, trustedScriptOptIn, scriptProvenance, requestId, + hostProjectGuard, hostProjectGuardRequired, }); } diff --git a/packages/ae-devtools-cli/dev-loop/session-open.mjs b/packages/ae-devtools-cli/dev-loop/session-open.mjs index 309fc643..ea2030dc 100644 --- a/packages/ae-devtools-cli/dev-loop/session-open.mjs +++ b/packages/ae-devtools-cli/dev-loop/session-open.mjs @@ -20,7 +20,7 @@ */ import { existsSync } from "node:fs"; import { dirname, join } from "node:path"; -import { fileURLToPath } from "node:url"; +import { fileURLToPath, pathToFileURL } from "node:url"; import { openFakeSession } from "../devtools-cli/fake-session.mjs"; @@ -28,19 +28,87 @@ const HERE = dirname(fileURLToPath(import.meta.url)); const EXP = join(HERE, ".."); /** - * @param {"fake"|"a8n"} kind - * @param {object} options — { aeA8nRoot, installDir, workdir } forwarded - * to the a8n opener only; ignored for fake. `workdir` lets real-run - * drivers pin the generated host-script directory (conformance keeps - * it inside its evidence workdir so close() does not delete it). + * @param {"fake"|"a8n"|"a8n-attached"} kind + * @param {object} options — { aeA8nRoot, installDir, workdir, aeVersion } + * forwarded to the a8n openers only; ignored for fake. `workdir` lets + * real-run drivers pin the generated host-script directory + * (conformance keeps it inside its evidence workdir so close() does + * not delete it). `aeVersion` is an a8n-attached-only target pin. + * `mutatingOps` is an a8n-attached-only op-level mutation scope + * (Issue #366); it is forwarded to no other session kind. + * `projectFile` is an a8n-attached-only open-project identity pin — + * the session refuses when the attached AE has a different (or no) + * project file open. * @returns {Promise} session shaped - * { kind, evidenceLevel, runner, pin, close, meta, slice } — `slice` - * is the raw openSliceSession result (a8n) or null (fake). + * { kind, evidenceLevel, runner, pin, close, meta, slice, policy } — + * `slice` is the raw slice-session result (a8n kinds) or null (fake); + * `policy` carries session-imposed dispatch limits (attached sessions + * are read-only, Issue #366). `hostProjectGuard` / + * `hostProjectGuardRequired` carry the session-attested project file + * identity for the host-side guard (Issue #385); null/false for fake + * and owned sessions. */ export async function openSession(kind = "fake", options = {}) { if (kind === "fake") { const s = openFakeSession(); - return { ...s, meta: s.meta ?? null, slice: null }; + return { + ...s, meta: s.meta ?? null, slice: null, policy: null, targetGuard: null, + hostProjectGuard: null, hostProjectGuardRequired: false, + }; + } + if (kind === "a8n-attached") { + const tdir = join(EXP, "a8n-transport", "attached-session.mjs"); + if (!existsSync(tdir)) { + const e = new Error( + "a8n-attached session requires packages/ae-devtools-cli/a8n-transport/attached-session.mjs (Issue #366)", + ); + e.code = "A8N_TRANSPORT_MISSING"; + throw e; + } + // pathToFileURL: a bare "C:\…" path is not a valid ESM specifier on + // Windows (ERR_UNSUPPORTED_ESM_URL_SCHEME). + const { openAttachedSliceSession } = await import(pathToFileURL(tdir).href); + const s = await openAttachedSliceSession({ + aeA8nRoot: typeof options.aeA8nRoot === "string" ? options.aeA8nRoot : undefined, + installDir: typeof options.installDir === "string" ? options.installDir : undefined, + aeVersion: typeof options.aeVersion === "string" ? options.aeVersion : undefined, + workdir: typeof options.workdir === "string" ? options.workdir : undefined, + mutatingOps: Array.isArray(options.mutatingOps) + ? options.mutatingOps.filter((v) => typeof v === "string") + : undefined, + projectFile: typeof options.projectFile === "string" ? options.projectFile : undefined, + callTimeoutMs: Number.isFinite(options.callTimeoutMs) ? options.callTimeoutMs : undefined, + deadlineMs: Number.isFinite(options.deadlineMs) ? options.deadlineMs : undefined, + }); + return { + kind: "a8n-attached", + evidenceLevel: "verified on real host (attach to a running AE)", + runner: s.runner, + pin: s.pin, + close: () => s.close(), + meta: { + aeVersion: s.info?.version ?? null, + ownership: s.ownership?.kind ?? null, + aeA8nHead: s.aeA8nHead ?? null, + attached: true, + target: s.target ?? null, + }, + slice: s, + policy: s.policy ?? null, + // Attached-session target re-validation (Issue #366): invoked by + // runOperation immediately before each mutating dispatch. Null + // for sessions without an attested target identity. + targetGuard: typeof s.revalidateTarget === "function" ? s.revalidateTarget : null, + // Host-side project guard (Issue #385): the session-attested + // app.project.file.fsName forwarded into runOperation, which + // injects it into the consent-bound source. Required on the + // attached lane — mutations without an attestable project file + // refuse before consent. + hostProjectGuard: typeof s.hostProjectGuard === "string" && s.hostProjectGuard.length > 0 + ? s.hostProjectGuard + : null, + hostProjectGuardRequired: s.hostProjectGuardRequired === true, + }; } if (kind === "a8n") { const tdir = join(EXP, "a8n-transport", "session.mjs"); @@ -51,11 +119,16 @@ export async function openSession(kind = "fake", options = {}) { e.code = "A8N_TRANSPORT_MISSING"; throw e; } - const { openSliceSession } = await import(tdir); + const { openSliceSession } = await import(pathToFileURL(tdir).href); const s = await openSliceSession({ aeA8nRoot: typeof options.aeA8nRoot === "string" ? options.aeA8nRoot : undefined, installDir: typeof options.installDir === "string" ? options.installDir : undefined, workdir: typeof options.workdir === "string" ? options.workdir : undefined, + // Dispatch budgets apply to owned sessions too (Issue #383) — the + // openers derive a compatible deadline/callTimeout pair and refuse + // an explicitly incompatible one. + callTimeoutMs: Number.isFinite(options.callTimeoutMs) ? options.callTimeoutMs : undefined, + deadlineMs: Number.isFinite(options.deadlineMs) ? options.deadlineMs : undefined, }); return { kind: "a8n", @@ -69,9 +142,13 @@ export async function openSession(kind = "fake", options = {}) { aeA8nHead: s.aeA8nHead ?? null, }, slice: s, + policy: null, + targetGuard: null, + hostProjectGuard: null, + hostProjectGuardRequired: false, }; } - const e = new Error(`unknown session kind '${kind}' (fake|a8n)`); + const e = new Error(`unknown session kind '${kind}' (fake|a8n|a8n-attached)`); e.code = "USAGE"; throw e; } diff --git a/packages/ae-devtools-cli/dev-loop/tests/devloop.test.mjs b/packages/ae-devtools-cli/dev-loop/tests/devloop.test.mjs index 3e5288f4..7a9614ce 100644 --- a/packages/ae-devtools-cli/dev-loop/tests/devloop.test.mjs +++ b/packages/ae-devtools-cli/dev-loop/tests/devloop.test.mjs @@ -73,6 +73,40 @@ test("sessionStatus reports honest state without opening anything (CAP049)", () assert.equal(open.session.state, "open"); assert.equal(open.session.evidenceLevel, "fake/mock only"); assert.deepEqual(open.session.pin, { sessionId: "s" }); + // Fake sessions carry no host meta — host stays null, never fabricated. + assert.equal(open.session.host, null); + assert.equal(open.api.devLoop, "ae-devtools.dev-loop/v1"); + + // CAP049 version-aware metadata: only opener-attested values surface. + const attached = sessionStatus({ + session: { + kind: "a8n-attached", + evidenceLevel: "verified on real host (attach to a running AE)", + pin: { sessionId: "a" }, + meta: { + aeVersion: "27.0x78", + ownership: "attached", + aeA8nHead: "c104e39", + attached: true, + target: { + identity: { pid: 56305 }, + projectFile: "/tmp/probe.aep", + attachApi: "AfterEffects.attach", + }, + }, + }, + }); + assert.equal(attached.session.host.aeVersion, "27.0x78"); + assert.equal(attached.session.host.ownership, "attached"); + assert.equal(attached.session.host.attached, true); + assert.deepEqual(attached.session.host.target, { + pid: 56305, + projectFile: "/tmp/probe.aep", + attachApi: "AfterEffects.attach", + }); + // Closed/failed states never fabricate host identity. + assert.equal(closed.api.devLoop, "ae-devtools.dev-loop/v1"); + assert.equal(closed.session.host, undefined); }); test("developer-loop vertical: discover→inspect→execute→verify", async () => { diff --git a/packages/ae-devtools-cli/devtools-cli/EVIDENCE.md b/packages/ae-devtools-cli/devtools-cli/EVIDENCE.md new file mode 100644 index 00000000..b3140bf4 --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/EVIDENCE.md @@ -0,0 +1,183 @@ +# EVIDENCE — devtools-cli real-host runs + +Artifacts in `evidence/` are `ae-devtools.cli.run/v1` / `ae-devtools.cli.error/v1` +records produced by `devtools-cli/cli.mjs --out`. The attached-session (#366) +follow-up section moved here from `../a8n-transport/EVIDENCE.md` because those +artifacts are CLI run records, not `a8n-transport/real-run` records. + +## Issue #366 follow-up — attach pre-flight + project pin + comp/layer loop (macOS, AE 2027 `27.0x78`) + +Branch `366` @ `9e9f5d4`+ (pre-flight census, `ATTACHED_TARGET_AMBIGUOUS`, +`--project-file` / `ae-devtools.attachedProjectFile` pin, Project-handle +read fix). All runs `--ae-a8n-root` = local ae-a8n `release-0-5-0` @ +`50e712b`; every session reports `ownership: "attached"`, +`evidenceLevel: verified on real host (attach to a running AE)`, +`policy.readOnly` or scoped `mutation.allowedOps`; `cleanup.quit` is +always `null` (the host is never quit). + +- `run-366-attached-preflight-norun-2027.json` — **pre-flight refuse, no + launch**: with zero AE processes the opener refuses + `ATTACHED_TARGET_NOT_RUNNING` in ~0.4 s. No `AfterEffects.launch`, + no cold start, no quit (previously this path cold-started AE and then + closed it). +- `run-366-attached-verify-2027.json` — read-only attach verify on a + user-launched AE 2027 (pid 22873): `read.projectSummary` COMPLETED, + `target.ownershipEvidence` = `already running before launch: pid + 22873`, install dir + app path recorded. +- Comp/layer lifecycle on the attached host (each op its own attached + session, explicit `--allow-mutation` scope + `--consent grant`): + `project.new` → `item.addComp` (Comp1 1920x1080@30) → + `comp.addNullLayer` ("Null 1") → `read.compLayers` shows the layer → + `layer.setTransformPosition` x=100 y=200 → `read.layerDetail` + read-back `position: [100,200,0]` → `project.save` + `/tmp/ae-att-test.aep` → `project.open` of that file → + `read.projectSummary` on the reopened project (3 items). +- `run-366-attached-projectpin-2027.json` — `--project-file + /tmp/ae-att-test.aep` matches the open project (`target.project.file` + recorded, verify COMPLETED); `--project-file` pointing elsewhere + refuses `ATTACHED_TARGET_MISMATCH` before dispatch. +- Real-host bug found and fixed by this evidence: `ae.project()` is + async and resolves to a `Project` handle — the previous + `ae.project().info()` read was always `null` on real hosts (the + fixture's sync stub masked it). Every attached session's + `target.project` was silently null until `9e9f5d4`. + +Not yet covered here: Windows comp/layer loop, MCP/VSCode surfaces on a +real attached session, multi-instance ambiguity on a real host (unit +tested only). + +## Issue #366 follow-up — Windows attach pre-flight findings (Windows 11, AE 2027 `27.0x78`) + +Branch `366` @ `77dcdcd`. Target: user-launched AE pid 12912 +(`D:\4_apps\adobe\Adobe After Effects 2027\Support Files\AfterFX.exe`, +open user project). Runs from `C:\Users\rebui\src\ae-devtools` @ +`C:\Users\rebui\src\att-verify-win*.json`. + +- `att-verify-win3.json` — attach + session open COMPLETED earlier the + same evening (ownership `attached`); `read.projectSummary` dispatch + returned UNKNOWN (`NO_REPLY_BEFORE_DEADLINE`) against the busy + 2514-item project — honest non-green, no false pass. +- `att-verify-win4.json` / `att-verify-win5.json` — later the same + night, `AfterEffects.launch` inside ae-a8n spawned NEW AfterFX pids + (15316, then 58416) instead of attaching to 12912; both died before + answering `app.info` (`A8N-AE-005` after ~178 s). No orphan process + remained (`Get-CimInstance` afterwards lists only 12912); the user's + AE was never terminated or mutated. +- Census diagnosis: `Get-CimInstance Win32_Process` DOES disclose + `ExecutablePath` for 12912 from this session, so the pre-flight + correctly counts it as exactly one attributed match and defers to + ae-a8n. The duplicate-spawn behavior is inside ae-a8n's + `AfterEffects.launch` attach path when the running instance is busy + (tracked under ae-a8n #74/#99) — ae-devtools cannot fix it from the + opener side. +- Policy tightened at `77dcdcd`: unattributable AE rows now refuse + `ATTACHED_TARGET_UNVERIFIED` and foreign-only rows refuse + `ATTACHED_TARGET_NOT_RUNNING` instead of falling through to a + possible duplicate cold start (unit-tested; the unattributed-row + case is what an elevated/other-session AE looks like). + +Not yet covered: a Windows attached comp/layer mutation loop (needs a +responsive, preferably disposable, AE target), MCP/VSCode surfaces on +Windows, `ae-a8n` attach reliability against a busy host. + +## Issue #366 follow-up — attach-only boundary + target re-validation (macOS, AE 2027 `27.0x78`) + +Branch `366` @ `ad32a1d`. Target: AE pid 56305 launched via `open -a` +(user-session instance, `ownership: "attached"`, +`ownershipEvidence: "already running before launch: pid 56305"`). +`--ae-a8n-root` = local ae-a8n `release-0-5-0` @ `716dada`; every +session reports `target.attachApi: +"AfterEffects.launch(transitional)"` — the ae-a8n attach-only API has +not shipped yet, so the transitional launch fallback ran under the +pre-flight census + ownership check (see `a8n-transport/attach-target.mjs`). + +New in this round: `target.identity` records pid `56305`, process start +`Sat Nov 21 01:30:06 2026`, executable path, AE version `27.0x78`, and +open-project file/name; every mutating dispatch re-validates that +identity via `targetGuard` → `revalidateTarget()` after consent +approval and immediately before send (fail-closed on pid/start-stamp +drift, multiple instances, unreadable census, version drift, project +switch — unit-tested in `a8n-transport/tests/attached-session.test.mjs`). + +- `run-366-attached-revalidate-verify-2027.json` — read-only attach + verify; identity block present, `read.projectSummary` COMPLETED, + `cleanup.quit: null`. +- Comp/layer loop with per-op mutation scope + targetGuard live: + `run-366-attached-revalidate-addcomp-2027.json` (`item.addComp` + "DevToolsProbeComp" 320x240@30 → COMPLETED) → + `run-366-attached-revalidate-addnull-2027.json` (`comp.addNullLayer` + "ProbeNull" → COMPLETED) → + `run-366-attached-revalidate-move-2027.json` (`layer.setTransformPosition` + x=100 y=200 → COMPLETED) → + `run-366-attached-revalidate-readlayers-2027.json` (`read.compLayers` + shows ProbeNull index 1) → + `run-366-attached-revalidate-readdetail-2027.json` (`read.layerDetail` + read-back `position: [100,200,0]`). +- Recovery (no app-level Undo — on a user's live AE, `app.undo` could + revert the user's own last edit; targeted removal of objects this + session created is the honest recovery): `item.remove` of + DevToolsProbeComp (`run-366-attached-revalidate-remove-2027.json`), + then AE's auto-created null footage `ヌル 1` and its `平面` folder + (`run-366-attached-revalidate-cleanup-footage-2027.json`, + `run-366-attached-revalidate-cleanup-folder-2027.json`). +- `run-366-attached-revalidate-final2-2027.json` — `read.projectSummary` + back to `numItems: 0`; pid 56305 still running afterwards; every + `cleanup.quit` is `null` (connection release only, never a quit). + +Not yet covered: a REAL drift refusal (pid/project switch mid-session — +unit-tested only; each CLI invocation opens a fresh session so a +mid-session drift cannot be produced through the CLI), the +`AfterEffects.attach` primary path (pending ae-a8n), Windows re-run of +this loop, MCP/VSCode surfaces on the attached session. + +## 2026-11-21 — attach-only API + VSCode attempt (branch 366) + +- `devtools-cli/evidence/run-366-attached-a8n-attach-api-2026.json` — + read-only `verify --session a8n-attached` against the USER's running + AE 2026 (26.5.3x9, pid 34792, uid/asid evidence) using a local + ae-a8n build of PR #270 (`AfterEffects.attach` present). Result: + `session.target.attachApi: "AfterEffects.attach"`, ownership + `attached`, `read.projectSummary` COMPLETED, `cleanup.quit: null`. + **verified on real host** for the attach-only seam on macOS. + Transitional `AfterEffects.launch` fallback remains until ae-a8n + PR #270 lands in a pinned dependency. +- `jsx-toolchain/evidence/run-real-2027-366.json` — owned-session + AE 2027 vertical slice (issue #38 chain): broken JSX build → + runtime-error dispatch → sourcemap to-source → mystery detect/ + diagnose → fix → rerun → verify → regression, all 11 steps ok, + bound to source SHA 2660089. +- VSCode real-host attempt (issue #172): packaged VSIX installed in + an isolated `--extensions-dir`/`--user-data-dir` instance, + `ae-devtools.session: "a8n"`, qa-driver `mode=verify`. The + extension activated via the real `onCommand:ae-devtools.verify` + event and reached the modal consent gate — then settlement was + BLOCKED because the macOS screen locked (loginwindow frontmost, + window not on-screen, AX sees 0 windows). No dispatch completed, + no Problems-panel diagnostics were produced. Evidence: + `vscode-extension/evidence/vscode-iso-a8n-366/`. Status: + **BLOCKED (environmental)** — needs an unlocked GUI session to + settle consent, then Problems-panel verification. + +## 2026-11-21 — attach-only hardening (branch 374, issue #374) + +- `attach-target.mjs` no longer has any `AfterEffects.launch` path: + an ae-a8n build without `AfterEffects.attach` refuses with + `ATTACHED_TARGET_UNSUPPORTED` before any session object exists. +- Real-host refusal proof: `verify --session a8n-attached` against + registry-pinned ae-a8n 0.2.0 (no attach API) exits with + `ATTACHED_TARGET_UNSUPPORTED`; no AE process was spawned + (user AE 2026 pid 34792 untouched). +- Real-host attach proof via `aeA8nRoot` → ae-a8n release-0-5-0 tree + (c104e39, identical to merge a9af7e0): + `devtools-cli/evidence/run-374-attached-no-fallback-2026.json` — + `attachApi: "AfterEffects.attach"`, ownership attached, + `read.projectSummary` COMPLETED, `cleanup.quit: null`. +- Packed-tarball verification (branch 366, same code path): + `run-366-attached-a8n-050-tarball-2026.json` — npm-installed + `ido-bata-ae-a8n-0.5.0.tgz` from release-0-5-0 HEAD + (sha512 `cmJJNuJp/88N32qNLaFZiA1/WinfP6D+Y+pjCsb0+QOQ6UGITWBsEM3cTL5DVtvXkrnU/1IWat9t5VXhWrRI6g==`). +- Dependency note: `@ido-bata/ae-a8n` stays pinned at 0.2.0 in this + PR so `npm ci` keeps working before ae-a8n 0.5.0 is published; + the spec flips to the published 0.5.0 at release time (human-gated + npm publish). Until then the attached lane refuses honestly on + registry installs and works via `aeA8nRoot`/tarball installs. diff --git a/packages/ae-devtools-cli/devtools-cli/argv.mjs b/packages/ae-devtools-cli/devtools-cli/argv.mjs index a314a72d..d1ba359a 100644 --- a/packages/ae-devtools-cli/devtools-cli/argv.mjs +++ b/packages/ae-devtools-cli/devtools-cli/argv.mjs @@ -52,6 +52,25 @@ export function hasFlag(flag, argv = process.argv.slice(2)) { return key in parseArgs(argv).flags; } +/** + * Value-required flag check (Issue #383). `flags` is a parseArgs() + * result; returns the first name in `names` that is PRESENT but carries + * no usable string value — a bare `--flag` parses to `true` and + * `--flag=` parses to `""`. Callers that map `typeof v === "string"` to + * "option supplied" would otherwise silently disable the option (e.g. a + * target pin), so pin-type flags must refuse instead. Returns null when + * every listed flag is absent or holds a nonempty string. + */ +export function missingFlagValue(flags, names) { + for (const name of names) { + if (Object.hasOwn(flags, name) && + (typeof flags[name] !== "string" || flags[name].length === 0)) { + return name; + } + } + return null; +} + /** * String value of `--flag` from argv (default: this process's args). * Returns undefined when absent or when the flag was given bare diff --git a/packages/ae-devtools-cli/devtools-cli/cli.mjs b/packages/ae-devtools-cli/devtools-cli/cli.mjs index ec8e4fb9..ae44ddc2 100644 --- a/packages/ae-devtools-cli/devtools-cli/cli.mjs +++ b/packages/ae-devtools-cli/devtools-cli/cli.mjs @@ -11,8 +11,11 @@ * node cli.mjs discover [--domain ] * node cli.mjs inspect * node cli.mjs execute [--args ''] [--confirm-destructive] - * [--confirm-render] --session fake|a8n + * [--confirm-render] --session fake|a8n|a8n-attached * [--ae-a8n-root ] [--install-dir ] + * [--ae-version ] [--allow-mutation ]... + * [--project-file ] + * [--call-timeout-ms ] [--deadline-ms ] * [--consent grant|deny] [--out ] * [--close-timeout-ms ] * node cli.mjs verify [--read-op ] [--args ''] [same session flags] @@ -35,6 +38,16 @@ * experiment present and an ae-a8n satisfying the contract gate * (a8n-transport/compat.mjs, Issue #138) — ae-a8n <=0.1.0-alpha.2 * does NOT, use --ae-a8n-root + * a8n-attached — explicit attach to an ALREADY-RUNNING AE (Issue #366). + * Read-only by default: mutating ops are refused before consent, + * the host is never quit, and the open refuses unless ae-a8n + * reports ownership "attached". `--allow-mutation ` + * (repeatable, a8n-attached only) grants exactly the named + * mutating ops for this session — ops that discard unsaved + * work (e.g. project.close) are never grantable. + * `--project-file ` (a8n-attached only) pins the open + * project identity: the session refuses unless the attached + * AE has that project file open. * * Consent: --consent grant is REQUIRED for any dispatch; default is deny. * This is a local policy flag, not authenticated authorization @@ -61,7 +74,7 @@ import { execFileSync } from "node:child_process"; import { dirname, join, resolve } from "node:path"; import { fileURLToPath } from "node:url"; -import { parseArgs } from "./argv.mjs"; +import { parseArgs, missingFlagValue } from "./argv.mjs"; import { discover, inspect, execute, verify, DEVLOOP_SCHEMA } from "../dev-loop/devloop.mjs"; import { openSession as openSharedSession } from "../dev-loop/session-open.mjs"; import { closeSessionWithTimeout, parseCloseTimeoutMs } from "../dev-loop/session-close.mjs"; @@ -98,7 +111,12 @@ function findAeInstalls() { return found; } -async function openSession(flags) { +function positiveMsFlag(raw) { + const n = Number(raw); + return Number.isFinite(n) && n > 0 ? n : undefined; +} + +async function openSession(flags, mutatingOps = []) { const kind = flags.session ?? "fake"; // Session-kind dispatch is shared with MCP/VSCode via // dev-loop/session-open.mjs (Issue #183) — one implementation of the @@ -108,6 +126,11 @@ async function openSession(flags) { const base = await openSharedSession(kind, { aeA8nRoot: typeof flags["ae-a8n-root"] === "string" ? flags["ae-a8n-root"] : undefined, installDir: typeof flags["install-dir"] === "string" ? flags["install-dir"] : undefined, + aeVersion: typeof flags["ae-version"] === "string" ? flags["ae-version"] : undefined, + mutatingOps, + projectFile: typeof flags["project-file"] === "string" ? flags["project-file"] : undefined, + callTimeoutMs: positiveMsFlag(flags["call-timeout-ms"]), + deadlineMs: positiveMsFlag(flags["deadline-ms"]), }); if (kind !== "a8n") { const { slice: _slice, ...session } = base; @@ -191,7 +214,8 @@ function makeCleanup(state, flags) { }; } -const { pos, flags } = parseArgs(process.argv.slice(2)); +const { pos, flags, multi } = parseArgs(process.argv.slice(2), { multi: ["allow-mutation"] }); +const allowMutationOps = (multi?.["allow-mutation"] ?? []).filter((v) => typeof v === "string" && v.length > 0); const [cmd, ...rest] = pos; const state = { @@ -321,8 +345,29 @@ async function main() { // marker that reap can never resolve (OWNERSHIP_NOT_OWNED, // session:null) — noise, not residue (Issue #219). const sessionKind = flags.session ?? "fake"; - if (sessionKind !== "fake" && sessionKind !== "a8n") { - emit({ schema: "ae-devtools.cli.error/v1", code: "USAGE", message: `unknown --session '${flags.session}' (fake|a8n)` }); + if (sessionKind !== "fake" && sessionKind !== "a8n" && sessionKind !== "a8n-attached") { + emit({ schema: "ae-devtools.cli.error/v1", code: "USAGE", message: `unknown --session '${flags.session}' (fake|a8n|a8n-attached)` }); + return 2; + } + // --allow-mutation scopes writes on a USER'S running AE only; on + // fake/a8n sessions it would be silently meaningless, so refuse + // rather than let a flag imply authority that was never granted. + if (allowMutationOps.length > 0 && sessionKind !== "a8n-attached") { + emit({ schema: "ae-devtools.cli.error/v1", code: "USAGE", message: "--allow-mutation is only valid with --session a8n-attached" }); + return 2; + } + if (typeof flags["project-file"] === "string" && sessionKind !== "a8n-attached") { + emit({ schema: "ae-devtools.cli.error/v1", code: "USAGE", message: "--project-file is only valid with --session a8n-attached" }); + return 2; + } + // Target pins must carry a value (Issue #383): a bare + // `--project-file` parses to `true` and `--project-file=` to "" — + // both map to "pin absent" in the session openers, silently + // unpinning a granted mutation. Refuse BEFORE the run marker and + // session open. `--ae-version` has the same silent-disable shape. + const valuelessPin = missingFlagValue(flags, ["project-file", "ae-version"]); + if (valuelessPin !== null) { + emit({ schema: "ae-devtools.cli.error/v1", code: "USAGE", message: `--${valuelessPin} requires a nonempty value` }); return 2; } @@ -337,7 +382,7 @@ async function main() { let code = 2; let payload; try { - state.session = await openSession(flags); + state.session = await openSession(flags, allowMutationOps); markSession(RUNS_DIR, guard.runId, state.session); // Record attested process evidence when the opener could prove it. // Absent evidence is recorded as absent — recovery authorization @@ -363,6 +408,11 @@ async function main() { kind: state.session.kind, evidenceLevel: state.session.evidenceLevel, ownership: state.session.ownership?.kind ?? state.session.meta?.ownership ?? null, + // Session-imposed dispatch policy (Issue #366): the mutation + // scope an attached session was opened with is part of the + // audit record — evidence must show what was granted, not + // just what ran. + policy: state.session.policy ?? null, }, at: new Date().toISOString(), }; @@ -383,12 +433,25 @@ async function main() { const shared = { runner: state.session.runner, pin: state.session.pin, - projectIdentity: "cli-devtools", + // The consent scope names the REAL project when the session can + // attest it (attached lane, Issue #385); static labels remain + // for sessions without a project-file identity. + projectIdentity: state.session.hostProjectGuard ?? "cli-devtools", + // Host-side project guard (Issue #385): injected into the + // consent-bound source so the host re-verifies + // app.project.file.fsName inside the same evaluation as the + // op — closes the targetGuard→eval TOCTOU window. + hostProjectGuard: state.session.hostProjectGuard ?? null, + hostProjectGuardRequired: state.session.hostProjectGuardRequired === true, consentProvider: consentProviderFor(flags), consentAudit, trustedScriptOptIn: true, scriptProvenance: "devtools-cli", requestId, + sessionPolicy: state.session.policy ?? null, + // Attached-session target re-validation (Issue #366): runOperation + // invokes this immediately before each mutating dispatch. + targetGuard: state.session.targetGuard ?? null, }; const result = cmd === "execute" ? await execute({ diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-a8n-050-tarball-2026.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-a8n-050-tarball-2026.json new file mode 100644 index 00000000..ed485e3e --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-a8n-050-tarball-2026.json @@ -0,0 +1,73 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T17-10-26-471Z-3a7e0b14", + "command": "verify", + "sourceSha": "adf0df46a30c0920433d744a8667aafe7f7a7ce7", + "sourceDirty": true, + "opId": null, + "requestId": "req-run-2026-11-20T17-10-26-471Z-3a7e0b14-verify", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "attached", + "aeA8nHead": "0.5.0", + "attached": true, + "target": { + "ownership": "attached", + "ownershipEvidence": "attached to pid 34792 (the process running since 2026-11-20T16:36:38.000Z); it was already running and is not this session's to quit in the session of rebui (uid 501, asid 100022)", + "aeVersion": "26.5.3x9", + "installDir": "/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app", + "appPath": "/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app", + "project": { + "file": null, + "name": null + }, + "projectFile": null, + "identity": { + "pid": 34792, + "processStart": "Sat Nov 21 01:36:38 2026", + "executable": "/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app/Contents/MacOS/After Effects", + "aeVersion": "26.5.3x9", + "projectFile": null, + "projectName": null, + "ownershipEvidence": "attached to pid 34792 (the process running since 2026-11-20T16:36:38.000Z); it was already running and is not this session's to quit in the session of rebui (uid 501, asid 100022)", + "attestedAt": "2026-11-20T17:10:36.049Z" + }, + "attachApi": "AfterEffects.attach" + }, + "kind": "a8n-attached", + "evidenceLevel": "verified on real host (attach to a running AE)", + "policy": { + "readOnly": true, + "mode": "attached" + } + }, + "at": "2026-11-20T17:10:36.252Z", + "result": { + "requestId": "req-run-2026-11-20T17-10-26-471Z-3a7e0b14-verify", + "operationId": "read.projectSummary", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "count": 0, + "numItems": 0, + "items": [], + "activeItem": null, + "selection": [] + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "read.projectSummary", + "mutating": false, + "destructive": false + }, + "outcome": "COMPLETED", + "evidenceFile": "devtools-cli/evidence/run-366-attached-a8n-050-tarball-2026.json", + "cleanup": { + "attempted": true, + "ok": true, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-a8n-attach-api-2026.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-a8n-attach-api-2026.json new file mode 100644 index 00000000..9c4a4f1e --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-a8n-attach-api-2026.json @@ -0,0 +1,73 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T16-39-23-772Z-afa1623c", + "command": "verify", + "sourceSha": "7ebda7bfa9477560802c3d800692b4df6287e480", + "sourceDirty": true, + "opId": null, + "requestId": "req-run-2026-11-20T16-39-23-772Z-afa1623c-verify", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "attached", + "aeA8nHead": "1ea8f38c98b6751c3ec0bdb6f04bc4b3775d2800", + "attached": true, + "target": { + "ownership": "attached", + "ownershipEvidence": "attached to pid 34792 (the process running since 2026-11-20T16:36:38.000Z); it was already running and is not this session's to quit in the session of rebui (uid 501, asid 100022)", + "aeVersion": "26.5.3x9", + "installDir": "/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app", + "appPath": "/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app", + "project": { + "file": null, + "name": null + }, + "projectFile": null, + "identity": { + "pid": 34792, + "processStart": "Sat Nov 21 01:36:38 2026", + "executable": "/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app/Contents/MacOS/After Effects", + "aeVersion": "26.5.3x9", + "projectFile": null, + "projectName": null, + "ownershipEvidence": "attached to pid 34792 (the process running since 2026-11-20T16:36:38.000Z); it was already running and is not this session's to quit in the session of rebui (uid 501, asid 100022)", + "attestedAt": "2026-11-20T16:39:32.147Z" + }, + "attachApi": "AfterEffects.attach" + }, + "kind": "a8n-attached", + "evidenceLevel": "verified on real host (attach to a running AE)", + "policy": { + "readOnly": true, + "mode": "attached" + } + }, + "at": "2026-11-20T16:39:32.301Z", + "result": { + "requestId": "req-run-2026-11-20T16-39-23-772Z-afa1623c-verify", + "operationId": "read.projectSummary", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "count": 0, + "numItems": 0, + "items": [], + "activeItem": null, + "selection": [] + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "read.projectSummary", + "mutating": false, + "destructive": false + }, + "outcome": "COMPLETED", + "evidenceFile": "devtools-cli/evidence/run-366-attached-a8n-attach-api-2026.json", + "cleanup": { + "attempted": true, + "ok": true, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-addcomp-2027.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-addcomp-2027.json new file mode 100644 index 00000000..c85d40d4 --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-addcomp-2027.json @@ -0,0 +1,62 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T15-08-49-019Z-33f95564", + "command": "execute", + "sourceSha": "9386890e37a2519c47f44917d5300c10421954d5", + "sourceDirty": false, + "opId": "item.addComp", + "requestId": "req-run-2026-11-20T15-08-49-019Z-33f95564-item.addComp", + "session": { + "aeVersion": "27.0x78", + "ownership": "attached", + "aeA8nHead": "50e712b6149fd1fed8fb55965ec4f3eed1102250", + "attached": true, + "target": { + "ownership": "attached", + "ownershipEvidence": "already running before launch: pid 22873", + "aeVersion": "27.0x78", + "installDir": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027", + "appPath": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app", + "project": null, + "projectFile": null + }, + "kind": "a8n-attached", + "evidenceLevel": "verified on real host (attach to a running AE)", + "policy": { + "readOnly": false, + "mode": "attached", + "mutation": { + "allowedOps": [ + "item.addComp" + ] + } + } + }, + "at": "2026-11-20T15:08:52.178Z", + "result": { + "requestId": "req-run-2026-11-20T15-08-49-019Z-33f95564-item.addComp", + "operationId": "item.addComp", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "id": 1, + "name": "Comp1", + "parent": null + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "item.addComp", + "mutating": true, + "destructive": false + }, + "outcome": "COMPLETED", + "evidenceFile": "/tmp/att-comp.json", + "cleanup": { + "attempted": true, + "ok": true, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-addnull-2027.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-addnull-2027.json new file mode 100644 index 00000000..d731df46 --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-addnull-2027.json @@ -0,0 +1,61 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T15-08-57-261Z-e4ff2638", + "command": "execute", + "sourceSha": "9386890e37a2519c47f44917d5300c10421954d5", + "sourceDirty": false, + "opId": "comp.addNullLayer", + "requestId": "req-run-2026-11-20T15-08-57-261Z-e4ff2638-comp.addNullLayer", + "session": { + "aeVersion": "27.0x78", + "ownership": "attached", + "aeA8nHead": "50e712b6149fd1fed8fb55965ec4f3eed1102250", + "attached": true, + "target": { + "ownership": "attached", + "ownershipEvidence": "already running before launch: pid 22873", + "aeVersion": "27.0x78", + "installDir": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027", + "appPath": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app", + "project": null, + "projectFile": null + }, + "kind": "a8n-attached", + "evidenceLevel": "verified on real host (attach to a running AE)", + "policy": { + "readOnly": false, + "mode": "attached", + "mutation": { + "allowedOps": [ + "comp.addNullLayer" + ] + } + } + }, + "at": "2026-11-20T15:09:00.559Z", + "result": { + "requestId": "req-run-2026-11-20T15-08-57-261Z-e4ff2638-comp.addNullLayer", + "operationId": "comp.addNullLayer", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "layer": "Null 1", + "index": 1 + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "comp.addNullLayer", + "mutating": true, + "destructive": false + }, + "outcome": "COMPLETED", + "evidenceFile": "/tmp/att-null.json", + "cleanup": { + "attempted": true, + "ok": true, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-mcp-cleanup-2027.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-mcp-cleanup-2027.json new file mode 100644 index 00000000..c7ecf480 --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-mcp-cleanup-2027.json @@ -0,0 +1,12 @@ +{ + "schema": "ae-devtools.cli.error/v1", + "runId": "run-2026-11-20T16-37-11-846Z-0d05a36c", + "code": "ATTACHED_TARGET_NOT_RUNNING", + "message": "a8n-attached found After Effects processes but none match install /Applications/Adobe After Effects 2027/Adobe After Effects 2027.app/Contents/MacOS/After Effects; start that AE first or use --session a8n for a disposable owned session. No AE process was launched.", + "cleanup": { + "attempted": false, + "ok": null, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-mcp-final-2027.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-mcp-final-2027.json new file mode 100644 index 00000000..547725b6 --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-mcp-final-2027.json @@ -0,0 +1,12 @@ +{ + "schema": "ae-devtools.cli.error/v1", + "runId": "run-2026-11-20T16-37-13-037Z-a30e1123", + "code": "ATTACHED_TARGET_NOT_RUNNING", + "message": "a8n-attached found After Effects processes but none match install /Applications/Adobe After Effects 2027/Adobe After Effects 2027.app/Contents/MacOS/After Effects; start that AE first or use --session a8n for a disposable owned session. No AE process was launched.", + "cleanup": { + "attempted": false, + "ok": null, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-move-2027.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-move-2027.json new file mode 100644 index 00000000..7dd42b64 --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-move-2027.json @@ -0,0 +1,65 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T15-09-09-801Z-59e12db5", + "command": "execute", + "sourceSha": "9386890e37a2519c47f44917d5300c10421954d5", + "sourceDirty": false, + "opId": "layer.setTransformPosition", + "requestId": "req-run-2026-11-20T15-09-09-801Z-59e12db5-layer.setTransformPosition", + "session": { + "aeVersion": "27.0x78", + "ownership": "attached", + "aeA8nHead": "50e712b6149fd1fed8fb55965ec4f3eed1102250", + "attached": true, + "target": { + "ownership": "attached", + "ownershipEvidence": "already running before launch: pid 22873", + "aeVersion": "27.0x78", + "installDir": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027", + "appPath": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app", + "project": null, + "projectFile": null + }, + "kind": "a8n-attached", + "evidenceLevel": "verified on real host (attach to a running AE)", + "policy": { + "readOnly": false, + "mode": "attached", + "mutation": { + "allowedOps": [ + "layer.setTransformPosition" + ] + } + } + }, + "at": "2026-11-20T15:09:10.791Z", + "result": { + "requestId": "req-run-2026-11-20T15-09-09-801Z-59e12db5-layer.setTransformPosition", + "operationId": "layer.setTransformPosition", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "layer": "Null 1", + "value": [ + 100, + 200, + 0 + ] + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "layer.setTransformPosition", + "mutating": true, + "destructive": false + }, + "outcome": "COMPLETED", + "evidenceFile": "/tmp/att-move.json", + "cleanup": { + "attempted": true, + "ok": true, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-open-2027.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-open-2027.json new file mode 100644 index 00000000..e5901521 --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-open-2027.json @@ -0,0 +1,60 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T15-10-08-172Z-0a17a5df", + "command": "execute", + "sourceSha": "9386890e37a2519c47f44917d5300c10421954d5", + "sourceDirty": false, + "opId": "project.open", + "requestId": "req-run-2026-11-20T15-10-08-172Z-0a17a5df-project.open", + "session": { + "aeVersion": "27.0x78", + "ownership": "attached", + "aeA8nHead": "50e712b6149fd1fed8fb55965ec4f3eed1102250", + "attached": true, + "target": { + "ownership": "attached", + "ownershipEvidence": "already running before launch: pid 22873", + "aeVersion": "27.0x78", + "installDir": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027", + "appPath": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app", + "project": null, + "projectFile": null + }, + "kind": "a8n-attached", + "evidenceLevel": "verified on real host (attach to a running AE)", + "policy": { + "readOnly": false, + "mode": "attached", + "mutation": { + "allowedOps": [ + "project.open" + ] + } + } + }, + "at": "2026-11-20T15:10:09.178Z", + "result": { + "requestId": "req-run-2026-11-20T15-10-08-172Z-0a17a5df-project.open", + "operationId": "project.open", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "project": "/tmp/ae-att-test.aep" + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "project.open", + "mutating": true, + "destructive": true + }, + "outcome": "COMPLETED", + "evidenceFile": "/tmp/att-open.json", + "cleanup": { + "attempted": true, + "ok": true, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-preflight-norun-2027.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-preflight-norun-2027.json new file mode 100644 index 00000000..56dc8b7f --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-preflight-norun-2027.json @@ -0,0 +1,12 @@ +{ + "schema": "ae-devtools.cli.error/v1", + "runId": "run-2026-11-20T15-13-14-138Z-657e6ce0", + "code": "ATTACHED_TARGET_NOT_RUNNING", + "message": "a8n-attached found no running After Effects process for install /Applications/Adobe After Effects 2027/Adobe After Effects 2027.app/Contents/MacOS/After Effects; start AE first or use --session a8n for a disposable owned session. No AE process was launched.", + "cleanup": { + "attempted": false, + "ok": null, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-projectpin-2027.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-projectpin-2027.json new file mode 100644 index 00000000..cb1405bc --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-projectpin-2027.json @@ -0,0 +1,84 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T15-11-56-974Z-4ad47081", + "command": "verify", + "sourceSha": "9386890e37a2519c47f44917d5300c10421954d5", + "sourceDirty": true, + "opId": null, + "requestId": "req-run-2026-11-20T15-11-56-974Z-4ad47081-verify", + "session": { + "aeVersion": "27.0x78", + "ownership": "attached", + "aeA8nHead": "50e712b6149fd1fed8fb55965ec4f3eed1102250", + "attached": true, + "target": { + "ownership": "attached", + "ownershipEvidence": "already running before launch: pid 22873", + "aeVersion": "27.0x78", + "installDir": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027", + "appPath": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app", + "project": { + "file": "/tmp/ae-att-test.aep", + "name": "ae-att-test.aep" + }, + "projectFile": "/tmp/ae-att-test.aep" + }, + "kind": "a8n-attached", + "evidenceLevel": "verified on real host (attach to a running AE)", + "policy": { + "readOnly": true, + "mode": "attached" + } + }, + "at": "2026-11-20T15:12:02.358Z", + "result": { + "requestId": "req-run-2026-11-20T15-11-56-974Z-4ad47081-verify", + "operationId": "read.projectSummary", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "count": 3, + "numItems": 3, + "items": [ + { + "name": "Comp1", + "typeName": "コンポジション", + "id": 1, + "selected": false, + "parent": null + }, + { + "name": "平面", + "typeName": "フォルダー", + "id": 13, + "selected": false, + "parent": null + }, + { + "name": "ヌル 1", + "typeName": "フッテージ", + "id": 14, + "selected": false, + "parent": "平面" + } + ], + "activeItem": null, + "selection": [] + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "read.projectSummary", + "mutating": false, + "destructive": false + }, + "outcome": "COMPLETED", + "evidenceFile": "/tmp/att-pin4.json", + "cleanup": { + "attempted": true, + "ok": true, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-readdetail-2027.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-readdetail-2027.json new file mode 100644 index 00000000..1e501cc0 --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-readdetail-2027.json @@ -0,0 +1,74 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T15-09-11-492Z-e4d73d7f", + "command": "verify", + "sourceSha": "9386890e37a2519c47f44917d5300c10421954d5", + "sourceDirty": false, + "opId": null, + "requestId": "req-run-2026-11-20T15-09-11-492Z-e4d73d7f-verify", + "session": { + "aeVersion": "27.0x78", + "ownership": "attached", + "aeA8nHead": "50e712b6149fd1fed8fb55965ec4f3eed1102250", + "attached": true, + "target": { + "ownership": "attached", + "ownershipEvidence": "already running before launch: pid 22873", + "aeVersion": "27.0x78", + "installDir": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027", + "appPath": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app", + "project": null, + "projectFile": null + }, + "kind": "a8n-attached", + "evidenceLevel": "verified on real host (attach to a running AE)", + "policy": { + "readOnly": true, + "mode": "attached" + } + }, + "at": "2026-11-20T15:09:12.418Z", + "result": { + "requestId": "req-run-2026-11-20T15-09-11-492Z-e4d73d7f-verify", + "operationId": "read.layerDetail", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "comp": "Comp1", + "layer": { + "name": "Null 1", + "index": 1, + "enabled": true, + "inPoint": 0, + "outPoint": 5, + "locked": false, + "adjustmentLayer": false, + "preserveTransparency": false, + "frameBlending": false, + "collapseTransformation": false, + "source": "ヌル 1", + "parent": null, + "position": [ + 100, + 200, + 0 + ] + } + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "read.layerDetail", + "mutating": false, + "destructive": false + }, + "outcome": "COMPLETED", + "evidenceFile": "/tmp/att-detail.json", + "cleanup": { + "attempted": true, + "ok": true, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-readlayers-2027.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-readlayers-2027.json new file mode 100644 index 00000000..044e3053 --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-readlayers-2027.json @@ -0,0 +1,76 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T15-09-02-849Z-1f2c8b2d", + "command": "verify", + "sourceSha": "9386890e37a2519c47f44917d5300c10421954d5", + "sourceDirty": false, + "opId": null, + "requestId": "req-run-2026-11-20T15-09-02-849Z-1f2c8b2d-verify", + "session": { + "aeVersion": "27.0x78", + "ownership": "attached", + "aeA8nHead": "50e712b6149fd1fed8fb55965ec4f3eed1102250", + "attached": true, + "target": { + "ownership": "attached", + "ownershipEvidence": "already running before launch: pid 22873", + "aeVersion": "27.0x78", + "installDir": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027", + "appPath": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app", + "project": null, + "projectFile": null + }, + "kind": "a8n-attached", + "evidenceLevel": "verified on real host (attach to a running AE)", + "policy": { + "readOnly": true, + "mode": "attached" + } + }, + "at": "2026-11-20T15:09:05.603Z", + "result": { + "requestId": "req-run-2026-11-20T15-09-02-849Z-1f2c8b2d-verify", + "operationId": "read.compLayers", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "comp": "Comp1", + "count": 1, + "layers": [ + { + "name": "Null 1", + "index": 1, + "enabled": true, + "inPoint": 0, + "outPoint": 5, + "locked": false, + "adjustmentLayer": false, + "preserveTransparency": false, + "frameBlending": false, + "collapseTransformation": false, + "hasTrackMatte": false, + "trackMatteType": 5012, + "trackMatteLayer": null, + "isTrackMatte": false, + "timeRemapEnabled": false, + "parent": null + } + ] + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "read.compLayers", + "mutating": false, + "destructive": false + }, + "outcome": "COMPLETED", + "evidenceFile": "/tmp/att-layers.json", + "cleanup": { + "attempted": true, + "ok": true, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-addcomp-2027.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-addcomp-2027.json new file mode 100644 index 00000000..bcc77c30 --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-addcomp-2027.json @@ -0,0 +1,76 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T16-31-25-924Z-680d9534", + "command": "execute", + "sourceSha": "ad32a1d09dcca608179a01370d00277596ad36c1", + "sourceDirty": true, + "opId": "item.addComp", + "requestId": "req-run-2026-11-20T16-31-25-924Z-680d9534-item.addComp", + "session": { + "aeVersion": "27.0x78", + "ownership": "attached", + "aeA8nHead": "716dada4c9c7ceaf8f6e32e02b40875f32af7070", + "attached": true, + "target": { + "ownership": "attached", + "ownershipEvidence": "already running before launch: pid 56305", + "aeVersion": "27.0x78", + "installDir": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027", + "appPath": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app", + "project": { + "file": null, + "name": null + }, + "projectFile": null, + "identity": { + "pid": 56305, + "processStart": "Sat Nov 21 01:30:06 2026", + "executable": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app/Contents/MacOS/After Effects", + "aeVersion": "27.0x78", + "projectFile": null, + "projectName": null, + "ownershipEvidence": "already running before launch: pid 56305", + "attestedAt": "2026-11-20T16:31:31.237Z" + }, + "attachApi": "AfterEffects.launch(transitional)" + }, + "kind": "a8n-attached", + "evidenceLevel": "verified on real host (attach to a running AE)", + "policy": { + "readOnly": false, + "mode": "attached", + "mutation": { + "allowedOps": [ + "item.addComp" + ] + } + } + }, + "at": "2026-11-20T16:31:31.324Z", + "result": { + "requestId": "req-run-2026-11-20T16-31-25-924Z-680d9534-item.addComp", + "operationId": "item.addComp", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "id": 1, + "name": "DevToolsProbeComp", + "parent": null + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "item.addComp", + "mutating": true, + "destructive": false + }, + "outcome": "COMPLETED", + "evidenceFile": "devtools-cli/evidence/run-366-attached-revalidate-addcomp-2027.json", + "cleanup": { + "attempted": true, + "ok": true, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-addnull-2027.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-addnull-2027.json new file mode 100644 index 00000000..eabbe385 --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-addnull-2027.json @@ -0,0 +1,75 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T16-31-43-252Z-770e3f08", + "command": "execute", + "sourceSha": "ad32a1d09dcca608179a01370d00277596ad36c1", + "sourceDirty": true, + "opId": "comp.addNullLayer", + "requestId": "req-run-2026-11-20T16-31-43-252Z-770e3f08-comp.addNullLayer", + "session": { + "aeVersion": "27.0x78", + "ownership": "attached", + "aeA8nHead": "716dada4c9c7ceaf8f6e32e02b40875f32af7070", + "attached": true, + "target": { + "ownership": "attached", + "ownershipEvidence": "already running before launch: pid 56305", + "aeVersion": "27.0x78", + "installDir": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027", + "appPath": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app", + "project": { + "file": null, + "name": null + }, + "projectFile": null, + "identity": { + "pid": 56305, + "processStart": "Sat Nov 21 01:30:06 2026", + "executable": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app/Contents/MacOS/After Effects", + "aeVersion": "27.0x78", + "projectFile": null, + "projectName": null, + "ownershipEvidence": "already running before launch: pid 56305", + "attestedAt": "2026-11-20T16:31:48.156Z" + }, + "attachApi": "AfterEffects.launch(transitional)" + }, + "kind": "a8n-attached", + "evidenceLevel": "verified on real host (attach to a running AE)", + "policy": { + "readOnly": false, + "mode": "attached", + "mutation": { + "allowedOps": [ + "comp.addNullLayer" + ] + } + } + }, + "at": "2026-11-20T16:31:48.233Z", + "result": { + "requestId": "req-run-2026-11-20T16-31-43-252Z-770e3f08-comp.addNullLayer", + "operationId": "comp.addNullLayer", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "layer": "ProbeNull", + "index": 1 + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "comp.addNullLayer", + "mutating": true, + "destructive": false + }, + "outcome": "COMPLETED", + "evidenceFile": "devtools-cli/evidence/run-366-attached-revalidate-addnull-2027.json", + "cleanup": { + "attempted": true, + "ok": true, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-cleanup-folder-2027.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-cleanup-folder-2027.json new file mode 100644 index 00000000..e3afcfc4 --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-cleanup-folder-2027.json @@ -0,0 +1,74 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T16-33-25-713Z-8c3b2c64", + "command": "execute", + "sourceSha": "ad32a1d09dcca608179a01370d00277596ad36c1", + "sourceDirty": true, + "opId": "item.remove", + "requestId": "req-run-2026-11-20T16-33-25-713Z-8c3b2c64-item.remove", + "session": { + "aeVersion": "27.0x78", + "ownership": "attached", + "aeA8nHead": "716dada4c9c7ceaf8f6e32e02b40875f32af7070", + "attached": true, + "target": { + "ownership": "attached", + "ownershipEvidence": "already running before launch: pid 56305", + "aeVersion": "27.0x78", + "installDir": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027", + "appPath": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app", + "project": { + "file": null, + "name": null + }, + "projectFile": null, + "identity": { + "pid": 56305, + "processStart": "Sat Nov 21 01:30:06 2026", + "executable": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app/Contents/MacOS/After Effects", + "aeVersion": "27.0x78", + "projectFile": null, + "projectName": null, + "ownershipEvidence": "already running before launch: pid 56305", + "attestedAt": "2026-11-20T16:33:30.495Z" + }, + "attachApi": "AfterEffects.launch(transitional)" + }, + "kind": "a8n-attached", + "evidenceLevel": "verified on real host (attach to a running AE)", + "policy": { + "readOnly": false, + "mode": "attached", + "mutation": { + "allowedOps": [ + "item.remove" + ] + } + } + }, + "at": "2026-11-20T16:33:30.620Z", + "result": { + "requestId": "req-run-2026-11-20T16-33-25-713Z-8c3b2c64-item.remove", + "operationId": "item.remove", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "removed": "平面" + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "item.remove", + "mutating": true, + "destructive": true + }, + "outcome": "COMPLETED", + "evidenceFile": "devtools-cli/evidence/run-366-attached-revalidate-cleanup-folder-2027.json", + "cleanup": { + "attempted": true, + "ok": true, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-cleanup-footage-2027.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-cleanup-footage-2027.json new file mode 100644 index 00000000..e0299330 --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-cleanup-footage-2027.json @@ -0,0 +1,74 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T16-33-13-225Z-76dfed7f", + "command": "execute", + "sourceSha": "ad32a1d09dcca608179a01370d00277596ad36c1", + "sourceDirty": true, + "opId": "item.remove", + "requestId": "req-run-2026-11-20T16-33-13-225Z-76dfed7f-item.remove", + "session": { + "aeVersion": "27.0x78", + "ownership": "attached", + "aeA8nHead": "716dada4c9c7ceaf8f6e32e02b40875f32af7070", + "attached": true, + "target": { + "ownership": "attached", + "ownershipEvidence": "already running before launch: pid 56305", + "aeVersion": "27.0x78", + "installDir": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027", + "appPath": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app", + "project": { + "file": null, + "name": null + }, + "projectFile": null, + "identity": { + "pid": 56305, + "processStart": "Sat Nov 21 01:30:06 2026", + "executable": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app/Contents/MacOS/After Effects", + "aeVersion": "27.0x78", + "projectFile": null, + "projectName": null, + "ownershipEvidence": "already running before launch: pid 56305", + "attestedAt": "2026-11-20T16:33:19.163Z" + }, + "attachApi": "AfterEffects.launch(transitional)" + }, + "kind": "a8n-attached", + "evidenceLevel": "verified on real host (attach to a running AE)", + "policy": { + "readOnly": false, + "mode": "attached", + "mutation": { + "allowedOps": [ + "item.remove" + ] + } + } + }, + "at": "2026-11-20T16:33:19.233Z", + "result": { + "requestId": "req-run-2026-11-20T16-33-13-225Z-76dfed7f-item.remove", + "operationId": "item.remove", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "removed": "ヌル 1" + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "item.remove", + "mutating": true, + "destructive": true + }, + "outcome": "COMPLETED", + "evidenceFile": "devtools-cli/evidence/run-366-attached-revalidate-cleanup-footage-2027.json", + "cleanup": { + "attempted": true, + "ok": true, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-final-2027.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-final-2027.json new file mode 100644 index 00000000..a5703946 --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-final-2027.json @@ -0,0 +1,88 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T16-32-48-690Z-3fc997fb", + "command": "verify", + "sourceSha": "ad32a1d09dcca608179a01370d00277596ad36c1", + "sourceDirty": true, + "opId": null, + "requestId": "req-run-2026-11-20T16-32-48-690Z-3fc997fb-verify", + "session": { + "aeVersion": "27.0x78", + "ownership": "attached", + "aeA8nHead": "716dada4c9c7ceaf8f6e32e02b40875f32af7070", + "attached": true, + "target": { + "ownership": "attached", + "ownershipEvidence": "already running before launch: pid 56305", + "aeVersion": "27.0x78", + "installDir": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027", + "appPath": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app", + "project": { + "file": null, + "name": null + }, + "projectFile": null, + "identity": { + "pid": 56305, + "processStart": "Sat Nov 21 01:30:06 2026", + "executable": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app/Contents/MacOS/After Effects", + "aeVersion": "27.0x78", + "projectFile": null, + "projectName": null, + "ownershipEvidence": "already running before launch: pid 56305", + "attestedAt": "2026-11-20T16:32:56.434Z" + }, + "attachApi": "AfterEffects.launch(transitional)" + }, + "kind": "a8n-attached", + "evidenceLevel": "verified on real host (attach to a running AE)", + "policy": { + "readOnly": true, + "mode": "attached" + } + }, + "at": "2026-11-20T16:32:56.536Z", + "result": { + "requestId": "req-run-2026-11-20T16-32-48-690Z-3fc997fb-verify", + "operationId": "read.projectSummary", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "count": 2, + "numItems": 2, + "items": [ + { + "name": "平面", + "typeName": "フォルダー", + "id": 13, + "selected": false, + "parent": null + }, + { + "name": "ヌル 1", + "typeName": "フッテージ", + "id": 14, + "selected": false, + "parent": "平面" + } + ], + "activeItem": null, + "selection": [] + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "read.projectSummary", + "mutating": false, + "destructive": false + }, + "outcome": "COMPLETED", + "evidenceFile": "devtools-cli/evidence/run-366-attached-revalidate-final-2027.json", + "cleanup": { + "attempted": true, + "ok": true, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-final2-2027.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-final2-2027.json new file mode 100644 index 00000000..8f9aa037 --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-final2-2027.json @@ -0,0 +1,73 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T16-33-33-159Z-8c304a0b", + "command": "verify", + "sourceSha": "ad32a1d09dcca608179a01370d00277596ad36c1", + "sourceDirty": true, + "opId": null, + "requestId": "req-run-2026-11-20T16-33-33-159Z-8c304a0b-verify", + "session": { + "aeVersion": "27.0x78", + "ownership": "attached", + "aeA8nHead": "716dada4c9c7ceaf8f6e32e02b40875f32af7070", + "attached": true, + "target": { + "ownership": "attached", + "ownershipEvidence": "already running before launch: pid 56305", + "aeVersion": "27.0x78", + "installDir": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027", + "appPath": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app", + "project": { + "file": null, + "name": null + }, + "projectFile": null, + "identity": { + "pid": 56305, + "processStart": "Sat Nov 21 01:30:06 2026", + "executable": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app/Contents/MacOS/After Effects", + "aeVersion": "27.0x78", + "projectFile": null, + "projectName": null, + "ownershipEvidence": "already running before launch: pid 56305", + "attestedAt": "2026-11-20T16:33:36.874Z" + }, + "attachApi": "AfterEffects.launch(transitional)" + }, + "kind": "a8n-attached", + "evidenceLevel": "verified on real host (attach to a running AE)", + "policy": { + "readOnly": true, + "mode": "attached" + } + }, + "at": "2026-11-20T16:33:36.982Z", + "result": { + "requestId": "req-run-2026-11-20T16-33-33-159Z-8c304a0b-verify", + "operationId": "read.projectSummary", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "count": 0, + "numItems": 0, + "items": [], + "activeItem": null, + "selection": [] + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "read.projectSummary", + "mutating": false, + "destructive": false + }, + "outcome": "COMPLETED", + "evidenceFile": "devtools-cli/evidence/run-366-attached-revalidate-final2-2027.json", + "cleanup": { + "attempted": true, + "ok": true, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-move-2027.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-move-2027.json new file mode 100644 index 00000000..7fa1ce81 --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-move-2027.json @@ -0,0 +1,79 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T16-31-54-475Z-423f6b5f", + "command": "execute", + "sourceSha": "ad32a1d09dcca608179a01370d00277596ad36c1", + "sourceDirty": true, + "opId": "layer.setTransformPosition", + "requestId": "req-run-2026-11-20T16-31-54-475Z-423f6b5f-layer.setTransformPosition", + "session": { + "aeVersion": "27.0x78", + "ownership": "attached", + "aeA8nHead": "716dada4c9c7ceaf8f6e32e02b40875f32af7070", + "attached": true, + "target": { + "ownership": "attached", + "ownershipEvidence": "already running before launch: pid 56305", + "aeVersion": "27.0x78", + "installDir": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027", + "appPath": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app", + "project": { + "file": null, + "name": null + }, + "projectFile": null, + "identity": { + "pid": 56305, + "processStart": "Sat Nov 21 01:30:06 2026", + "executable": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app/Contents/MacOS/After Effects", + "aeVersion": "27.0x78", + "projectFile": null, + "projectName": null, + "ownershipEvidence": "already running before launch: pid 56305", + "attestedAt": "2026-11-20T16:32:01.020Z" + }, + "attachApi": "AfterEffects.launch(transitional)" + }, + "kind": "a8n-attached", + "evidenceLevel": "verified on real host (attach to a running AE)", + "policy": { + "readOnly": false, + "mode": "attached", + "mutation": { + "allowedOps": [ + "layer.setTransformPosition" + ] + } + } + }, + "at": "2026-11-20T16:32:01.100Z", + "result": { + "requestId": "req-run-2026-11-20T16-31-54-475Z-423f6b5f-layer.setTransformPosition", + "operationId": "layer.setTransformPosition", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "layer": "ProbeNull", + "value": [ + 100, + 200, + 0 + ] + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "layer.setTransformPosition", + "mutating": true, + "destructive": false + }, + "outcome": "COMPLETED", + "evidenceFile": "devtools-cli/evidence/run-366-attached-revalidate-move-2027.json", + "cleanup": { + "attempted": true, + "ok": true, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-readdetail-2027.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-readdetail-2027.json new file mode 100644 index 00000000..023080b6 --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-readdetail-2027.json @@ -0,0 +1,88 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T16-32-22-690Z-e1936927", + "command": "verify", + "sourceSha": "ad32a1d09dcca608179a01370d00277596ad36c1", + "sourceDirty": true, + "opId": null, + "requestId": "req-run-2026-11-20T16-32-22-690Z-e1936927-verify", + "session": { + "aeVersion": "27.0x78", + "ownership": "attached", + "aeA8nHead": "716dada4c9c7ceaf8f6e32e02b40875f32af7070", + "attached": true, + "target": { + "ownership": "attached", + "ownershipEvidence": "already running before launch: pid 56305", + "aeVersion": "27.0x78", + "installDir": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027", + "appPath": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app", + "project": { + "file": null, + "name": null + }, + "projectFile": null, + "identity": { + "pid": 56305, + "processStart": "Sat Nov 21 01:30:06 2026", + "executable": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app/Contents/MacOS/After Effects", + "aeVersion": "27.0x78", + "projectFile": null, + "projectName": null, + "ownershipEvidence": "already running before launch: pid 56305", + "attestedAt": "2026-11-20T16:32:29.071Z" + }, + "attachApi": "AfterEffects.launch(transitional)" + }, + "kind": "a8n-attached", + "evidenceLevel": "verified on real host (attach to a running AE)", + "policy": { + "readOnly": true, + "mode": "attached" + } + }, + "at": "2026-11-20T16:32:29.158Z", + "result": { + "requestId": "req-run-2026-11-20T16-32-22-690Z-e1936927-verify", + "operationId": "read.layerDetail", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "comp": "DevToolsProbeComp", + "layer": { + "name": "ProbeNull", + "index": 1, + "enabled": true, + "inPoint": 0, + "outPoint": 5, + "locked": false, + "adjustmentLayer": false, + "preserveTransparency": false, + "frameBlending": false, + "collapseTransformation": false, + "source": "ヌル 1", + "parent": null, + "position": [ + 100, + 200, + 0 + ] + } + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "read.layerDetail", + "mutating": false, + "destructive": false + }, + "outcome": "COMPLETED", + "evidenceFile": "devtools-cli/evidence/run-366-attached-revalidate-readdetail-2027.json", + "cleanup": { + "attempted": true, + "ok": true, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-readlayers-2027.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-readlayers-2027.json new file mode 100644 index 00000000..f98af6ac --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-readlayers-2027.json @@ -0,0 +1,90 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T16-32-12-433Z-53e0e6d8", + "command": "verify", + "sourceSha": "ad32a1d09dcca608179a01370d00277596ad36c1", + "sourceDirty": true, + "opId": null, + "requestId": "req-run-2026-11-20T16-32-12-433Z-53e0e6d8-verify", + "session": { + "aeVersion": "27.0x78", + "ownership": "attached", + "aeA8nHead": "716dada4c9c7ceaf8f6e32e02b40875f32af7070", + "attached": true, + "target": { + "ownership": "attached", + "ownershipEvidence": "already running before launch: pid 56305", + "aeVersion": "27.0x78", + "installDir": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027", + "appPath": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app", + "project": { + "file": null, + "name": null + }, + "projectFile": null, + "identity": { + "pid": 56305, + "processStart": "Sat Nov 21 01:30:06 2026", + "executable": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app/Contents/MacOS/After Effects", + "aeVersion": "27.0x78", + "projectFile": null, + "projectName": null, + "ownershipEvidence": "already running before launch: pid 56305", + "attestedAt": "2026-11-20T16:32:18.228Z" + }, + "attachApi": "AfterEffects.launch(transitional)" + }, + "kind": "a8n-attached", + "evidenceLevel": "verified on real host (attach to a running AE)", + "policy": { + "readOnly": true, + "mode": "attached" + } + }, + "at": "2026-11-20T16:32:18.298Z", + "result": { + "requestId": "req-run-2026-11-20T16-32-12-433Z-53e0e6d8-verify", + "operationId": "read.compLayers", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "comp": "DevToolsProbeComp", + "count": 1, + "layers": [ + { + "name": "ProbeNull", + "index": 1, + "enabled": true, + "inPoint": 0, + "outPoint": 5, + "locked": false, + "adjustmentLayer": false, + "preserveTransparency": false, + "frameBlending": false, + "collapseTransformation": false, + "hasTrackMatte": false, + "trackMatteType": 5012, + "trackMatteLayer": null, + "isTrackMatte": false, + "timeRemapEnabled": false, + "parent": null + } + ] + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "read.compLayers", + "mutating": false, + "destructive": false + }, + "outcome": "COMPLETED", + "evidenceFile": "devtools-cli/evidence/run-366-attached-revalidate-readlayers-2027.json", + "cleanup": { + "attempted": true, + "ok": true, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-remove-2027.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-remove-2027.json new file mode 100644 index 00000000..095c11bc --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-remove-2027.json @@ -0,0 +1,74 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T16-32-34-275Z-77678c90", + "command": "execute", + "sourceSha": "ad32a1d09dcca608179a01370d00277596ad36c1", + "sourceDirty": true, + "opId": "item.remove", + "requestId": "req-run-2026-11-20T16-32-34-275Z-77678c90-item.remove", + "session": { + "aeVersion": "27.0x78", + "ownership": "attached", + "aeA8nHead": "716dada4c9c7ceaf8f6e32e02b40875f32af7070", + "attached": true, + "target": { + "ownership": "attached", + "ownershipEvidence": "already running before launch: pid 56305", + "aeVersion": "27.0x78", + "installDir": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027", + "appPath": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app", + "project": { + "file": null, + "name": null + }, + "projectFile": null, + "identity": { + "pid": 56305, + "processStart": "Sat Nov 21 01:30:06 2026", + "executable": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app/Contents/MacOS/After Effects", + "aeVersion": "27.0x78", + "projectFile": null, + "projectName": null, + "ownershipEvidence": "already running before launch: pid 56305", + "attestedAt": "2026-11-20T16:32:40.224Z" + }, + "attachApi": "AfterEffects.launch(transitional)" + }, + "kind": "a8n-attached", + "evidenceLevel": "verified on real host (attach to a running AE)", + "policy": { + "readOnly": false, + "mode": "attached", + "mutation": { + "allowedOps": [ + "item.remove" + ] + } + } + }, + "at": "2026-11-20T16:32:40.370Z", + "result": { + "requestId": "req-run-2026-11-20T16-32-34-275Z-77678c90-item.remove", + "operationId": "item.remove", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "removed": "DevToolsProbeComp" + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "item.remove", + "mutating": true, + "destructive": true + }, + "outcome": "COMPLETED", + "evidenceFile": "devtools-cli/evidence/run-366-attached-revalidate-remove-2027.json", + "cleanup": { + "attempted": true, + "ok": true, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-verify-2027.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-verify-2027.json new file mode 100644 index 00000000..82e3aae1 --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-revalidate-verify-2027.json @@ -0,0 +1,73 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T16-31-00-441Z-87ca81b6", + "command": "verify", + "sourceSha": "ad32a1d09dcca608179a01370d00277596ad36c1", + "sourceDirty": false, + "opId": null, + "requestId": "req-run-2026-11-20T16-31-00-441Z-87ca81b6-verify", + "session": { + "aeVersion": "27.0x78", + "ownership": "attached", + "aeA8nHead": "716dada4c9c7ceaf8f6e32e02b40875f32af7070", + "attached": true, + "target": { + "ownership": "attached", + "ownershipEvidence": "already running before launch: pid 56305", + "aeVersion": "27.0x78", + "installDir": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027", + "appPath": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app", + "project": { + "file": null, + "name": null + }, + "projectFile": null, + "identity": { + "pid": 56305, + "processStart": "Sat Nov 21 01:30:06 2026", + "executable": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app/Contents/MacOS/After Effects", + "aeVersion": "27.0x78", + "projectFile": null, + "projectName": null, + "ownershipEvidence": "already running before launch: pid 56305", + "attestedAt": "2026-11-20T16:31:07.274Z" + }, + "attachApi": "AfterEffects.launch(transitional)" + }, + "kind": "a8n-attached", + "evidenceLevel": "verified on real host (attach to a running AE)", + "policy": { + "readOnly": true, + "mode": "attached" + } + }, + "at": "2026-11-20T16:31:07.459Z", + "result": { + "requestId": "req-run-2026-11-20T16-31-00-441Z-87ca81b6-verify", + "operationId": "read.projectSummary", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "count": 0, + "numItems": 0, + "items": [], + "activeItem": null, + "selection": [] + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "read.projectSummary", + "mutating": false, + "destructive": false + }, + "outcome": "COMPLETED", + "evidenceFile": "devtools-cli/evidence/run-366-attached-revalidate-verify-2027.json", + "cleanup": { + "attempted": true, + "ok": true, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-save-2027.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-save-2027.json new file mode 100644 index 00000000..2492a4f4 --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-save-2027.json @@ -0,0 +1,59 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T15-09-19-160Z-8cb26c63", + "command": "execute", + "sourceSha": "9386890e37a2519c47f44917d5300c10421954d5", + "sourceDirty": false, + "opId": "project.save", + "requestId": "req-run-2026-11-20T15-09-19-160Z-8cb26c63-project.save", + "session": { + "aeVersion": "27.0x78", + "ownership": "attached", + "aeA8nHead": "50e712b6149fd1fed8fb55965ec4f3eed1102250", + "attached": true, + "target": { + "ownership": "attached", + "ownershipEvidence": "already running before launch: pid 22873", + "aeVersion": "27.0x78", + "installDir": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027", + "appPath": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app", + "project": null, + "projectFile": null + }, + "kind": "a8n-attached", + "evidenceLevel": "verified on real host (attach to a running AE)", + "policy": { + "readOnly": false, + "mode": "attached", + "mutation": { + "allowedOps": [ + "project.save" + ] + } + } + }, + "at": "2026-11-20T15:09:20.186Z", + "result": { + "requestId": "req-run-2026-11-20T15-09-19-160Z-8cb26c63-project.save", + "operationId": "project.save", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "project.save", + "mutating": true, + "destructive": false + }, + "outcome": "COMPLETED", + "evidenceFile": "/tmp/att-save.json", + "cleanup": { + "attempted": true, + "ok": true, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-verify-2027.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-verify-2027.json new file mode 100644 index 00000000..514f2be2 --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-366-attached-verify-2027.json @@ -0,0 +1,59 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T15-06-49-680Z-219082a5", + "command": "verify", + "sourceSha": "9386890e37a2519c47f44917d5300c10421954d5", + "sourceDirty": false, + "opId": null, + "requestId": "req-run-2026-11-20T15-06-49-680Z-219082a5-verify", + "session": { + "aeVersion": "27.0x78", + "ownership": "attached", + "aeA8nHead": "50e712b6149fd1fed8fb55965ec4f3eed1102250", + "attached": true, + "target": { + "ownership": "attached", + "ownershipEvidence": "already running before launch: pid 22873", + "aeVersion": "27.0x78", + "installDir": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027", + "appPath": "/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app", + "project": null, + "projectFile": null + }, + "kind": "a8n-attached", + "evidenceLevel": "verified on real host (attach to a running AE)", + "policy": { + "readOnly": true, + "mode": "attached" + } + }, + "at": "2026-11-20T15:06:51.003Z", + "result": { + "requestId": "req-run-2026-11-20T15-06-49-680Z-219082a5-verify", + "operationId": "read.projectSummary", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "count": 0, + "numItems": 0, + "items": [], + "activeItem": null, + "selection": [] + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "read.projectSummary", + "mutating": false, + "destructive": false + }, + "outcome": "COMPLETED", + "evidenceFile": "/tmp/att-verify.json", + "cleanup": { + "attempted": true, + "ok": true, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-374-attached-no-fallback-2026.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-374-attached-no-fallback-2026.json new file mode 100644 index 00000000..c34006c3 --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-374-attached-no-fallback-2026.json @@ -0,0 +1,73 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T17-23-06-719Z-5956c7d2", + "command": "verify", + "sourceSha": "a4af498d664f972c89f3a1f7af684cb7b6e5c6aa", + "sourceDirty": true, + "opId": null, + "requestId": "req-run-2026-11-20T17-23-06-719Z-5956c7d2-verify", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "attached", + "aeA8nHead": "c104e39b627f16e32f96c5c8fe4fd107c33b4a64", + "attached": true, + "target": { + "ownership": "attached", + "ownershipEvidence": "attached to pid 34792 (the process running since 2026-11-20T16:36:38.000Z); it was already running and is not this session's to quit in the session of rebui (uid 501, asid 100022)", + "aeVersion": "26.5.3x9", + "installDir": "/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app", + "appPath": "/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app", + "project": { + "file": null, + "name": null + }, + "projectFile": null, + "identity": { + "pid": 34792, + "processStart": "Sat Nov 21 01:36:38 2026", + "executable": "/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app/Contents/MacOS/After Effects", + "aeVersion": "26.5.3x9", + "projectFile": null, + "projectName": null, + "ownershipEvidence": "attached to pid 34792 (the process running since 2026-11-20T16:36:38.000Z); it was already running and is not this session's to quit in the session of rebui (uid 501, asid 100022)", + "attestedAt": "2026-11-20T17:23:13.080Z" + }, + "attachApi": "AfterEffects.attach" + }, + "kind": "a8n-attached", + "evidenceLevel": "verified on real host (attach to a running AE)", + "policy": { + "readOnly": true, + "mode": "attached" + } + }, + "at": "2026-11-20T17:23:13.250Z", + "result": { + "requestId": "req-run-2026-11-20T17-23-06-719Z-5956c7d2-verify", + "operationId": "read.projectSummary", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "count": 0, + "numItems": 0, + "items": [], + "activeItem": null, + "selection": [] + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "read.projectSummary", + "mutating": false, + "destructive": false + }, + "outcome": "COMPLETED", + "evidenceFile": "devtools-cli/evidence/run-374-attached-no-fallback-2026.json", + "cleanup": { + "attempted": true, + "ok": true, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-win-addcomp.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-win-addcomp.json new file mode 100644 index 00000000..75f58d68 --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-win-addcomp.json @@ -0,0 +1,44 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T17-57-05-249Z-3b6275f8", + "command": "execute", + "sourceSha": "fdb7fdeba331191be131cc6929f0e6c6984a898e", + "sourceDirty": true, + "opId": "item.addComp", + "requestId": "req-run-2026-11-20T17-57-05-249Z-3b6275f8-item.addComp", + "session": { + "aeVersion": "27.0x78", + "ownership": "owned", + "aeA8nHead": "0.5.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "at": "2026-11-20T17:57:24.643Z", + "result": { + "requestId": "req-run-2026-11-20T17-57-05-249Z-3b6275f8-item.addComp", + "operationId": "item.addComp", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "id": 1, + "name": "WinProbeComp", + "parent": null + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "item.addComp", + "mutating": true, + "destructive": false + }, + "outcome": "COMPLETED", + "evidenceFile": "devtools-cli/evidence/run-win-addcomp.json", + "cleanup": { + "attempted": true, + "ok": false, + "error": "EPERM, Permission denied: 'C:\\Users\\rebui\\AppData\\Local\\Temp\\a8n-transport-jgB09i'", + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-win-owned-slice.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-win-owned-slice.json new file mode 100644 index 00000000..425521a0 --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-win-owned-slice.json @@ -0,0 +1,51 @@ +{ + "schema": "ae-devtools.win-slice/v1", + "steps": [ + { + "name": "session.open", + "at": "2026-11-20T17:58:30.455Z", + "aeVersion": "27.0x78", + "ownership": "owned", + "aeA8nHead": "0.5.0" + }, + { + "name": "addComp", + "at": "2026-11-20T17:58:31.527Z", + "outcome": "COMPLETED", + "result": { + "ok": true, + "id": 1, + "name": "WinSliceComp", + "parent": null + } + }, + { + "name": "readback.summary", + "at": "2026-11-20T17:58:31.527Z", + "outcome": "BLOCKED" + }, + { + "name": "addNullLayer", + "at": "2026-11-20T17:58:31.527Z" + }, + { + "name": "readback.layers", + "at": "2026-11-20T17:58:31.527Z" + }, + { + "name": "removeComp", + "at": "2026-11-20T17:58:31.527Z" + }, + { + "name": "readback.final", + "at": "2026-11-20T17:58:31.527Z", + "outcome": "BLOCKED" + }, + { + "name": "session.close", + "at": "2026-11-20T17:58:32.487Z", + "ok": false, + "error": "session.close refused: the open project has unsaved changes" + } + ] +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-win-owned-verify.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-win-owned-verify.json new file mode 100644 index 00000000..7f590a47 --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-win-owned-verify.json @@ -0,0 +1,46 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T17-53-48-481Z-097a07eb", + "command": "verify", + "sourceSha": "fdb7fdeba331191be131cc6929f0e6c6984a898e", + "sourceDirty": true, + "opId": null, + "requestId": "req-run-2026-11-20T17-53-48-481Z-097a07eb-verify", + "session": { + "aeVersion": "27.0x78", + "ownership": "owned", + "aeA8nHead": "0.5.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "at": "2026-11-20T17:54:05.246Z", + "result": { + "requestId": "req-run-2026-11-20T17-53-48-481Z-097a07eb-verify", + "operationId": "read.projectSummary", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "count": 0, + "numItems": 0, + "items": [], + "activeItem": null, + "selection": [] + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "read.projectSummary", + "mutating": false, + "destructive": false + }, + "outcome": "COMPLETED", + "evidenceFile": "devtools-cli\\evidence\\run-win-owned-verify.json", + "cleanup": { + "attempted": true, + "ok": true, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-win-realrun-a8n050-r2.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-win-realrun-a8n050-r2.json new file mode 100644 index 00000000..4eda1293 --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-win-realrun-a8n050-r2.json @@ -0,0 +1,67 @@ +{ + "schema": "ae-devtools.a8n-transport.real-run/v1", + "issue": 49, + "startedAt": "2026-11-20T18:22:22.437Z", + "sourceSha": "fdb7fdeba331191be131cc6929f0e6c6984a898e", + "sourceDirty": true, + "platform": "win32/x64", + "node": "v26.13.1", + "installDir": null, + "aeProcessesBeforeLaunch": [ + { + "pid": null, + "args": "ls \\\"D:/4_apps/adobe/Adobe After Effects 2027/Support Files/AfterFX.exe\\\" && \\\"D:/4_apps/adobe/Adobe After Effects 2027/Support Files/AfterFX.exe\\\" -r \\\"C:/Users/rebui/Desktop/restro-pv/.tmp/probe-dash.jsx\\\" &" + }, + { + "pid": null, + "args": "ls \\\"D:/4_apps/adobe/Adobe After Effects 2027/Support Files/AfterFX.exe\\\" && \\\"D:/4_apps/adobe/Adobe After Effects 2027/Support Files/AfterFX.exe\\\" -r \\\"C:/Users/rebui/Desktop/restro-pv/.tmp/probe-dash.jsx\\\" &" + }, + { + "pid": 56204, + "args": "\"D:\\4_apps\\adobe\\Adobe After Effects 2027\\Support Files\\AfterFX.exe\" -r" + }, + { + "pid": 35644, + "args": "\"D:\\4_apps\\adobe\\Adobe After Effects 2027\\Support Files\\crashpad_handler.exe\" --no-rate-limit \"--database=C:\\Users\\rebui\\AppData\\Local\\Temp\\Adobe\\After Effects\\27.0\\SentryIO-db\" \"--metrics-dir=C:\\Users\\rebui\\AppData\\Local\\Temp\\Adobe\\After Effects\\27.0\\SentryIO-db\" --url=https://o307710.ingest.sentry.io:443/api/5227323/minidump/?sentry_client=sentry.native/0.13.7&sentry_key=b757a395cf2c47dfbaa4bcf6186b45bb \"--attachment=C:\\Users\\rebui\\AppData\\Local\\Temp\\Adobe\\After Effects\\27.0\\SentryIO-db\\37642157-fd06-4d39-cf47-2e9d8d0f28b3.run\\__sentry-event\" \"--attachment=C:\\Users\\rebui\\AppData\\Local\\Temp\\Adobe\\After Effects\\27.0\\SentryIO-db\\37642157-fd06-4d39-cf47-2e9d8d0f28b3.run\\__sentry-breadcrumb1\" \"--attachment=C:\\Users\\rebui\\AppData\\Local\\Temp\\Adobe\\After Effects\\27.0\\SentryIO-db\\37642157-fd06-4d39-cf47-2e9d8d0f28b3.run\\__sentry-breadcrumb2\" \"--crash-reporter=D:\\4_apps\\adobe\\Adobe After Effects 2027\\Support Files\\AdobeCrashReport.exe\" \"--crash-envelope=C:\\Users\\rebui\\AppData\\Local\\Temp\\Adobe\\After Effects\\27.0\\SentryIO-db\\external\\fdd751b9-01ba-4864-a766-9d80a29fb897.envelope\" --report-id=fdd751b9-01ba-4864-a766-9d80a29fb897 --initial-client-data=0xf44,0xf48,0xf4c,0xf20,0xf50,0x7ffeb7ffc5d0,0x7ffeb7ffc5e8,0x7ffeb7ffc600" + } + ], + "steps": [], + "close": { + "attempted": false, + "note": "session open failed; this script never owned a session to close — see trace for ae-a8n's internal close behaviour" + }, + "handshake": null, + "contractViolations": [], + "launchError": { + "name": "AfterEffectsError", + "message": "After Effects was started (pid 58620, D:\\4_apps\\adobe\\Adobe After Effects 2027\\Support Files\\AfterFX.exe) but did not answer the readiness probe: After Effects did not become ready to run scripts within 180000ms (a dialog may be open in it, such as crash recovery); no script was sent. It was not found when the process list was last read, so whether it survived is unknown; check before running again.", + "code": "A8N-AE-005", + "causeChain": [ + "HostLeftRunningError", + "HostUnavailableError" + ] + }, + "failureStage": "openSliceSession", + "sessionRoot": "C:\\Users\\rebui\\AppData\\Local\\Temp\\a8n-transport-EBzQnN\\a8n-session", + "workdir": "C:\\Users\\rebui\\AppData\\Local\\Temp\\a8n-transport-EBzQnN", + "trace": "{\"seq\":0,\"ts\":\"2026-11-20T18:25:24.878Z\",\"op\":\"session.launch\",\"status\":\"error\",\"durationMs\":181014,\"args\":{\"transport\":\"script-invocation\"},\"result\":{\"pendingLaunch\":{\"pid\":58620,\"startedAt\":null,\"executable\":\"D:\\\\4_apps\\\\adobe\\\\Adobe After Effects 2027\\\\Support Files\\\\AfterFX.exe\",\"presentAtLastLookup\":false,\"sessionUid\":null,\"sessionUser\":null,\"sessionAsid\":null},\"ownership\":{\"kind\":\"unknown\",\"evidence\":\"not launched\"}},\"error\":{\"name\":\"HostUnavailableError\",\"message\":\"After Effects did not become ready to run scripts within 180000ms (a dialog may be open in it, such as crash recovery); no script was sent\"}}\n", + "aeProcessesAfterLaunchFailure": [ + { + "pid": null, + "args": "ls \\\"D:/4_apps/adobe/Adobe After Effects 2027/Support Files/AfterFX.exe\\\" && \\\"D:/4_apps/adobe/Adobe After Effects 2027/Support Files/AfterFX.exe\\\" -r \\\"C:/Users/rebui/Desktop/restro-pv/.tmp/probe-dash.jsx\\\" &" + }, + { + "pid": null, + "args": "ls \\\"D:/4_apps/adobe/Adobe After Effects 2027/Support Files/AfterFX.exe\\\" && \\\"D:/4_apps/adobe/Adobe After Effects 2027/Support Files/AfterFX.exe\\\" -r \\\"C:/Users/rebui/Desktop/restro-pv/.tmp/probe-dash.jsx\\\" &" + }, + { + "pid": 56204, + "args": "\"D:\\4_apps\\adobe\\Adobe After Effects 2027\\Support Files\\AfterFX.exe\" -r" + }, + { + "pid": 35644, + "args": "\"D:\\4_apps\\adobe\\Adobe After Effects 2027\\Support Files\\crashpad_handler.exe\" --no-rate-limit \"--database=C:\\Users\\rebui\\AppData\\Local\\Temp\\Adobe\\After Effects\\27.0\\SentryIO-db\" \"--metrics-dir=C:\\Users\\rebui\\AppData\\Local\\Temp\\Adobe\\After Effects\\27.0\\SentryIO-db\" --url=https://o307710.ingest.sentry.io:443/api/5227323/minidump/?sentry_client=sentry.native/0.13.7&sentry_key=b757a395cf2c47dfbaa4bcf6186b45bb \"--attachment=C:\\Users\\rebui\\AppData\\Local\\Temp\\Adobe\\After Effects\\27.0\\SentryIO-db\\37642157-fd06-4d39-cf47-2e9d8d0f28b3.run\\__sentry-event\" \"--attachment=C:\\Users\\rebui\\AppData\\Local\\Temp\\Adobe\\After Effects\\27.0\\SentryIO-db\\37642157-fd06-4d39-cf47-2e9d8d0f28b3.run\\__sentry-breadcrumb1\" \"--attachment=C:\\Users\\rebui\\AppData\\Local\\Temp\\Adobe\\After Effects\\27.0\\SentryIO-db\\37642157-fd06-4d39-cf47-2e9d8d0f28b3.run\\__sentry-breadcrumb2\" \"--crash-reporter=D:\\4_apps\\adobe\\Adobe After Effects 2027\\Support Files\\AdobeCrashReport.exe\" \"--crash-envelope=C:\\Users\\rebui\\AppData\\Local\\Temp\\Adobe\\After Effects\\27.0\\SentryIO-db\\external\\fdd751b9-01ba-4864-a766-9d80a29fb897.envelope\" --report-id=fdd751b9-01ba-4864-a766-9d80a29fb897 --initial-client-data=0xf44,0xf48,0xf4c,0xf20,0xf50,0x7ffeb7ffc5d0,0x7ffeb7ffc5e8,0x7ffeb7ffc600" + } + ], + "finishedAt": "2026-11-20T18:25:25.306Z" +} diff --git a/packages/ae-devtools-cli/devtools-cli/evidence/run-win-realrun-a8n050.json b/packages/ae-devtools-cli/devtools-cli/evidence/run-win-realrun-a8n050.json new file mode 100644 index 00000000..800a605b --- /dev/null +++ b/packages/ae-devtools-cli/devtools-cli/evidence/run-win-realrun-a8n050.json @@ -0,0 +1,37 @@ +{ + "schema": "ae-devtools.a8n-transport.real-run/v1", + "issue": 49, + "startedAt": "2026-11-20T18:09:55.601Z", + "sourceSha": "fdb7fdeba331191be131cc6929f0e6c6984a898e", + "sourceDirty": true, + "platform": "win32/x64", + "node": "v26.13.1", + "installDir": null, + "aeProcessesBeforeLaunch": { + "error": "spawn ps ENOENT" + }, + "steps": [], + "close": { + "attempted": false, + "note": "session open failed; this script never owned a session to close — see trace for ae-a8n's internal close behaviour" + }, + "handshake": null, + "contractViolations": [], + "launchError": { + "name": "AfterEffectsError", + "message": "After Effects was started (pid 55216, D:\\4_apps\\adobe\\Adobe After Effects 2027\\Support Files\\AfterFX.exe) but did not answer the readiness probe: After Effects did not answer app.info within 178294ms; whether the After Effects process is still running could not be determined. It was not found when the process list was last read, so whether it survived is unknown; check before running again.", + "code": "A8N-AE-005", + "causeChain": [ + "HostLeftRunningError", + "TimeoutError" + ] + }, + "failureStage": "openSliceSession", + "sessionRoot": "C:\\Users\\rebui\\AppData\\Local\\Temp\\a8n-transport-enyjfo\\a8n-session", + "workdir": "C:\\Users\\rebui\\AppData\\Local\\Temp\\a8n-transport-enyjfo", + "trace": "{\"seq\":0,\"ts\":\"2026-11-20T18:12:59.446Z\",\"op\":\"session.probe\",\"status\":\"timeout\",\"durationMs\":179053,\"args\":{\"method\":\"app.info\",\"timeoutMs\":178294},\"result\":{\"hostCondition\":\"unknown\"},\"error\":{\"name\":\"TimeoutError\",\"message\":\"After Effects did not answer app.info within 178294ms; whether the After Effects process is still running could not be determined\"}}\n{\"seq\":1,\"ts\":\"2026-11-20T18:12:59.907Z\",\"op\":\"session.launch\",\"status\":\"error\",\"durationMs\":181223,\"args\":{\"transport\":\"script-invocation\"},\"result\":{\"pendingLaunch\":{\"pid\":55216,\"startedAt\":null,\"executable\":\"D:\\\\4_apps\\\\adobe\\\\Adobe After Effects 2027\\\\Support Files\\\\AfterFX.exe\",\"presentAtLastLookup\":false,\"sessionUid\":null,\"sessionUser\":null,\"sessionAsid\":null},\"ownership\":{\"kind\":\"unknown\",\"evidence\":\"not launched\"}},\"error\":{\"name\":\"TimeoutError\",\"message\":\"After Effects did not answer app.info within 178294ms; whether the After Effects process is still running could not be determined\"}}\n", + "aeProcessesAfterLaunchFailure": { + "error": "spawn ps ENOENT" + }, + "finishedAt": "2026-11-20T18:12:59.932Z" +} diff --git a/packages/ae-devtools-cli/devtools-cli/real-run-kit.mjs b/packages/ae-devtools-cli/devtools-cli/real-run-kit.mjs index a3959bc7..f2ecb670 100644 --- a/packages/ae-devtools-cli/devtools-cli/real-run-kit.mjs +++ b/packages/ae-devtools-cli/devtools-cli/real-run-kit.mjs @@ -36,22 +36,42 @@ import { promisify } from "node:util"; const execFileAsync = promisify(execFile); /** The main AE executable — helpers (crashpad_handler, CEPHtmlEngine, - * dynamiclinkmanager, TeamProjectsLocalHub) legitimately outlive it. */ -export const MAIN_EXE = /Contents\/MacOS\/After Effects(\s|$)/; + * dynamiclinkmanager, TeamProjectsLocalHub) legitimately outlive it. + * macOS: `Contents/MacOS/After Effects`; Windows: `Support Files\AfterFX.exe`. */ +export const MAIN_EXE = /Contents\/MacOS\/After Effects(\s|$)|Support Files\\AfterFX\.exe/i; /** Known Adobe helper executables — used to classify * aeHelpersAfterClose. Anything else matching the install fragment * (e.g. this node's own harness) is NOT an Adobe helper. */ export const ADOBE_HELPER = /crashpad_handler|CEPHtmlEngine|dynamiclinkmanager|TeamProjectsLocalHub|AdobeCrashReport/i; /** - * Snapshot `ps` rows whose command line mentions the AE install. With no - * --install-dir the fragment is the generic bundle directory name, which - * matches every installed AE version — the evidence records all of them so - * a leftover is never hidden by an over-narrow filter. + * Raw "pid args" process rows for the host platform. Unix uses + * `ps -axo pid=,args=`; Windows has no `ps`, so PowerShell + * `Get-CimInstance Win32_Process` supplies ProcessId + CommandLine in + * the same shape. Both degrade to {error} — never fabricated rows. + */ +async function processRows() { + if (process.platform === "win32") { + const script = + "Get-CimInstance Win32_Process -Property ProcessId,CommandLine | " + + "ForEach-Object { if ($_.CommandLine) { \"$($_.ProcessId) $($_.CommandLine)\" } }"; + const { stdout } = await execFileAsync( + "powershell", ["-NoProfile", "-Command", script], { timeout: 20_000 }); + return stdout; + } + const { stdout } = await execFileAsync("ps", ["-axo", "pid=,args="], { timeout: 10_000 }); + return stdout; +} + +/** + * Snapshot process rows whose command line mentions the AE install. + * With no --install-dir the fragment is the generic bundle/directory + * name, which matches every installed AE version — the evidence records + * all of them so a leftover is never hidden by an over-narrow filter. */ export async function aeProcessSnapshot(fragment) { try { - const { stdout } = await execFileAsync("ps", ["-axo", "pid=,args="], { timeout: 10_000 }); + const stdout = await processRows(); return stdout .split("\n") .map((line) => line.trim()) @@ -223,3 +243,25 @@ export function withTimeout(promise, ms, tag) { new Promise((_, rej) => setTimeout(() => rej(new Error("TIMEOUT " + tag)), ms)), ]); } + +/** + * Conformance timeout-probe verdict (Issue #384): UNKNOWN alone does + * not prove the runner did not resend. The probe passes only when the + * outcome is UNKNOWN AND the transport send-count delta across the + * probe window is exactly one. + */ +export function isCleanTimeoutProbe({ outcome, sendDelta }) { + return outcome === "UNKNOWN" && sendDelta === 1; +} + +/** + * Conformance MCP-shutdown verdict (Issue #384): clean shutdown is the + * server's OWN SIGTERM path completing — exit code 143 (128+SIGTERM) + * after session.close(), with no signal and no forced kill. Mere + * termination (any other exit code, death by signal, SIGKILL rescue) + * is not proof the owned AE session closed. + */ +export function isCleanServerShutdown({ shutdownConfirmed, forcedKill, exitCode, signalCode }) { + return shutdownConfirmed === true && forcedKill !== true && + exitCode === 143 && signalCode === null; +} diff --git a/packages/ae-devtools-cli/devtools-cli/tests/run.mjs b/packages/ae-devtools-cli/devtools-cli/tests/run.mjs index 2d5e28bb..4330c9b6 100644 --- a/packages/ae-devtools-cli/devtools-cli/tests/run.mjs +++ b/packages/ae-devtools-cli/devtools-cli/tests/run.mjs @@ -18,6 +18,8 @@ import { aeProcessSnapshot, createEvalDispatch, gitHeadAndDirty, + isCleanServerShutdown, + isCleanTimeoutProbe, spawnMcpStdio, withTimeout, } from "../real-run-kit.mjs"; @@ -187,6 +189,33 @@ t("unknown --session is a usage error and leaves no run marker (Issue #219)", () assert.equal(run(["runs"]).body.runs.length, 0); }); +t("valueless --project-file / --ae-version refuse USAGE before session open (Issue #383)", () => { + freshRunsDir(); + const cases = [ + // bare flag → true; `--flag=` → ""; both must not silently unpin + ["execute", "read.projectSummary", "--session", "a8n-attached", "--project-file", "--consent", "grant"], + ["execute", "read.projectSummary", "--session", "a8n-attached", "--project-file=", "--consent", "grant"], + ["execute", "read.projectSummary", "--session", "a8n-attached", "--ae-version", "--consent", "grant"], + ["execute", "read.projectSummary", "--session", "a8n-attached", "--ae-version="], + ["verify", "--session", "a8n-attached", "--project-file"], + ]; + for (const args of cases) { + const r = run(args); + assert.equal(r.code, 2, `expected exit 2 for ${JSON.stringify(args)}`); + assert.equal(r.body.code, "USAGE", JSON.stringify(r.body)); + assert.match(r.body.message, /requires a nonempty value/); + } + assert.equal(run(["runs"]).body.runs.length, 0, "usage refusal must not leave a run marker"); +}); + +t("a valued --project-file still reaches the session-kind check (Issue #383)", () => { + const r = run(["execute", "read.projectSummary", "--session", "fake", + "--project-file", "/tmp/pin.aep", "--consent", "grant"]); + assert.equal(r.code, 2); + assert.equal(r.body.code, "USAGE"); + assert.match(r.body.message, /only valid with --session a8n-attached/); +}); + await at("SIGTERM during execute runs cleanup then exits 143", async () => { freshRunsDir(); const child = spawn("node", [CLI, "execute", "read.projectSummary", @@ -830,6 +859,30 @@ t("kit: aeProcessSnapshot and gitHeadAndDirty degrade honestly", async () => { assert.ok(git.head === null || typeof git.head === "string"); }); +// ---- Issue #384: conformance verdict helpers (fake-level) ---- + +t("kit: isCleanTimeoutProbe requires UNKNOWN AND exactly one send", () => { + assert.equal(isCleanTimeoutProbe({ outcome: "UNKNOWN", sendDelta: 1 }), true); + // A resend still lands UNKNOWN — the delta is what catches it. + assert.equal(isCleanTimeoutProbe({ outcome: "UNKNOWN", sendDelta: 2 }), false); + assert.equal(isCleanTimeoutProbe({ outcome: "UNKNOWN", sendDelta: 0 }), false); + assert.equal(isCleanTimeoutProbe({ outcome: "COMPLETED", sendDelta: 1 }), false); +}); + +t("kit: isCleanServerShutdown requires the server's own exit-143 path", () => { + const clean = { shutdownConfirmed: true, forcedKill: false, exitCode: 143, signalCode: null }; + assert.equal(isCleanServerShutdown(clean), true); + // Exit 1 during shutdown (e.g. unhandled rejection in close) is NOT clean. + assert.equal(isCleanServerShutdown({ ...clean, exitCode: 1 }), false); + assert.equal(isCleanServerShutdown({ ...clean, exitCode: 0 }), false); + // Death by signal means session.close() never confirmed the AE close. + assert.equal(isCleanServerShutdown({ ...clean, exitCode: null, signalCode: "SIGTERM" }), false); + assert.equal(isCleanServerShutdown({ ...clean, exitCode: null, signalCode: "SIGKILL" }), false); + // SIGKILL rescue or unconfirmed exit is never clean. + assert.equal(isCleanServerShutdown({ ...clean, forcedKill: true }), false); + assert.equal(isCleanServerShutdown({ ...clean, shutdownConfirmed: false, exitCode: null, signalCode: null }), false); +}); + // ---- Issue #227: runId path-traversal + AppleScript injection guards ---- diff --git a/packages/ae-devtools-cli/jsx-toolchain/evidence/run-real-2027-366.json b/packages/ae-devtools-cli/jsx-toolchain/evidence/run-real-2027-366.json new file mode 100644 index 00000000..232046b7 --- /dev/null +++ b/packages/ae-devtools-cli/jsx-toolchain/evidence/run-real-2027-366.json @@ -0,0 +1,104 @@ +{ + "schema": "ae-devtools.jsx-toolchain.real-run/v1", + "issue": 52, + "startedAt": "2026-11-20T16:44:50.378Z", + "sourceSha": "2660089cc2d36a79dfc5c6b4c261414a60a19293", + "sourceDirty": false, + "steps": [ + { + "name": "session.launch", + "at": "2026-11-20T16:45:07.665Z", + "ok": true, + "aeVersion": "27.0x78", + "ownership": "owned", + "aeA8nSource": "local:/Users/rebui/work/ae-a8n", + "aeA8nHead": "716dada4c9c7ceaf8f6e32e02b40875f32af7070" + }, + { + "name": "build.ok", + "at": "2026-11-20T16:45:07.947Z", + "ok": true, + "status": "ok", + "jsxBytes": 185 + }, + { + "name": "dispatch.ok", + "at": "2026-11-20T16:45:10.656Z", + "ok": true, + "outcome": "COMPLETED", + "detail": null + }, + { + "name": "verify.global-write", + "at": "2026-11-20T16:45:12.972Z", + "ok": true, + "observed": "hello ae 27.0x78", + "outcome": "COMPLETED" + }, + { + "name": "build.runtime-error", + "at": "2026-11-20T16:45:12.987Z", + "ok": true, + "status": "ok" + }, + { + "name": "dispatch.runtime-error", + "at": "2026-11-20T16:45:15.594Z", + "ok": true, + "outcome": "FAILED", + "hostError": "__toolchainUndeclaredIdentifierは未定義です。", + "hostErrorName": "ReferenceError", + "hostLine": 3 + }, + { + "name": "sourcemap.to-source", + "at": "2026-11-20T16:45:15.594Z", + "ok": true, + "mapped": { + "source": "runtime-error.ts", + "line": 3, + "column": 48, + "name": null, + "content": "// Deliberate runtime fault for real-host sourcemap verification.\nfunction boom(): void {\n var missing = __toolchainUndeclaredIdentifier;\n $.global.__toolchainBoom = missing;\n}\nboom();\n" + } + }, + { + "name": "mystery.build", + "at": "2026-11-20T16:45:15.601Z", + "ok": true, + "status": "ok" + }, + { + "name": "mystery.detect+diagnose", + "at": "2026-11-20T16:45:17.272Z", + "ok": true, + "outcome": "FAILED", + "hostErrorName": "ReferenceError", + "hostLine": 3, + "mapped": { + "source": "mystery.ts", + "line": 3 + } + }, + { + "name": "mystery.fix+rerun", + "at": "2026-11-20T16:45:19.141Z", + "ok": true, + "outcome": "COMPLETED" + }, + { + "name": "mystery.verify", + "at": "2026-11-20T16:45:20.530Z", + "ok": true, + "observed": "fixed", + "outcome": "COMPLETED" + }, + { + "name": "session.close", + "at": "2026-11-20T16:45:22.788Z", + "ok": true + } + ], + "ok": true, + "finishedAt": "2026-11-20T16:45:22.789Z" +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/mcp-server/evidence/mcp-real-2026-11-20T16-34-27-338Z.json b/packages/ae-devtools-cli/mcp-server/evidence/mcp-real-2026-11-20T16-34-27-338Z.json new file mode 100644 index 00000000..862ea238 --- /dev/null +++ b/packages/ae-devtools-cli/mcp-server/evidence/mcp-real-2026-11-20T16-34-27-338Z.json @@ -0,0 +1,114 @@ +[ + { + "t": "2026-11-20T16:34:27.708Z", + "event": "source", + "sourceSha": "7ebda7bfa9477560802c3d800692b4df6287e480", + "sourceDirty": false + }, + { + "t": "2026-11-20T16:34:27.739Z", + "step": "initialize", + "argv": [ + "mcp-server/server.mjs", + "--session", + "a8n-attached", + "--ae-a8n-root", + "/Users/rebui/work/ae-a8n", + "--allow-mutation", + "item.addComp" + ] + }, + { + "t": "2026-11-20T16:34:28.593Z", + "stderr": "mcp-server: ae-devtools-mcp@0.6.0 schema=ae-devtools.mcp/v1 session=a8n-attached (stdio NDJSON; fake session = fake/mock evidence only)\n" + }, + { + "t": "2026-11-20T16:34:28.594Z", + "rx": { + "jsonrpc": "2.0", + "id": 1, + "result": { + "protocolVersion": "2024-11-05", + "capabilities": { + "tools": { + "listChanged": false + } + }, + "serverInfo": { + "name": "ae-devtools-mcp", + "version": "0.6.0" + }, + "instructions": "ae-devtools dev-loop tools. ae_execute/ae_verify require arguments.consent:\"grant\"; destructive ops need confirmDestructive:true, render ops confirmRender:true. Default session is the codec-faithful fake host — results are fake/mock evidence, not real AE." + } + } + }, + { + "t": "2026-11-20T16:34:28.595Z", + "step": "initialized" + }, + { + "t": "2026-11-20T16:34:28.595Z", + "step": "ae_discover" + }, + { + "t": "2026-11-20T16:34:28.596Z", + "rx": { + "jsonrpc": "2.0", + "id": 2, + "result": { + "content": [ + { + "type": "text", + "text": "{\n \"schema\": \"ae-devtools.dev-loop/v1\",\n \"evidenceLevel\": \"registry metadata — no dispatch\",\n \"operationCount\": 97,\n \"evidence\": {\n \"implemented\": 97,\n \"automatedTest\": 97,\n \"fakeMockVerified\": 97,\n \"realHostVerified\": 0,\n \"level\": \"fake/mock only\"\n },\n \"operations\": [\n {\n \"id\": \"project.new\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": true,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 1\n },\n {\n \"id\": \"project.open\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": true,\n \"requiresConfirm\": null,\n \"args\": [\n \"path\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"project.save\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"path\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"project.close\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": true,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 1\n },\n {\n \"id\": \"item.addComp\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"width\",\n \"height\",\n \"pixelAspect\",\n \"duration\",\n \"frameRate\",\n \"parentFolder\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"item.addFolder\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"parentFolder\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"item.remove\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": true,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"type\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"item.setParentFolder\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"type\",\n \"parentFolder\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"item.setSelected\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"type\",\n \"selected\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"comp.addNullLayer\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"layer.setTransformPosition\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"x\",\n \"y\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.reorder\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"to\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.setParent\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"parentName\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"layer.duplicate\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"read.projectSummary\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 10\n },\n {\n \"id\": \"read.projectTree\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 10\n },\n {\n \"id\": \"read.itemById\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"id\"\n ],\n \"memberCount\": 6\n },\n {\n \"id\": \"anim.setValue\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"value\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"anim.setKeyframe\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"keyIndex\",\n \"value\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"anim.setValueAtTime\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"time\",\n \"value\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"anim.setExpression\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"expression\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"effect.add\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"effectMatchName\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"render.queueComp\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"render.renderQueued\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": \"render\",\n \"args\": [],\n \"memberCount\": 1\n },\n {\n \"id\": \"read.compLayers\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 15\n },\n {\n \"id\": \"read.layerDetail\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 12\n },\n {\n \"id\": \"read.propertyValue\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"read.keyframes\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"read.renderQueueStatus\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 11\n },\n {\n \"id\": \"read.itemDetail\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 10\n },\n {\n \"id\": \"item.import\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"path\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"comp.duplicate\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"item.setLabel\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"type\",\n \"label\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.setTiming\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"startTime\",\n \"stretch\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.setState\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"solo\",\n \"shy\",\n \"locked\",\n \"label\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"anim.removeKeyframe\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"keyIndex\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"read.valueAtTime\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"time\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"render.setTimeSpan\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"timeSpanStart\",\n \"timeSpanDuration\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"render.removeFromQueue\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"layer.setAvState\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"audioEnabled\",\n \"threeDLayer\",\n \"motionBlur\",\n \"guideLayer\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"read.propertyDetail\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\"\n ],\n \"memberCount\": 12\n },\n {\n \"id\": \"anim.setExpressionEnabled\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"enabled\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"render.getOutputSettings\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 6\n },\n {\n \"id\": \"render.setOutputSetting\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"setting\",\n \"value\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"render.listTemplates\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"render.applyTemplate\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"templateName\"\n ],\n \"memberCount\": 9\n },\n {\n \"id\": \"render.saveTemplate\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"templateName\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"render.listOutputModules\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 10\n },\n {\n \"id\": \"render.addOutputModule\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"render.applyOutputModuleTemplate\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"moduleIndex\",\n \"templateName\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"render.saveOutputModuleTemplate\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"moduleIndex\",\n \"templateName\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"render.setOutputModuleOptions\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"moduleIndex\",\n \"file\",\n \"includeSourceXMP\",\n \"postRenderAction\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"item.setComment\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"type\",\n \"comment\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"comp.setResolutionFactor\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"resolutionFactor\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.addSolid\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\",\n \"width\",\n \"height\",\n \"pixelAspect\",\n \"color\",\n \"duration\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"layer.addText\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\",\n \"text\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.addCamera\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\",\n \"centerPoint\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"layer.addLight\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\",\n \"centerPoint\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"text.setText\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"text\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"text.setStyle\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"font\",\n \"fontSize\",\n \"justification\",\n \"fillColor\",\n \"tracking\",\n \"leading\"\n ],\n \"memberCount\": 8\n },\n {\n \"id\": \"text.readStyle\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 9\n },\n {\n \"id\": \"layer.addBoxText\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\",\n \"width\",\n \"height\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"text.setPaint\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"applyFill\",\n \"applyStroke\",\n \"strokeColor\",\n \"strokeWidth\",\n \"strokeOverFill\",\n \"autoLeading\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"text.setBoxMetrics\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"boxTextSize\",\n \"boxTextPos\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"text.setCharAttributes\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"baselineShift\",\n \"horizontalScale\",\n \"verticalScale\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"text.readDocument\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 31\n },\n {\n \"id\": \"layer.setLayerFlags\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"adjustmentLayer\",\n \"preserveTransparency\",\n \"collapseTransformation\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"layer.setInOutPoint\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"inPoint\",\n \"outPoint\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"read.footageDetail\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 15\n },\n {\n \"id\": \"item.setProxy\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"path\"\n ],\n \"memberCount\": 6\n },\n {\n \"id\": \"item.setProxyWithSequence\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"path\",\n \"forceAlphabetical\"\n ],\n \"memberCount\": 6\n },\n {\n \"id\": \"item.setProxyWithSolid\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"color\",\n \"solidName\",\n \"width\",\n \"height\",\n \"pixelAspect\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"item.setProxyWithPlaceholder\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"placeholderName\",\n \"width\",\n \"height\",\n \"frameRate\",\n \"duration\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"item.setProxyToNone\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"item.setUseProxy\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"useProxy\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"read.itemProxy\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"read.projectSettings\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 6\n },\n {\n \"id\": \"pref.get\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"section\",\n \"key\",\n \"type\",\n \"default\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"pref.set\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"section\",\n \"key\",\n \"type\",\n \"value\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"pref.delete\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": true,\n \"requiresConfirm\": null,\n \"args\": [\n \"section\",\n \"key\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"pref.saveToDisk\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 1\n },\n {\n \"id\": \"read.appInfo\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 6\n },\n {\n \"id\": \"anim.setInterpolation\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"keyIndex\",\n \"inType\",\n \"outType\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"anim.setTemporalEase\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"keyIndex\",\n \"inEase\",\n \"outEase\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"layer.setTrackMatte\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"matteLayerName\",\n \"matteType\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"layer.setTimeRemap\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"enabled\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"comp.setSettings\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"bgColor\",\n \"displayStartTime\",\n \"displayStartFrame\",\n \"shutterAngle\",\n \"shutterPhase\",\n \"motionBlur\",\n \"frameBlending\",\n \"draft3d\",\n \"hideShyLayers\",\n \"preserveNestedFrameRate\",\n \"dropFrame\"\n ],\n \"memberCount\": 11\n },\n {\n \"id\": \"read.compSettings\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 12\n },\n {\n \"id\": \"layer.replaceSource\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"footageName\",\n \"fixExpressions\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"render.duplicateQueueItem\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"marker.setLayerMarker\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"time\",\n \"comment\",\n \"chapter\",\n \"url\",\n \"frameTarget\",\n \"cuePointName\",\n \"duration\",\n \"eventCuePoint\",\n \"params\"\n ],\n \"memberCount\": 15\n },\n {\n \"id\": \"marker.setCompMarker\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"time\",\n \"comment\",\n \"chapter\",\n \"url\",\n \"frameTarget\",\n \"cuePointName\",\n \"duration\",\n \"eventCuePoint\",\n \"params\"\n ],\n \"memberCount\": 15\n },\n {\n \"id\": \"marker.readLayerMarkers\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 12\n },\n {\n \"id\": \"marker.readCompMarkers\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 12\n },\n {\n \"id\": \"layer.addShape\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"shape.readContents\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 8\n },\n {\n \"id\": \"shape.addPath\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"vertices\",\n \"inTangents\",\n \"outTangents\",\n \"closed\"\n ],\n \"memberCount\": 13\n }\n ]\n}" + } + ] + } + } + }, + { + "t": "2026-11-20T16:34:28.597Z", + "step": "ae_discover-done" + }, + { + "t": "2026-11-20T16:34:28.597Z", + "step": "ae_execute (launches owned AE)" + }, + { + "t": "2026-11-20T16:34:29.398Z", + "rx": { + "jsonrpc": "2.0", + "id": 3, + "error": { + "code": -32603, + "message": "a8n-attached found no running After Effects process for install /Applications/Adobe After Effects 2027/Adobe After Effects 2027.app/Contents/MacOS/After Effects; start AE first or use --session a8n for a disposable owned session. No AE process was launched." + } + } + }, + { + "t": "2026-11-20T16:34:29.399Z", + "step": "ae_execute-done" + }, + { + "t": "2026-11-20T16:34:29.400Z", + "step": "ae_verify" + }, + { + "t": "2026-11-20T16:34:29.401Z", + "rx": { + "jsonrpc": "2.0", + "id": 4, + "error": { + "code": -32603, + "message": "a8n-attached found no running After Effects process for install /Applications/Adobe After Effects 2027/Adobe After Effects 2027.app/Contents/MacOS/After Effects; start AE first or use --session a8n for a disposable owned session. No AE process was launched." + } + } + }, + { + "t": "2026-11-20T16:34:29.402Z", + "step": "ae_verify-done" + }, + { + "t": "2026-11-20T16:34:29.403Z", + "stderr": "mcp-server: session close failed: a8n-attached found no running After Effects process for install /Applications/Adobe After Effects 2027/Adobe After Effects 2027.app/Contents/MacOS/After Effects; start AE first or use --session a8n for a disposable owned session. No AE process was launched.\n" + } +] \ No newline at end of file diff --git a/packages/ae-devtools-cli/mcp-server/evidence/mcp-real-attached-2027.json b/packages/ae-devtools-cli/mcp-server/evidence/mcp-real-attached-2027.json new file mode 100644 index 00000000..32fbb0c8 --- /dev/null +++ b/packages/ae-devtools-cli/mcp-server/evidence/mcp-real-attached-2027.json @@ -0,0 +1,118 @@ +[ + { + "t": "2026-11-20T15:17:42.347Z", + "event": "source", + "sourceSha": "214e8e7820bfe139fb094ec36896162d6a543738", + "sourceDirty": true + }, + { + "t": "2026-11-20T15:17:42.349Z", + "step": "initialize", + "argv": [ + "mcp-server/server.mjs", + "--session", + "a8n-attached", + "--ae-a8n-root", + "/Users/rebui/work/ae-a8n", + "--allow-mutation", + "item.addComp" + ] + }, + { + "t": "2026-11-20T15:17:42.483Z", + "stderr": "mcp-server: ae-devtools-mcp@0.5.0 schema=ae-devtools.mcp/v1 session=a8n-attached (stdio NDJSON; fake session = fake/mock evidence only)\n" + }, + { + "t": "2026-11-20T15:17:42.485Z", + "rx": { + "jsonrpc": "2.0", + "id": 1, + "result": { + "protocolVersion": "2024-11-05", + "capabilities": { + "tools": { + "listChanged": false + } + }, + "serverInfo": { + "name": "ae-devtools-mcp", + "version": "0.5.0" + }, + "instructions": "ae-devtools dev-loop tools. ae_execute/ae_verify require arguments.consent:\"grant\"; destructive ops need confirmDestructive:true, render ops confirmRender:true. Default session is the codec-faithful fake host — results are fake/mock evidence, not real AE." + } + } + }, + { + "t": "2026-11-20T15:17:42.485Z", + "step": "initialized" + }, + { + "t": "2026-11-20T15:17:42.485Z", + "step": "ae_discover" + }, + { + "t": "2026-11-20T15:17:42.487Z", + "rx": { + "jsonrpc": "2.0", + "id": 2, + "result": { + "content": [ + { + "type": "text", + "text": "{\n \"schema\": \"ae-devtools.dev-loop/v1\",\n \"evidenceLevel\": \"registry metadata — no dispatch\",\n \"operationCount\": 97,\n \"evidence\": {\n \"implemented\": 97,\n \"automatedTest\": 97,\n \"fakeMockVerified\": 97,\n \"realHostVerified\": 0,\n \"level\": \"fake/mock only\"\n },\n \"operations\": [\n {\n \"id\": \"project.new\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": true,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 1\n },\n {\n \"id\": \"project.open\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": true,\n \"requiresConfirm\": null,\n \"args\": [\n \"path\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"project.save\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"path\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"project.close\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": true,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 1\n },\n {\n \"id\": \"item.addComp\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"width\",\n \"height\",\n \"pixelAspect\",\n \"duration\",\n \"frameRate\",\n \"parentFolder\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"item.addFolder\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"parentFolder\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"item.remove\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": true,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"type\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"item.setParentFolder\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"type\",\n \"parentFolder\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"item.setSelected\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"type\",\n \"selected\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"comp.addNullLayer\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"layer.setTransformPosition\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"x\",\n \"y\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.reorder\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"to\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.setParent\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"parentName\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"layer.duplicate\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"read.projectSummary\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 10\n },\n {\n \"id\": \"read.projectTree\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 10\n },\n {\n \"id\": \"read.itemById\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"id\"\n ],\n \"memberCount\": 6\n },\n {\n \"id\": \"anim.setValue\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"value\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"anim.setKeyframe\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"keyIndex\",\n \"value\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"anim.setValueAtTime\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"time\",\n \"value\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"anim.setExpression\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"expression\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"effect.add\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"effectMatchName\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"render.queueComp\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"render.renderQueued\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": \"render\",\n \"args\": [],\n \"memberCount\": 1\n },\n {\n \"id\": \"read.compLayers\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 15\n },\n {\n \"id\": \"read.layerDetail\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 12\n },\n {\n \"id\": \"read.propertyValue\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"read.keyframes\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"read.renderQueueStatus\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 11\n },\n {\n \"id\": \"read.itemDetail\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 10\n },\n {\n \"id\": \"item.import\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"path\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"comp.duplicate\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"item.setLabel\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"type\",\n \"label\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.setTiming\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"startTime\",\n \"stretch\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.setState\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"solo\",\n \"shy\",\n \"locked\",\n \"label\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"anim.removeKeyframe\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"keyIndex\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"read.valueAtTime\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"time\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"render.setTimeSpan\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"timeSpanStart\",\n \"timeSpanDuration\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"render.removeFromQueue\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"layer.setAvState\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"audioEnabled\",\n \"threeDLayer\",\n \"motionBlur\",\n \"guideLayer\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"read.propertyDetail\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\"\n ],\n \"memberCount\": 12\n },\n {\n \"id\": \"anim.setExpressionEnabled\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"enabled\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"render.getOutputSettings\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 6\n },\n {\n \"id\": \"render.setOutputSetting\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"setting\",\n \"value\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"render.listTemplates\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"render.applyTemplate\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"templateName\"\n ],\n \"memberCount\": 9\n },\n {\n \"id\": \"render.saveTemplate\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"templateName\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"render.listOutputModules\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 10\n },\n {\n \"id\": \"render.addOutputModule\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"render.applyOutputModuleTemplate\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"moduleIndex\",\n \"templateName\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"render.saveOutputModuleTemplate\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"moduleIndex\",\n \"templateName\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"render.setOutputModuleOptions\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"moduleIndex\",\n \"file\",\n \"includeSourceXMP\",\n \"postRenderAction\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"item.setComment\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"type\",\n \"comment\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"comp.setResolutionFactor\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"resolutionFactor\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.addSolid\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\",\n \"width\",\n \"height\",\n \"pixelAspect\",\n \"color\",\n \"duration\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"layer.addText\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\",\n \"text\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.addCamera\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\",\n \"centerPoint\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"layer.addLight\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\",\n \"centerPoint\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"text.setText\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"text\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"text.setStyle\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"font\",\n \"fontSize\",\n \"justification\",\n \"fillColor\",\n \"tracking\",\n \"leading\"\n ],\n \"memberCount\": 8\n },\n {\n \"id\": \"text.readStyle\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 9\n },\n {\n \"id\": \"layer.addBoxText\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\",\n \"width\",\n \"height\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"text.setPaint\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"applyFill\",\n \"applyStroke\",\n \"strokeColor\",\n \"strokeWidth\",\n \"strokeOverFill\",\n \"autoLeading\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"text.setBoxMetrics\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"boxTextSize\",\n \"boxTextPos\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"text.setCharAttributes\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"baselineShift\",\n \"horizontalScale\",\n \"verticalScale\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"text.readDocument\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 31\n },\n {\n \"id\": \"layer.setLayerFlags\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"adjustmentLayer\",\n \"preserveTransparency\",\n \"collapseTransformation\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"layer.setInOutPoint\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"inPoint\",\n \"outPoint\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"read.footageDetail\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 15\n },\n {\n \"id\": \"item.setProxy\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"path\"\n ],\n \"memberCount\": 6\n },\n {\n \"id\": \"item.setProxyWithSequence\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"path\",\n \"forceAlphabetical\"\n ],\n \"memberCount\": 6\n },\n {\n \"id\": \"item.setProxyWithSolid\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"color\",\n \"solidName\",\n \"width\",\n \"height\",\n \"pixelAspect\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"item.setProxyWithPlaceholder\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"placeholderName\",\n \"width\",\n \"height\",\n \"frameRate\",\n \"duration\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"item.setProxyToNone\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"item.setUseProxy\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"useProxy\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"read.itemProxy\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"read.projectSettings\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 6\n },\n {\n \"id\": \"pref.get\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"section\",\n \"key\",\n \"type\",\n \"default\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"pref.set\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"section\",\n \"key\",\n \"type\",\n \"value\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"pref.delete\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": true,\n \"requiresConfirm\": null,\n \"args\": [\n \"section\",\n \"key\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"pref.saveToDisk\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 1\n },\n {\n \"id\": \"read.appInfo\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 6\n },\n {\n \"id\": \"anim.setInterpolation\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"keyIndex\",\n \"inType\",\n \"outType\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"anim.setTemporalEase\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"keyIndex\",\n \"inEase\",\n \"outEase\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"layer.setTrackMatte\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"matteLayerName\",\n \"matteType\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"layer.setTimeRemap\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"enabled\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"comp.setSettings\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"bgColor\",\n \"displayStartTime\",\n \"displayStartFrame\",\n \"shutterAngle\",\n \"shutterPhase\",\n \"motionBlur\",\n \"frameBlending\",\n \"draft3d\",\n \"hideShyLayers\",\n \"preserveNestedFrameRate\",\n \"dropFrame\"\n ],\n \"memberCount\": 11\n },\n {\n \"id\": \"read.compSettings\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 12\n },\n {\n \"id\": \"layer.replaceSource\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"footageName\",\n \"fixExpressions\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"render.duplicateQueueItem\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"marker.setLayerMarker\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"time\",\n \"comment\",\n \"chapter\",\n \"url\",\n \"frameTarget\",\n \"cuePointName\",\n \"duration\",\n \"eventCuePoint\",\n \"params\"\n ],\n \"memberCount\": 15\n },\n {\n \"id\": \"marker.setCompMarker\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"time\",\n \"comment\",\n \"chapter\",\n \"url\",\n \"frameTarget\",\n \"cuePointName\",\n \"duration\",\n \"eventCuePoint\",\n \"params\"\n ],\n \"memberCount\": 15\n },\n {\n \"id\": \"marker.readLayerMarkers\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 12\n },\n {\n \"id\": \"marker.readCompMarkers\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 12\n },\n {\n \"id\": \"layer.addShape\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"shape.readContents\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 8\n },\n {\n \"id\": \"shape.addPath\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"vertices\",\n \"inTangents\",\n \"outTangents\",\n \"closed\"\n ],\n \"memberCount\": 13\n }\n ]\n}" + } + ] + } + } + }, + { + "t": "2026-11-20T15:17:42.488Z", + "step": "ae_discover-done" + }, + { + "t": "2026-11-20T15:17:42.488Z", + "step": "ae_execute (launches owned AE)" + }, + { + "t": "2026-11-20T15:17:44.857Z", + "rx": { + "jsonrpc": "2.0", + "id": 3, + "result": { + "content": [ + { + "type": "text", + "text": "{\n \"schema\": \"ae-devtools.mcp/v1\",\n \"session\": {\n \"aeVersion\": \"27.0x78\",\n \"ownership\": \"attached\",\n \"aeA8nHead\": \"50e712b6149fd1fed8fb55965ec4f3eed1102250\",\n \"attached\": true,\n \"target\": {\n \"ownership\": \"attached\",\n \"ownershipEvidence\": \"already running before launch: pid 8816\",\n \"aeVersion\": \"27.0x78\",\n \"installDir\": \"/Applications/Adobe After Effects 2027/Adobe After Effects 2027\",\n \"appPath\": \"/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app\",\n \"project\": {\n \"file\": null,\n \"name\": null\n },\n \"projectFile\": null\n },\n \"kind\": \"a8n-attached\",\n \"evidenceLevel\": \"verified on real host (attach to a running AE)\",\n \"policy\": {\n \"readOnly\": false,\n \"mode\": \"attached\",\n \"mutation\": {\n \"allowedOps\": [\n \"item.addComp\"\n ]\n }\n }\n },\n \"outcome\": \"COMPLETED\",\n \"result\": {\n \"requestId\": \"req-mcp-1\",\n \"operationId\": \"item.addComp\",\n \"outcome\": \"COMPLETED\",\n \"requestState\": \"ACKED\",\n \"mayHaveMutated\": true,\n \"result\": {\n \"ok\": true,\n \"id\": 1,\n \"name\": \"MCP QA Comp\",\n \"parent\": null\n },\n \"contractOutcome\": \"completed\",\n \"retry\": \"quarantine\",\n \"opId\": \"item.addComp\",\n \"mutating\": true,\n \"destructive\": false\n }\n}" + } + ] + } + } + }, + { + "t": "2026-11-20T15:17:44.858Z", + "step": "ae_execute-done" + }, + { + "t": "2026-11-20T15:17:44.858Z", + "step": "ae_verify" + }, + { + "t": "2026-11-20T15:17:45.425Z", + "rx": { + "jsonrpc": "2.0", + "id": 4, + "result": { + "content": [ + { + "type": "text", + "text": "{\n \"schema\": \"ae-devtools.mcp/v1\",\n \"session\": {\n \"aeVersion\": \"27.0x78\",\n \"ownership\": \"attached\",\n \"aeA8nHead\": \"50e712b6149fd1fed8fb55965ec4f3eed1102250\",\n \"attached\": true,\n \"target\": {\n \"ownership\": \"attached\",\n \"ownershipEvidence\": \"already running before launch: pid 8816\",\n \"aeVersion\": \"27.0x78\",\n \"installDir\": \"/Applications/Adobe After Effects 2027/Adobe After Effects 2027\",\n \"appPath\": \"/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app\",\n \"project\": {\n \"file\": null,\n \"name\": null\n },\n \"projectFile\": null\n },\n \"kind\": \"a8n-attached\",\n \"evidenceLevel\": \"verified on real host (attach to a running AE)\",\n \"policy\": {\n \"readOnly\": false,\n \"mode\": \"attached\",\n \"mutation\": {\n \"allowedOps\": [\n \"item.addComp\"\n ]\n }\n }\n },\n \"outcome\": \"COMPLETED\",\n \"result\": {\n \"requestId\": \"req-mcp-2\",\n \"operationId\": \"read.projectSummary\",\n \"outcome\": \"COMPLETED\",\n \"requestState\": \"ACKED\",\n \"mayHaveMutated\": true,\n \"result\": {\n \"ok\": true,\n \"count\": 1,\n \"numItems\": 1,\n \"items\": [\n {\n \"name\": \"MCP QA Comp\",\n \"typeName\": \"コンポジション\",\n \"id\": 1,\n \"selected\": false,\n \"parent\": null\n }\n ],\n \"activeItem\": null,\n \"selection\": []\n },\n \"contractOutcome\": \"completed\",\n \"retry\": \"quarantine\",\n \"opId\": \"read.projectSummary\",\n \"mutating\": false,\n \"destructive\": false\n }\n}" + } + ] + } + } + }, + { + "t": "2026-11-20T15:17:45.426Z", + "step": "ae_verify-done" + } +] \ No newline at end of file diff --git a/packages/ae-devtools-cli/mcp-server/evidence/mcp-real-attached-revalidate-2027.json b/packages/ae-devtools-cli/mcp-server/evidence/mcp-real-attached-revalidate-2027.json new file mode 100644 index 00000000..15dcf3b9 --- /dev/null +++ b/packages/ae-devtools-cli/mcp-server/evidence/mcp-real-attached-revalidate-2027.json @@ -0,0 +1,118 @@ +[ + { + "t": "2026-11-20T16:36:14.703Z", + "event": "source", + "sourceSha": "7ebda7bfa9477560802c3d800692b4df6287e480", + "sourceDirty": true + }, + { + "t": "2026-11-20T16:36:14.714Z", + "step": "initialize", + "argv": [ + "mcp-server/server.mjs", + "--session", + "a8n-attached", + "--ae-a8n-root", + "/Users/rebui/work/ae-a8n", + "--allow-mutation", + "item.addComp" + ] + }, + { + "t": "2026-11-20T16:36:14.876Z", + "stderr": "mcp-server: ae-devtools-mcp@0.6.0 schema=ae-devtools.mcp/v1 session=a8n-attached (stdio NDJSON; fake session = fake/mock evidence only)\n" + }, + { + "t": "2026-11-20T16:36:14.878Z", + "rx": { + "jsonrpc": "2.0", + "id": 1, + "result": { + "protocolVersion": "2024-11-05", + "capabilities": { + "tools": { + "listChanged": false + } + }, + "serverInfo": { + "name": "ae-devtools-mcp", + "version": "0.6.0" + }, + "instructions": "ae-devtools dev-loop tools. ae_execute/ae_verify require arguments.consent:\"grant\"; destructive ops need confirmDestructive:true, render ops confirmRender:true. Default session is the codec-faithful fake host — results are fake/mock evidence, not real AE." + } + } + }, + { + "t": "2026-11-20T16:36:14.878Z", + "step": "initialized" + }, + { + "t": "2026-11-20T16:36:14.878Z", + "step": "ae_discover" + }, + { + "t": "2026-11-20T16:36:14.880Z", + "rx": { + "jsonrpc": "2.0", + "id": 2, + "result": { + "content": [ + { + "type": "text", + "text": "{\n \"schema\": \"ae-devtools.dev-loop/v1\",\n \"evidenceLevel\": \"registry metadata — no dispatch\",\n \"operationCount\": 97,\n \"evidence\": {\n \"implemented\": 97,\n \"automatedTest\": 97,\n \"fakeMockVerified\": 97,\n \"realHostVerified\": 0,\n \"level\": \"fake/mock only\"\n },\n \"operations\": [\n {\n \"id\": \"project.new\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": true,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 1\n },\n {\n \"id\": \"project.open\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": true,\n \"requiresConfirm\": null,\n \"args\": [\n \"path\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"project.save\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"path\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"project.close\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": true,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 1\n },\n {\n \"id\": \"item.addComp\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"width\",\n \"height\",\n \"pixelAspect\",\n \"duration\",\n \"frameRate\",\n \"parentFolder\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"item.addFolder\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"parentFolder\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"item.remove\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": true,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"type\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"item.setParentFolder\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"type\",\n \"parentFolder\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"item.setSelected\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"type\",\n \"selected\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"comp.addNullLayer\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"layer.setTransformPosition\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"x\",\n \"y\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.reorder\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"to\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.setParent\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"parentName\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"layer.duplicate\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"read.projectSummary\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 10\n },\n {\n \"id\": \"read.projectTree\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 10\n },\n {\n \"id\": \"read.itemById\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"id\"\n ],\n \"memberCount\": 6\n },\n {\n \"id\": \"anim.setValue\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"value\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"anim.setKeyframe\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"keyIndex\",\n \"value\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"anim.setValueAtTime\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"time\",\n \"value\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"anim.setExpression\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"expression\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"effect.add\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"effectMatchName\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"render.queueComp\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"render.renderQueued\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": \"render\",\n \"args\": [],\n \"memberCount\": 1\n },\n {\n \"id\": \"read.compLayers\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 15\n },\n {\n \"id\": \"read.layerDetail\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 12\n },\n {\n \"id\": \"read.propertyValue\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"read.keyframes\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"read.renderQueueStatus\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 11\n },\n {\n \"id\": \"read.itemDetail\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 10\n },\n {\n \"id\": \"item.import\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"path\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"comp.duplicate\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"item.setLabel\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"type\",\n \"label\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.setTiming\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"startTime\",\n \"stretch\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.setState\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"solo\",\n \"shy\",\n \"locked\",\n \"label\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"anim.removeKeyframe\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"keyIndex\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"read.valueAtTime\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"time\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"render.setTimeSpan\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"timeSpanStart\",\n \"timeSpanDuration\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"render.removeFromQueue\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"layer.setAvState\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"audioEnabled\",\n \"threeDLayer\",\n \"motionBlur\",\n \"guideLayer\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"read.propertyDetail\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\"\n ],\n \"memberCount\": 12\n },\n {\n \"id\": \"anim.setExpressionEnabled\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"enabled\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"render.getOutputSettings\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 6\n },\n {\n \"id\": \"render.setOutputSetting\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"setting\",\n \"value\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"render.listTemplates\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"render.applyTemplate\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"templateName\"\n ],\n \"memberCount\": 9\n },\n {\n \"id\": \"render.saveTemplate\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"templateName\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"render.listOutputModules\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 10\n },\n {\n \"id\": \"render.addOutputModule\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"render.applyOutputModuleTemplate\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"moduleIndex\",\n \"templateName\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"render.saveOutputModuleTemplate\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"moduleIndex\",\n \"templateName\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"render.setOutputModuleOptions\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"moduleIndex\",\n \"file\",\n \"includeSourceXMP\",\n \"postRenderAction\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"item.setComment\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"type\",\n \"comment\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"comp.setResolutionFactor\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"resolutionFactor\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.addSolid\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\",\n \"width\",\n \"height\",\n \"pixelAspect\",\n \"color\",\n \"duration\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"layer.addText\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\",\n \"text\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.addCamera\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\",\n \"centerPoint\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"layer.addLight\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\",\n \"centerPoint\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"text.setText\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"text\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"text.setStyle\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"font\",\n \"fontSize\",\n \"justification\",\n \"fillColor\",\n \"tracking\",\n \"leading\"\n ],\n \"memberCount\": 8\n },\n {\n \"id\": \"text.readStyle\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 9\n },\n {\n \"id\": \"layer.addBoxText\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\",\n \"width\",\n \"height\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"text.setPaint\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"applyFill\",\n \"applyStroke\",\n \"strokeColor\",\n \"strokeWidth\",\n \"strokeOverFill\",\n \"autoLeading\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"text.setBoxMetrics\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"boxTextSize\",\n \"boxTextPos\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"text.setCharAttributes\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"baselineShift\",\n \"horizontalScale\",\n \"verticalScale\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"text.readDocument\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 31\n },\n {\n \"id\": \"layer.setLayerFlags\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"adjustmentLayer\",\n \"preserveTransparency\",\n \"collapseTransformation\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"layer.setInOutPoint\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"inPoint\",\n \"outPoint\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"read.footageDetail\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 15\n },\n {\n \"id\": \"item.setProxy\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"path\"\n ],\n \"memberCount\": 6\n },\n {\n \"id\": \"item.setProxyWithSequence\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"path\",\n \"forceAlphabetical\"\n ],\n \"memberCount\": 6\n },\n {\n \"id\": \"item.setProxyWithSolid\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"color\",\n \"solidName\",\n \"width\",\n \"height\",\n \"pixelAspect\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"item.setProxyWithPlaceholder\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"placeholderName\",\n \"width\",\n \"height\",\n \"frameRate\",\n \"duration\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"item.setProxyToNone\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"item.setUseProxy\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"useProxy\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"read.itemProxy\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"read.projectSettings\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 6\n },\n {\n \"id\": \"pref.get\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"section\",\n \"key\",\n \"type\",\n \"default\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"pref.set\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"section\",\n \"key\",\n \"type\",\n \"value\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"pref.delete\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": true,\n \"requiresConfirm\": null,\n \"args\": [\n \"section\",\n \"key\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"pref.saveToDisk\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 1\n },\n {\n \"id\": \"read.appInfo\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 6\n },\n {\n \"id\": \"anim.setInterpolation\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"keyIndex\",\n \"inType\",\n \"outType\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"anim.setTemporalEase\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"keyIndex\",\n \"inEase\",\n \"outEase\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"layer.setTrackMatte\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"matteLayerName\",\n \"matteType\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"layer.setTimeRemap\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"enabled\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"comp.setSettings\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"bgColor\",\n \"displayStartTime\",\n \"displayStartFrame\",\n \"shutterAngle\",\n \"shutterPhase\",\n \"motionBlur\",\n \"frameBlending\",\n \"draft3d\",\n \"hideShyLayers\",\n \"preserveNestedFrameRate\",\n \"dropFrame\"\n ],\n \"memberCount\": 11\n },\n {\n \"id\": \"read.compSettings\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 12\n },\n {\n \"id\": \"layer.replaceSource\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"footageName\",\n \"fixExpressions\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"render.duplicateQueueItem\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"marker.setLayerMarker\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"time\",\n \"comment\",\n \"chapter\",\n \"url\",\n \"frameTarget\",\n \"cuePointName\",\n \"duration\",\n \"eventCuePoint\",\n \"params\"\n ],\n \"memberCount\": 15\n },\n {\n \"id\": \"marker.setCompMarker\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"time\",\n \"comment\",\n \"chapter\",\n \"url\",\n \"frameTarget\",\n \"cuePointName\",\n \"duration\",\n \"eventCuePoint\",\n \"params\"\n ],\n \"memberCount\": 15\n },\n {\n \"id\": \"marker.readLayerMarkers\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 12\n },\n {\n \"id\": \"marker.readCompMarkers\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 12\n },\n {\n \"id\": \"layer.addShape\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"shape.readContents\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 8\n },\n {\n \"id\": \"shape.addPath\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"vertices\",\n \"inTangents\",\n \"outTangents\",\n \"closed\"\n ],\n \"memberCount\": 13\n }\n ]\n}" + } + ] + } + } + }, + { + "t": "2026-11-20T16:36:14.881Z", + "step": "ae_discover-done" + }, + { + "t": "2026-11-20T16:36:14.881Z", + "step": "ae_execute (launches owned AE)" + }, + { + "t": "2026-11-20T16:36:19.576Z", + "rx": { + "jsonrpc": "2.0", + "id": 3, + "result": { + "content": [ + { + "type": "text", + "text": "{\n \"schema\": \"ae-devtools.mcp/v1\",\n \"session\": {\n \"aeVersion\": \"27.0x78\",\n \"ownership\": \"attached\",\n \"aeA8nHead\": \"716dada4c9c7ceaf8f6e32e02b40875f32af7070\",\n \"attached\": true,\n \"target\": {\n \"ownership\": \"attached\",\n \"ownershipEvidence\": \"already running before launch: pid 98300\",\n \"aeVersion\": \"27.0x78\",\n \"installDir\": \"/Applications/Adobe After Effects 2027/Adobe After Effects 2027\",\n \"appPath\": \"/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app\",\n \"project\": {\n \"file\": null,\n \"name\": null\n },\n \"projectFile\": null,\n \"identity\": {\n \"pid\": 98300,\n \"processStart\": \"Sat Nov 21 01:34:55 2026\",\n \"executable\": \"/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app/Contents/MacOS/After Effects\",\n \"aeVersion\": \"27.0x78\",\n \"projectFile\": null,\n \"projectName\": null,\n \"ownershipEvidence\": \"already running before launch: pid 98300\",\n \"attestedAt\": \"2026-11-20T16:36:17.535Z\"\n },\n \"attachApi\": \"AfterEffects.launch(transitional)\"\n },\n \"kind\": \"a8n-attached\",\n \"evidenceLevel\": \"verified on real host (attach to a running AE)\",\n \"policy\": {\n \"readOnly\": false,\n \"mode\": \"attached\",\n \"mutation\": {\n \"allowedOps\": [\n \"item.addComp\"\n ]\n }\n }\n },\n \"outcome\": \"COMPLETED\",\n \"result\": {\n \"requestId\": \"req-mcp-1\",\n \"operationId\": \"item.addComp\",\n \"outcome\": \"COMPLETED\",\n \"requestState\": \"ACKED\",\n \"mayHaveMutated\": true,\n \"result\": {\n \"ok\": true,\n \"id\": 1,\n \"name\": \"MCP QA Comp\",\n \"parent\": null\n },\n \"contractOutcome\": \"completed\",\n \"retry\": \"quarantine\",\n \"opId\": \"item.addComp\",\n \"mutating\": true,\n \"destructive\": false\n }\n}" + } + ] + } + } + }, + { + "t": "2026-11-20T16:36:19.577Z", + "step": "ae_execute-done" + }, + { + "t": "2026-11-20T16:36:19.577Z", + "step": "ae_verify" + }, + { + "t": "2026-11-20T16:36:20.179Z", + "rx": { + "jsonrpc": "2.0", + "id": 4, + "result": { + "content": [ + { + "type": "text", + "text": "{\n \"schema\": \"ae-devtools.mcp/v1\",\n \"session\": {\n \"aeVersion\": \"27.0x78\",\n \"ownership\": \"attached\",\n \"aeA8nHead\": \"716dada4c9c7ceaf8f6e32e02b40875f32af7070\",\n \"attached\": true,\n \"target\": {\n \"ownership\": \"attached\",\n \"ownershipEvidence\": \"already running before launch: pid 98300\",\n \"aeVersion\": \"27.0x78\",\n \"installDir\": \"/Applications/Adobe After Effects 2027/Adobe After Effects 2027\",\n \"appPath\": \"/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app\",\n \"project\": {\n \"file\": null,\n \"name\": null\n },\n \"projectFile\": null,\n \"identity\": {\n \"pid\": 98300,\n \"processStart\": \"Sat Nov 21 01:34:55 2026\",\n \"executable\": \"/Applications/Adobe After Effects 2027/Adobe After Effects 2027.app/Contents/MacOS/After Effects\",\n \"aeVersion\": \"27.0x78\",\n \"projectFile\": null,\n \"projectName\": null,\n \"ownershipEvidence\": \"already running before launch: pid 98300\",\n \"attestedAt\": \"2026-11-20T16:36:17.535Z\"\n },\n \"attachApi\": \"AfterEffects.launch(transitional)\"\n },\n \"kind\": \"a8n-attached\",\n \"evidenceLevel\": \"verified on real host (attach to a running AE)\",\n \"policy\": {\n \"readOnly\": false,\n \"mode\": \"attached\",\n \"mutation\": {\n \"allowedOps\": [\n \"item.addComp\"\n ]\n }\n }\n },\n \"outcome\": \"COMPLETED\",\n \"result\": {\n \"requestId\": \"req-mcp-2\",\n \"operationId\": \"read.projectSummary\",\n \"outcome\": \"COMPLETED\",\n \"requestState\": \"ACKED\",\n \"mayHaveMutated\": true,\n \"result\": {\n \"ok\": true,\n \"count\": 1,\n \"numItems\": 1,\n \"items\": [\n {\n \"name\": \"MCP QA Comp\",\n \"typeName\": \"コンポジション\",\n \"id\": 1,\n \"selected\": false,\n \"parent\": null\n }\n ],\n \"activeItem\": null,\n \"selection\": []\n },\n \"contractOutcome\": \"completed\",\n \"retry\": \"quarantine\",\n \"opId\": \"read.projectSummary\",\n \"mutating\": false,\n \"destructive\": false\n }\n}" + } + ] + } + } + }, + { + "t": "2026-11-20T16:36:20.180Z", + "step": "ae_verify-done" + } +] \ No newline at end of file diff --git a/packages/ae-devtools-cli/mcp-server/real-run.mjs b/packages/ae-devtools-cli/mcp-server/real-run.mjs index 853dfa6a..8c4be01b 100644 --- a/packages/ae-devtools-cli/mcp-server/real-run.mjs +++ b/packages/ae-devtools-cli/mcp-server/real-run.mjs @@ -43,6 +43,17 @@ const a8nRoot = arg("--ae-a8n-root") ?? process.env.A8N_ROOT; if (a8nRoot) serverArgs.push("--ae-a8n-root", a8nRoot); const installDir = arg("--install-dir") ?? process.env.AE_INSTALL_DIR; if (installDir) serverArgs.push("--install-dir", installDir); +// a8n-attached target pins + mutation scope pass straight through to +// server.mjs (Issue #366): --project-file, --ae-version, and repeated +// --allow-mutation . +const projectFile = arg("--project-file"); +if (projectFile) serverArgs.push("--project-file", projectFile); +const aeVersion = arg("--ae-version"); +if (aeVersion) serverArgs.push("--ae-version", aeVersion); +const allowMutation = process.argv + .map((a, i) => (a === "--allow-mutation" ? process.argv[i + 1] : null)) + .filter((v) => typeof v === "string" && v.length > 0); +for (const opId of allowMutation) serverArgs.push("--allow-mutation", opId); const log = []; let fatal = false; diff --git a/packages/ae-devtools-cli/mcp-server/server.mjs b/packages/ae-devtools-cli/mcp-server/server.mjs index 68e1d4fa..8cccb1cd 100644 --- a/packages/ae-devtools-cli/mcp-server/server.mjs +++ b/packages/ae-devtools-cli/mcp-server/server.mjs @@ -13,8 +13,10 @@ * Nothing but protocol frames is ever written to stdout; diagnostics go * to stderr. * - * node server.mjs [--session fake|a8n] [--ae-a8n-root ] - * [--install-dir ] + * node server.mjs [--session fake|a8n|a8n-attached] + * [--ae-a8n-root ] [--install-dir ] + * [--ae-version ] [--allow-mutation ]... + * [--project-file ] [--call-timeout-ms ] [--deadline-ms ] * * Session is opened LAZILY on the first ae_execute/ae_verify that passes * the consent pre-gate — discover/inspect/denied calls never touch a @@ -35,7 +37,7 @@ import { fileURLToPath } from "node:url"; import { TOOLS, callTool, MCP_SCHEMA } from "./tools.mjs"; import { openSession } from "./session.mjs"; -import { parseArgs } from "../devtools-cli/argv.mjs"; +import { parseArgs, missingFlagValue } from "../devtools-cli/argv.mjs"; import { closeSessionWithTimeout, parseCloseTimeoutMs } from "../dev-loop/session-close.mjs"; import { createSurfaceGuard } from "../dev-loop/surface-guard.mjs"; import { lazyConsentAudit } from "../trusted-execution/consent-audit.mjs"; @@ -52,6 +54,11 @@ export const SERVER_VERSION = JSON.parse( const PROTOCOL_VERSIONS = ["2024-11-05", "2025-03-26", "2025-06-18"]; const LATEST_PROTOCOL = PROTOCOL_VERSIONS[PROTOCOL_VERSIONS.length - 1]; +function positiveMsFlag(raw) { + const n = Number(raw); + return Number.isFinite(n) && n > 0 ? n : undefined; +} + const PARSE_ERROR = -32700; const INVALID_REQUEST = -32600; const METHOD_NOT_FOUND = -32601; @@ -80,7 +87,11 @@ function rpcError(id, code, message, data) { * never awaited forever (Issue #196) * runsDir — run-guard marker dir for a8n sessions (default: * devtools-cli RUNS_DIR; Issue #198 residue markers) - * @returns {{close: () => Promise}} + * @returns {{close: () => Promise, getSession: () => unknown}} + * close() resolves true when the owned session closed cleanly (or + * there was nothing to close) and false when close failed/timed out — + * callers use it to keep a failed close off the clean-exit path + * (Issue #391). */ export function createServer(opts = {}) { const input = opts.input ?? process.stdin; @@ -150,7 +161,7 @@ export function createServer(opts = {}) { }); async function close() { - if (!sessionPromise) return; + if (!sessionPromise) return true; let closeFailed = false; try { const s = await sessionPromise; @@ -165,12 +176,16 @@ export function createServer(opts = {}) { } } } catch (e) { + // A thrown close is a failed close — the residue marker must say + // so, and the caller must not see this as a clean shutdown. + closeFailed = true; process.stderr.write(`mcp-server: session close failed: ${e?.message ?? e}\n`); } finally { // "closed" removes the marker; "close-failed" keeps it as // residue — the same contract the CLI cleanup path uses. guard.end(closeFailed ? "close-failed" : "closed"); } + return !closeFailed; } function write(msg) { @@ -267,10 +282,29 @@ import { isMainEntry } from "../devtools-cli/is-main-entry.mjs"; const isMain = isMainEntry(import.meta.url); if (isMain) { - const { flags } = parseArgs(process.argv.slice(2)); + const { flags, multi } = parseArgs(process.argv.slice(2), { multi: ["allow-mutation"] }); const sessionKind = flags.session ?? "fake"; - if (!["fake", "a8n"].includes(sessionKind)) { - process.stderr.write("usage: ae-devtools-mcp [--session fake|a8n] [--ae-a8n-root ] [--install-dir ]\n"); + const allowMutationOps = (multi?.["allow-mutation"] ?? []).filter((v) => typeof v === "string" && v.length > 0); + if (!["fake", "a8n", "a8n-attached"].includes(sessionKind)) { + process.stderr.write("usage: ae-devtools-mcp [--session fake|a8n|a8n-attached] [--ae-a8n-root ] [--install-dir ] [--ae-version ] [--allow-mutation ]... [--project-file ] [--call-timeout-ms ] [--deadline-ms ]\n"); + process.exit(2); + } + if (allowMutationOps.length > 0 && sessionKind !== "a8n-attached") { + process.stderr.write("ae-devtools-mcp: --allow-mutation is only valid with --session a8n-attached\n"); + process.exit(2); + } + if (typeof flags["project-file"] === "string" && sessionKind !== "a8n-attached") { + process.stderr.write("ae-devtools-mcp: --project-file is only valid with --session a8n-attached\n"); + process.exit(2); + } + // Target pins must carry a value (Issue #383): a bare `--project-file` + // parses to `true` and `--project-file=` to "" — both map to "pin + // absent" in the session openers, silently unpinning a granted + // mutation. `--ae-version` has the same silent-disable shape. Refuse + // before the server (and its lazy session) exists. + const valuelessPin = missingFlagValue(flags, ["project-file", "ae-version"]); + if (valuelessPin !== null) { + process.stderr.write(`ae-devtools-mcp: --${valuelessPin} requires a nonempty value\n`); process.exit(2); } const server = createServer({ @@ -278,6 +312,11 @@ if (isMain) { sessionOptions: { aeA8nRoot: typeof flags["ae-a8n-root"] === "string" ? flags["ae-a8n-root"] : undefined, installDir: typeof flags["install-dir"] === "string" ? flags["install-dir"] : undefined, + aeVersion: typeof flags["ae-version"] === "string" ? flags["ae-version"] : undefined, + mutatingOps: allowMutationOps, + projectFile: typeof flags["project-file"] === "string" ? flags["project-file"] : undefined, + callTimeoutMs: positiveMsFlag(flags["call-timeout-ms"]), + deadlineMs: positiveMsFlag(flags["deadline-ms"]), }, closeTimeoutMs: parseCloseTimeoutMs(flags["close-timeout-ms"]), }); @@ -290,8 +329,12 @@ if (isMain) { const shutdown = async (code) => { if (shuttingDown) return; shuttingDown = true; - await server.close(); - process.exit(code); + const closed = await server.close(); + // A failed session close must not exit through the clean signal + // path: conformance treats exit 130/143 + no signal as proof the + // owned AE session closed, so a close failure exits 1 instead + // (Issue #391). + process.exit(closed === false ? 1 : code); }; process.on("SIGINT", () => shutdown(130)); process.on("SIGTERM", () => shutdown(143)); diff --git a/packages/ae-devtools-cli/mcp-server/tests/server.test.mjs b/packages/ae-devtools-cli/mcp-server/tests/server.test.mjs index d9a3169c..845c81b8 100644 --- a/packages/ae-devtools-cli/mcp-server/tests/server.test.mjs +++ b/packages/ae-devtools-cli/mcp-server/tests/server.test.mjs @@ -423,6 +423,39 @@ test("server close is bounded when session.close hangs (Issue #196)", async () = assert.ok(Date.now() - started < 10_000, "session close was not bounded"); }); +test("server close() reports success/failure for the shutdown exit path (Issue #391)", async () => { + // close() must resolve false when the owned session fails to close — + // the entry's shutdown handler maps that to a non-clean exit code so + // conformance cannot read exit 143 as "AE session closed". + const okFactory = async () => ({ + kind: "fake", + evidenceLevel: "fake/mock only", + pin: { sessionId: "sess-ok" }, + runner: { runScript: async () => ({ outcome: "COMPLETED", result: null }) }, + close: async () => {}, + }); + const c1 = makeClient({ sessionFactory: okFactory }); + await c1.request("tools/call", { + name: "ae_execute", + arguments: { opId: "read.projectSummary", consent: "grant" }, + }); + assert.equal(await c1.server.close(), true); + + const failingFactory = async () => ({ + kind: "fake", + evidenceLevel: "fake/mock only", + pin: { sessionId: "sess-fail" }, + runner: { runScript: async () => ({ outcome: "COMPLETED", result: null }) }, + close: async () => { throw new Error("fixture: close refused"); }, + }); + const c2 = makeClient({ sessionFactory: failingFactory }); + await c2.request("tools/call", { + name: "ae_execute", + arguments: { opId: "read.projectSummary", consent: "grant" }, + }); + assert.equal(await c2.server.close(), false); +}); + test("ae_execute unknown op is a typed refusal, not a crash", async () => { const c = makeClient(); const { payload, isError } = toolPayload(await c.request("tools/call", { @@ -635,6 +668,26 @@ test("spawned server over real stdio: initialize → tools → execute → verif } }); +// ---- entry-flag validation (Issue #383): valueless target pins must +// ---- refuse before the server exists — tested against the real +// ---- spawned entry point, not just createServer ---- + +test("spawned entry refuses valueless --project-file / --ae-version with exit 2", async () => { + for (const argv of [ + ["--session", "a8n-attached", "--project-file"], + ["--session", "a8n-attached", "--project-file="], + ["--session", "a8n-attached", "--ae-version"], + ["--session", "fake", "--ae-version="], + ]) { + const child = spawn(process.execPath, [SERVER, ...argv], { stdio: ["ignore", "pipe", "pipe"] }); + let stderr = ""; + child.stderr.on("data", (d) => { stderr += d; }); + const code = await new Promise((resolve) => child.on("exit", resolve)); + assert.equal(code, 2, `argv ${JSON.stringify(argv)}: ${stderr}`); + assert.match(stderr, /requires a nonempty value/); + } +}); + // ---- outcome normalization consistency (Issue #226) ---- test("lowercase adapter outcome spellings normalize on MCP surface; session meta cannot spoof kind/evidenceLevel", async () => { diff --git a/packages/ae-devtools-cli/mcp-server/tools.mjs b/packages/ae-devtools-cli/mcp-server/tools.mjs index 6fed9675..50652953 100644 --- a/packages/ae-devtools-cli/mcp-server/tools.mjs +++ b/packages/ae-devtools-cli/mcp-server/tools.mjs @@ -175,11 +175,14 @@ function consentRefusal(opLabel, consent) { function sessionBlock(session) { // meta first: session-supplied fields must not override the honest - // top-level kind/evidenceLevel (Issue #226). + // top-level kind/evidenceLevel (Issue #226). `policy` is the + // session-imposed dispatch scope (Issue #366) — attached sessions + // record exactly which mutating ops were granted at open time. return { ...(session.meta ?? {}), kind: session.kind, evidenceLevel: session.evidenceLevel, + policy: session.policy ?? null, }; } @@ -246,12 +249,17 @@ export async function callTool(name, args = {}, ctx = {}) { args: args.args ?? {}, runner: session.runner, pin: session.pin, - projectIdentity: "mcp-devtools", + projectIdentity: session.hostProjectGuard ?? "mcp-devtools", + hostProjectGuard: session.hostProjectGuard ?? null, + hostProjectGuardRequired: session.hostProjectGuardRequired === true, consentProvider: async () => ({ approved: true }), consentAudit: ctx.consentAudit ?? null, trustedScriptOptIn: true, scriptProvenance: "mcp-server", requestId, + sessionPolicy: session.policy ?? null, + // Attached-session target re-validation (Issue #366). + targetGuard: session.targetGuard ?? null, confirmDestructive: args.confirmDestructive === true, confirmRender: args.confirmRender === true, }); @@ -281,7 +289,9 @@ export async function callTool(name, args = {}, ctx = {}) { readArgs: args.args ?? {}, runner: session.runner, pin: session.pin, - projectIdentity: "mcp-devtools", + projectIdentity: session.hostProjectGuard ?? "mcp-devtools", + hostProjectGuard: session.hostProjectGuard ?? null, + hostProjectGuardRequired: session.hostProjectGuardRequired === true, consentProvider: async () => ({ approved: true }), consentAudit: ctx.consentAudit ?? null, trustedScriptOptIn: true, diff --git a/packages/ae-devtools-cli/package-lock.json b/packages/ae-devtools-cli/package-lock.json index 5d94ff80..7b524705 100644 --- a/packages/ae-devtools-cli/package-lock.json +++ b/packages/ae-devtools-cli/package-lock.json @@ -1,12 +1,12 @@ { "name": "@ido-bata/ae-devtools-cli", - "version": "0.5.0", + "version": "0.6.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@ido-bata/ae-devtools-cli", - "version": "0.5.0", + "version": "0.6.0", "license": "MIT", "dependencies": { "@ido-bata/ae-a8n": "0.2.0", diff --git a/packages/ae-devtools-cli/package.json b/packages/ae-devtools-cli/package.json index 0e5be6ea..50924d8f 100644 --- a/packages/ae-devtools-cli/package.json +++ b/packages/ae-devtools-cli/package.json @@ -1,6 +1,6 @@ { "name": "@ido-bata/ae-devtools-cli", - "version": "0.5.0", + "version": "0.6.0", "description": "Developer CLI, JSX/TypeScript toolchain, MCP server and extension devkits for After Effects scripting/extension/native development", "type": "module", "engines": { diff --git a/packages/ae-devtools-cli/scripting-adapters/execute.mjs b/packages/ae-devtools-cli/scripting-adapters/execute.mjs index d7ebca6b..686d2c67 100644 --- a/packages/ae-devtools-cli/scripting-adapters/execute.mjs +++ b/packages/ae-devtools-cli/scripting-adapters/execute.mjs @@ -51,6 +51,35 @@ export function toProgramSource(body) { return `(function(){\n${body}\n})()`; } +/** + * Host-side project identity guard (Issue #385). + * + * The attached-session targetGuard re-proves the target immediately + * before dispatch, but the generated ExtendScript evaluates later — a + * project switch in that window would write into a project the consent + * scope never named. When the session can attest the open project's + * file, the expected `app.project.file.fsName` is injected into the + * SAME evaluation that performs the operation: the guard runs before + * the op body and returns the adapter failure shape (the same JSON + * contract __adp_json emits) on mismatch, so the outcome is a + * structured FAILED with adapterError.code PROJECT_IDENTITY_MISMATCH + * and no write ever ran. + * + * The literal is part of the consent-bound source — approval covers + * exactly this check. ES3 only (var / typeof / ternary): no JSON, no + * let/const inside the host program. + */ +export function withHostProjectGuard(programSource, expectedFsName) { + return `(function(){ +var __adp_guardFile = app.project.file; +var __adp_guardName = (__adp_guardFile !== null && __adp_guardFile !== undefined && typeof __adp_guardFile.fsName === "string") ? String(__adp_guardFile.fsName) : null; +if (__adp_guardName !== ${JSON.stringify(expectedFsName)}) { + return '{"ok":false,"error":{"code":"PROJECT_IDENTITY_MISMATCH","message":"active project file does not match the consented project identity; the operation was refused before any write"}}'; +} +return ${programSource}; +})()`; +} + /** * @param {object} input * opId — registry operation id (e.g. "item.addComp") @@ -64,6 +93,14 @@ export function toProgramSource(body) { * trustedScriptOptIn / scriptProvenance — forwarded to the runner * (required by the trusted-dev-script consent class) * requestId — optional caller-chosen id + * hostProjectGuard — expected app.project.file.fsName attested by the + * session (attached lane, Issue #385); injected + * into the consent-bound source so the host + * re-verifies project identity in the same + * evaluation as the operation + * hostProjectGuardRequired — when true, mutating ops refuse + * (PROJECT_GUARD_UNAVAILABLE) if no guard value + * could be attested (unsaved/unreadable project) */ export async function runOperation(input = {}) { const { opId, args = {}, runner, pin, projectIdentity } = input; @@ -89,6 +126,25 @@ export async function runOperation(input = {}) { } source = toProgramSource(source); + // Host project guard (Issue #385): `hostProjectGuard` is the + // session-attested app.project.file.fsName; when present it is + // injected into the consent-bound source below. When the session + // REQUIRES a guard (attached lane) but cannot attest a project file + // (unsaved or unreadable project), mutating ops refuse before + // consent — a write that cannot be host-verified must not dispatch. + const hostProjectGuard = typeof input.hostProjectGuard === "string" && input.hostProjectGuard.length > 0 + ? input.hostProjectGuard + : null; + if (input.hostProjectGuardRequired === true && op.mutating === true && hostProjectGuard === null) { + return refused("PROJECT_GUARD_UNAVAILABLE", + `'${opId}' mutates project state but this session cannot attest a host-verifiable project file ` + + "(project unsaved or identity unreadable); mutations require a saved, attested project", + { opId }); + } + if (hostProjectGuard !== null) { + source = withHostProjectGuard(source, hostProjectGuard); + } + // Consent scope is computed here so the provider approves exactly // this dispatch — it cannot substitute different args or source. let scope; @@ -184,6 +240,34 @@ export async function runOperation(input = {}) { { opId }); } + // Attached-session target re-validation (Issue #366): for a mutating + // op on a session that supplied `targetGuard`, re-prove the target + // identity AFTER consent approval and IMMEDIATELY before dispatch — + // consent can sit with a human for minutes, so an earlier check + // would be stale. The guard resolves {ok:true} or + // {ok:false, code, detail}; anything else (throw, malformed result) + // refuses — fail-closed, nothing is sent. Read ops never invoke it. + if (op.mutating === true && typeof input.targetGuard === "function") { + let guard = null; + try { + guard = await input.targetGuard(); + } catch (err) { + guard = { + ok: false, + code: "TARGET_GUARD_ERROR", + detail: err instanceof Error ? err.message : String(err), + }; + } + if (guard === null || typeof guard !== "object" || guard.ok !== true) { + return refused( + "ATTACHED_TARGET_GUARD", + `target re-validation refused the mutating dispatch: ` + + `${guard?.detail ?? "guard returned no verdict"}`, + { opId, guardCode: typeof guard?.code === "string" ? guard.code : null }, + ); + } + } + const outcome = await runner.runScript({ source, pin, diff --git a/packages/ae-devtools-cli/scripting-adapters/tests/execute.test.mjs b/packages/ae-devtools-cli/scripting-adapters/tests/execute.test.mjs index 9ccef569..4e4ecf01 100644 --- a/packages/ae-devtools-cli/scripting-adapters/tests/execute.test.mjs +++ b/packages/ae-devtools-cli/scripting-adapters/tests/execute.test.mjs @@ -1354,3 +1354,71 @@ test("issue #299 batch: render/output-module templates — apply/save/list, mult assert.equal(dq.outcome, "COMPLETED"); assert.notEqual((await go("render.listOutputModules", { compName: "C" })).outcome, "COMPLETED"); }); + +// ---- Issue #385: host-side project identity guard ---- + +const COMP_ARGS = { name: "Guarded", width: 100, height: 100, pixelAspect: 1, duration: 5, frameRate: 30 }; + +test("host project guard: matching fsName completes and binds the guard into consent source", async () => { + const app = createAdapterFakeApp(); + app.project.file = { fsName: "/tmp/pinned.aep" }; + const t = baseInput(app, { hostProjectGuard: "/tmp/pinned.aep" }); + const consentCalls = []; + const provider = approvingProvider(consentCalls); + const r = await runOperation({ + opId: "item.addComp", args: COMP_ARGS, + consentProvider: provider, confirmDestructive: true, ...t, + }); + assert.equal(r.outcome, "COMPLETED", JSON.stringify(r)); + assert.equal(app.project.items.length, 1); + // The consent-approved source IS the guarded program — the pin is + // inside the same evaluation the host runs. + assert.match(consentCalls[0].source, /__adp_guardFile/); + assert.match(consentCalls[0].source, /\/tmp\/pinned\.aep/); +}); + +test("host project guard: project switched after consent fails before any write", async () => { + const app = createAdapterFakeApp(); + // The host's ACTIVE project differs from the attested guard value — + // the TOCTOU window the guard exists to close. + app.project.file = { fsName: "/tmp/other.aep" }; + const t = baseInput(app, { hostProjectGuard: "/tmp/pinned.aep" }); + const r = await runOperation({ + opId: "item.addComp", args: COMP_ARGS, + consentProvider: approvingProvider(), confirmDestructive: true, ...t, + }); + assert.equal(r.outcome, "FAILED"); + assert.equal(r.adapterError?.code, "PROJECT_IDENTITY_MISMATCH"); + // No write ran: the comp was never added. + assert.equal(app.project.items.length, 0); +}); + +test("hostProjectGuardRequired refuses mutating ops without an attested file; reads unaffected", async () => { + const app = createAdapterFakeApp(); + const t = baseInput(app, { hostProjectGuard: null, hostProjectGuardRequired: true }); + const consentCalls = []; + const provider = approvingProvider(consentCalls); + const r = await runOperation({ + opId: "item.addComp", args: COMP_ARGS, + consentProvider: provider, confirmDestructive: true, ...t, + }); + assert.equal(r.status, "refused"); + assert.equal(r.reason, "PROJECT_GUARD_UNAVAILABLE"); + assert.equal(t.transport.calls.length, 0, "refusal must precede dispatch"); + assert.equal(consentCalls.length, 0, "refusal must precede consent"); + // Read ops on the same session still work — the requirement is + // mutation-scoped. + const v = await runOperation({ opId: "read.projectSummary", consentProvider: provider, ...t }); + assert.equal(v.outcome, "COMPLETED"); +}); + +test("hostProjectGuardRequired + attested guard lets mutations through", async () => { + const app = createAdapterFakeApp(); + app.project.file = { fsName: "/tmp/pinned.aep" }; + const t = baseInput(app, { hostProjectGuard: "/tmp/pinned.aep", hostProjectGuardRequired: true }); + const r = await runOperation({ + opId: "item.addComp", args: COMP_ARGS, + consentProvider: approvingProvider(), confirmDestructive: true, ...t, + }); + assert.equal(r.outcome, "COMPLETED", JSON.stringify(r)); +}); diff --git a/packages/ae-devtools-cli/vscode-extension/controller.mjs b/packages/ae-devtools-cli/vscode-extension/controller.mjs index 7777f56a..9c7f3248 100644 --- a/packages/ae-devtools-cli/vscode-extension/controller.mjs +++ b/packages/ae-devtools-cli/vscode-extension/controller.mjs @@ -54,9 +54,14 @@ function uiDeclined(detail) { /** * @param {object} options - * @param {"fake"|"a8n"} [options.session="fake"] + * @param {"fake"|"a8n"|"a8n-attached"} [options.session="fake"] * @param {string} [options.aeA8nRoot] * @param {string} [options.installDir] + * @param {string[]} [options.mutatingOps] — a8n-attached only: the + * explicit op-level mutation scope granted at session open (Issue + * #366); forwarded to the shared session opener, ignored elsewhere + * @param {string} [options.projectFile] — a8n-attached only: expected + * open-project file path; the session refuses on mismatch (Issue #366) * @param {{confirm:Function, info?:Function, error?:Function}} [options.ui] * @param {Function} [options.sessionFactory] — (kind, opts) => session; * defaults to mcp-server/session.mjs openSession. Injected by tests. @@ -73,6 +78,9 @@ export function createController(options = {}) { session: sessionKind = "fake", aeA8nRoot, installDir, + aeVersion, + mutatingOps, + projectFile, ui = DENY_ALL_UI, sessionFactory = openSession, closeTimeoutMs, @@ -107,7 +115,13 @@ export function createController(options = {}) { // an attributable residue record. await guard.begin(); try { - const s = await sessionFactory(sessionKind, { aeA8nRoot, installDir }); + const s = await sessionFactory(sessionKind, { + aeA8nRoot, + installDir, + aeVersion: typeof aeVersion === "string" && aeVersion.length > 0 ? aeVersion : undefined, + mutatingOps: Array.isArray(mutatingOps) ? mutatingOps : undefined, + projectFile: typeof projectFile === "string" && projectFile.length > 0 ? projectFile : undefined, + }); guard.mark(s); resolvedSession = s; return s; diff --git a/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/attempt-2026-11-21.json b/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/attempt-2026-11-21.json new file mode 100644 index 00000000..d067b63c --- /dev/null +++ b/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/attempt-2026-11-21.json @@ -0,0 +1,32 @@ +{ + "schema": "ae-devtools.vscode-iso-attempt/v1", + "issue": 172, + "ticket": 366, + "attemptedAt": "2026-11-20T16:55:30Z", + "host": "macOS (MacBook, VS Code 1.146.0, isolated --extensions-dir/--user-data-dir)", + "packagedVsix": "ae-devtools-vscode-extension-0.0.0.vsix built by scripts/package-vsix.mjs from branch 366 @ d3d69e4", + "config": { + "session": "a8n", + "aeA8nRoot": "/Users/rebui/work/ae-a8n (release-0-5-0 @ 716dada)" + }, + "driver": "tests/qa-driver mode=verify", + "observed": { + "extensionInstalled": true, + "extensionActivatedViaRealCommand": "ae-devtools.ae-devtools-vscode-extension activated onCommand:ae-devtools.verify (exthost.log 2026-11-21T01:55:33.772)", + "consentGateReached": true, + "note": "verify reached the modal consent gate; settlement requires GUI input" + }, + "blocked": { + "reason": "macOS screen locked (frontmost=loginwindow); window not on-screen; AX reports 0 windows; consent modal could not be settled", + "environmental": true, + "dispatchCompleted": false, + "diagnosticsPublished": false, + "aeSessionOpened": false + }, + "evidenceLevel": "partial real-host: real isolated VSCode + packaged extension + real activation + real consent gate; dispatch NOT completed", + "artifacts": { + "exthostLog": "exthost-log-015530/exthost.log", + "mode": "mode.txt", + "userSettings": "user-settings.json" + } +} \ No newline at end of file diff --git a/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/exthost-log-015530/TypeScriptTeam.jsts-chat-features/JSTS Chat Features.log b/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/exthost-log-015530/TypeScriptTeam.jsts-chat-features/JSTS Chat Features.log new file mode 100644 index 00000000..e69de29b diff --git a/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/exthost-log-015530/extHostTelemetry.log b/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/exthost-log-015530/extHostTelemetry.log new file mode 100644 index 00000000..e69de29b diff --git a/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/exthost-log-015530/exthost.log b/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/exthost-log-015530/exthost.log new file mode 100644 index 00000000..d1d5a628 --- /dev/null +++ b/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/exthost-log-015530/exthost.log @@ -0,0 +1,17 @@ +2026-11-21 01:55:33.387 [info] Extension host with pid 47906 started +2026-11-21 01:55:33.387 [info] Skipping acquiring lock for /tmp/vscode-iso-user/User/workspaceStorage/3716b9ab77f3d2145af687150581fde6. +2026-11-21 01:55:33.410 [info] ExtensionService#_doActivateExtension vscode.microsoft-authentication, startup: false, activationEvent: 'onAuthenticationRequest:microsoft' +2026-11-21 01:55:33.512 [info] ExtensionService#_doActivateExtension vscode.github-authentication, startup: false, activationEvent: 'onAuthenticationRequest:github' +2026-11-21 01:55:33.520 [info] ExtensionService#_doActivateExtension vscode.emmet, startup: false, activationEvent: 'onLanguage' +2026-11-21 01:55:33.540 [info] ExtensionService#_doActivateExtension vscode.git-base, startup: false, activationEvent: 'api', root cause: vscode.git +2026-11-21 01:55:33.577 [info] ExtensionService#_doActivateExtension vscode.git, startup: false, activationEvent: 'api' +2026-11-21 01:55:33.619 [info] ExtensionService#_doActivateExtension vscode.github, startup: true, activationEvent: '*' +2026-11-21 01:55:33.693 [info] Eager extensions activated +2026-11-21 01:55:33.694 [info] [node-compile-cache] extension-host: packaged cache enabled (status: enabled, configured: /Applications/Visual Studio Code.app/Contents/Resources/app/node-compile-cache/extension-host, active: /Applications/Visual Studio Code.app/Contents/Resources/app/node-compile-cache/extension-host/v24.22.1-arm64-7034790f) +2026-11-21 01:55:33.709 [info] ExtensionService#_doActivateExtension TypeScriptTeam.jsts-chat-features, startup: false, activationEvent: 'onStartupFinished' +2026-11-21 01:55:33.719 [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch, startup: false, activationEvent: 'onStartupFinished' +2026-11-21 01:55:33.721 [info] ExtensionService#_doActivateExtension vscode.merge-conflict, startup: false, activationEvent: 'onStartupFinished' +2026-11-21 01:55:33.729 [info] ExtensionService#_doActivateExtension qa.ae-driver, startup: false, activationEvent: 'onStartupFinished' +2026-11-21 01:55:33.772 [info] ExtensionService#_doActivateExtension ae-devtools.ae-devtools-vscode-extension, startup: false, activationEvent: 'onCommand:ae-devtools.verify' +2026-11-21 01:57:50.078 [info] Extension host terminating: received terminate message from renderer +2026-11-21 01:57:50.087 [info] Extension host with pid 47906 exiting with code 0 diff --git a/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/exthost-log-015530/vscode.git/Git.log b/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/exthost-log-015530/vscode.git/Git.log new file mode 100644 index 00000000..dd77a359 --- /dev/null +++ b/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/exthost-log-015530/vscode.git/Git.log @@ -0,0 +1,15 @@ +2026-11-21 01:55:33.628 [info] [main] Log level: Info +2026-11-21 01:55:33.639 [info] [main] Validating found git in: "/opt/homebrew/bin/git" +2026-11-21 01:55:33.692 [info] [main] Using git "2.56.1" from "/opt/homebrew/bin/git" +2026-11-21 01:55:33.692 [info] [Model][doInitialScan] Initial repository scan started +2026-11-21 01:55:33.746 [info] > git rev-parse --show-toplevel [48ms] +2026-11-21 01:55:33.746 [info] fatal: not a git repository (or any of the parent directories): .git +2026-11-21 01:55:33.747 [info] [Model][doInitialScan] Initial repository scan completed - repositories (0), closed repositories (0), parent repositories (0), unsafe repositories (0) +2026-11-21 01:55:33.805 [info] > git rev-parse --show-toplevel [35ms] +2026-11-21 01:55:33.805 [info] fatal: not a git repository (or any of the parent directories): .git +2026-11-21 01:55:33.979 [info] > git rev-parse --show-toplevel [12ms] +2026-11-21 01:55:33.979 [info] fatal: not a git repository (or any of the parent directories): .git +2026-11-21 01:55:34.907 [info] > git rev-parse --show-toplevel [11ms] +2026-11-21 01:55:34.907 [info] fatal: not a git repository (or any of the parent directories): .git +2026-11-21 01:55:35.047 [info] > git rev-parse --show-toplevel [26ms] +2026-11-21 01:55:35.047 [info] fatal: not a git repository (or any of the parent directories): .git diff --git a/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/exthost-log-015530/vscode.github-authentication/GitHub Authentication.log b/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/exthost-log-015530/vscode.github-authentication/GitHub Authentication.log new file mode 100644 index 00000000..3d511094 --- /dev/null +++ b/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/exthost-log-015530/vscode.github-authentication/GitHub Authentication.log @@ -0,0 +1,453 @@ +2026-11-21 01:55:33.564 [info] Reading sessions from keychain... +2026-11-21 01:55:33.564 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.606 [info] Got stored sessions! +2026-11-21 01:55:33.606 [info] Got 1 verified sessions. +2026-11-21 01:55:33.606 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.607 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.607 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.607 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.607 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.607 [info] Getting sessions for read:user,repo,user:email,workflow... +2026-11-21 01:55:33.607 [info] Got 1 sessions for read:user,repo,user:email,workflow... +2026-11-21 01:55:33.607 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.607 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.607 [info] Getting sessions for read:user,user:email... +2026-11-21 01:55:33.607 [info] Got 0 sessions for read:user,user:email... +2026-11-21 01:55:33.607 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.607 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.607 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.607 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.607 [info] Getting sessions for read:user,repo,user:email,workflow... +2026-11-21 01:55:33.607 [info] Got 1 sessions for read:user,repo,user:email,workflow... +2026-11-21 01:55:33.607 [info] Getting sessions for read:user,user:email... +2026-11-21 01:55:33.607 [info] Got 0 sessions for read:user,user:email... +2026-11-21 01:55:33.607 [info] Getting sessions for read:user,user:email... +2026-11-21 01:55:33.607 [info] Got 0 sessions for read:user,user:email... +2026-11-21 01:55:33.608 [info] Getting sessions for read:user,user:email... +2026-11-21 01:55:33.608 [info] Got 0 sessions for read:user,user:email... +2026-11-21 01:55:33.608 [info] Getting sessions for read:user,user:email... +2026-11-21 01:55:33.608 [info] Got 0 sessions for read:user,user:email... +2026-11-21 01:55:33.608 [info] Getting sessions for read:user,user:email... +2026-11-21 01:55:33.608 [info] Got 0 sessions for read:user,user:email... +2026-11-21 01:55:33.608 [info] Getting sessions for read:user,user:email... +2026-11-21 01:55:33.608 [info] Got 0 sessions for read:user,user:email... +2026-11-21 01:55:33.608 [info] Getting sessions for read:user,user:email... +2026-11-21 01:55:33.608 [info] Got 0 sessions for read:user,user:email... +2026-11-21 01:55:33.608 [info] Getting sessions for read:user,user:email... +2026-11-21 01:55:33.608 [info] Got 0 sessions for read:user,user:email... +2026-11-21 01:55:33.608 [info] Getting sessions for read:user,user:email... +2026-11-21 01:55:33.608 [info] Got 0 sessions for read:user,user:email... +2026-11-21 01:55:33.608 [info] Getting sessions for read:user,user:email... +2026-11-21 01:55:33.608 [info] Got 0 sessions for read:user,user:email... +2026-11-21 01:55:33.609 [info] Getting sessions for read:user,user:email... +2026-11-21 01:55:33.609 [info] Got 0 sessions for read:user,user:email... +2026-11-21 01:55:33.609 [info] Getting sessions for read:user,user:email... +2026-11-21 01:55:33.609 [info] Got 0 sessions for read:user,user:email... +2026-11-21 01:55:33.610 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.610 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.610 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.610 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.611 [info] Getting sessions for read:user,repo,user:email,workflow... +2026-11-21 01:55:33.611 [info] Got 1 sessions for read:user,repo,user:email,workflow... +2026-11-21 01:55:33.611 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.611 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.611 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.611 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.611 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.611 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.611 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.611 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.611 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.611 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.612 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.612 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.612 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.612 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.612 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.612 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.612 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.612 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.612 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.612 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.612 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.612 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.612 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.612 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.613 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.613 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.614 [info] Getting sessions for read:user,repo,user:email,workflow... +2026-11-21 01:55:33.614 [info] Got 1 sessions for read:user,repo,user:email,workflow... +2026-11-21 01:55:33.615 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.616 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.616 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.616 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.616 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.616 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.617 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.617 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.617 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.617 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.617 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.617 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.617 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.617 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.617 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.617 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.617 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.617 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.617 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.617 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.618 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.618 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.618 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.618 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.618 [info] Getting sessions for read:user,user:email... +2026-11-21 01:55:33.618 [info] Got 0 sessions for read:user,user:email... +2026-11-21 01:55:33.629 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.629 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:33.631 [info] Getting sessions for all scopes... +2026-11-21 01:55:33.631 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:34.614 [info] Getting sessions for all scopes... +2026-11-21 01:55:34.614 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:34.894 [info] Getting sessions for all scopes... +2026-11-21 01:55:34.894 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:34.925 [info] Getting sessions for all scopes... +2026-11-21 01:55:34.925 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:34.935 [info] Getting sessions for all scopes... +2026-11-21 01:55:34.935 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:34.955 [info] Getting sessions for all scopes... +2026-11-21 01:55:34.955 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:34.970 [info] Getting sessions for all scopes... +2026-11-21 01:55:34.970 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:34.991 [info] Getting sessions for all scopes... +2026-11-21 01:55:34.991 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.045 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.045 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.252 [info] FetcherService: Electron fetch failed with status: 429 +2026-11-21 01:55:35.253 [info] Unable to resolve optional EDU details. Status: 429 +2026-11-21 01:55:35.469 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.469 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.469 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.469 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.469 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.469 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.469 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.469 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.470 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.470 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.470 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.470 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.470 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.470 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.470 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.470 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.470 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.470 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.470 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.470 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.470 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.470 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.470 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.470 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.470 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.470 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.471 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.471 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.471 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.471 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.471 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.471 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.474 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.475 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.475 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.476 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.477 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.478 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.478 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.478 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.478 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.478 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.478 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.479 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.479 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.479 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.479 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.479 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.479 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.479 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.480 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.480 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.480 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.480 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.480 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.480 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.480 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.480 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.480 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.480 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.480 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.480 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.481 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.481 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.481 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.481 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.481 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.481 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.481 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.481 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.481 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.481 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.481 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.481 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.482 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.482 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.482 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.482 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.482 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.482 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.482 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.482 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.482 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.482 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.482 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.482 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.482 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.482 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.483 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.483 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.483 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.483 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.483 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.483 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.483 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.483 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.483 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.483 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.483 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.483 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.483 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.483 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.483 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.483 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.483 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.483 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.483 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.483 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.483 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.483 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.483 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.484 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.484 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.484 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.484 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.484 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.484 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.484 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.484 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.485 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.485 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.485 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.485 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.486 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.486 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.486 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.486 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.486 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.486 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.486 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.486 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.486 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.487 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.487 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.488 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.488 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.488 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.488 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.488 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.489 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.489 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.489 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.489 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.489 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.489 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.489 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.489 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.489 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.489 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.489 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.490 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.490 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.490 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.490 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.490 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.490 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.490 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.490 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.490 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.490 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.490 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.490 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.490 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.490 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.490 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.490 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.490 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.490 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.490 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.490 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.491 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.491 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.491 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.491 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.491 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.491 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.491 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.491 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.491 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.491 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.491 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.491 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.491 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.492 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.492 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.492 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.492 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.492 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.492 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.492 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.492 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.492 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.492 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.492 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.492 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.492 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.492 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.492 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.492 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.492 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.493 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.493 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.493 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.493 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.493 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.493 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.493 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.493 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.493 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.494 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.494 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.494 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.494 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.494 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.502 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.502 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.502 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.502 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.502 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.502 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.502 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.502 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.502 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.502 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.502 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.502 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.503 [info] Getting sessions for read:user,user:email... +2026-11-21 01:55:35.503 [info] Got 0 sessions for read:user,user:email... +2026-11-21 01:55:35.503 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.503 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.645 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.645 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.645 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.645 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.647 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.647 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.648 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.648 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.648 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.648 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.648 [info] Getting sessions for read:user,user:email... +2026-11-21 01:55:35.648 [info] Got 0 sessions for read:user,user:email... +2026-11-21 01:55:35.648 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.649 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.649 [info] Getting sessions for read:user,user:email... +2026-11-21 01:55:35.649 [info] Got 0 sessions for read:user,user:email... +2026-11-21 01:55:35.649 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.649 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.649 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.649 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.649 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.649 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.649 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.649 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.649 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.649 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.649 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.650 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.650 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.650 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.650 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.650 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.650 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.650 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.650 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.650 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.650 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.650 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.651 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.651 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.651 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.651 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.651 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.651 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.651 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.651 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:35.651 [info] Getting sessions for all scopes... +2026-11-21 01:55:35.651 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:37.698 [info] Getting sessions for all scopes... +2026-11-21 01:55:37.698 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:37.699 [info] Getting sessions for all scopes... +2026-11-21 01:55:37.699 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:37.714 [info] Getting sessions for all scopes... +2026-11-21 01:55:37.714 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:37.714 [info] Getting sessions for all scopes... +2026-11-21 01:55:37.714 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:37.715 [info] Getting sessions for all scopes... +2026-11-21 01:55:37.715 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:37.715 [info] Getting sessions for read:user,user:email... +2026-11-21 01:55:37.715 [info] Got 0 sessions for read:user,user:email... +2026-11-21 01:55:37.715 [info] Getting sessions for all scopes... +2026-11-21 01:55:37.715 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:37.715 [info] Getting sessions for read:user,user:email... +2026-11-21 01:55:37.715 [info] Got 0 sessions for read:user,user:email... +2026-11-21 01:55:37.715 [info] Getting sessions for all scopes... +2026-11-21 01:55:37.716 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:37.716 [info] Getting sessions for all scopes... +2026-11-21 01:55:37.716 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:37.716 [info] Getting sessions for all scopes... +2026-11-21 01:55:37.716 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:37.716 [info] Getting sessions for all scopes... +2026-11-21 01:55:37.716 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:37.716 [info] Getting sessions for all scopes... +2026-11-21 01:55:37.716 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:37.716 [info] Getting sessions for all scopes... +2026-11-21 01:55:37.716 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:37.717 [info] Getting sessions for all scopes... +2026-11-21 01:55:37.717 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:37.717 [info] Getting sessions for all scopes... +2026-11-21 01:55:37.717 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:37.717 [info] Getting sessions for all scopes... +2026-11-21 01:55:37.717 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:37.718 [info] Getting sessions for all scopes... +2026-11-21 01:55:37.718 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:37.718 [info] Getting sessions for all scopes... +2026-11-21 01:55:37.718 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:37.718 [info] Getting sessions for all scopes... +2026-11-21 01:55:37.718 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:37.718 [info] Getting sessions for all scopes... +2026-11-21 01:55:37.718 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:37.718 [info] Getting sessions for all scopes... +2026-11-21 01:55:37.718 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:37.718 [info] Getting sessions for all scopes... +2026-11-21 01:55:37.718 [info] Got 1 sessions for all scopes... +2026-11-21 01:55:37.718 [info] Getting sessions for all scopes... +2026-11-21 01:55:37.718 [info] Got 1 sessions for all scopes... diff --git a/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/exthost-log-015530/vscode.github/GitHub.log b/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/exthost-log-015530/vscode.github/GitHub.log new file mode 100644 index 00000000..be1d5ac8 --- /dev/null +++ b/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/exthost-log-015530/vscode.github/GitHub.log @@ -0,0 +1 @@ +2026-11-21 01:55:33.640 [info] Log level: Info diff --git a/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/exthost-log-015530/vscode.microsoft-authentication/Microsoft Authentication.log b/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/exthost-log-015530/vscode.microsoft-authentication/Microsoft Authentication.log new file mode 100644 index 00000000..47145065 --- /dev/null +++ b/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/exthost-log-015530/vscode.microsoft-authentication/Microsoft Authentication.log @@ -0,0 +1,13 @@ +2026-11-21 01:55:33.618 [info] [getSessions] [all] starting +2026-11-21 01:55:33.618 [info] [getSessions] [all] returned 0 session(s) +2026-11-21 01:55:33.619 [info] [getSessions] [all] starting +2026-11-21 01:55:33.619 [info] [getSessions] [all] returned 0 session(s) +2026-11-21 01:55:33.619 [info] [getSessions] [all] starting +2026-11-21 01:55:33.619 [info] [getSessions] [all] returned 0 session(s) +2026-11-21 01:55:33.619 [info] [getSessions] [12f6db80-0741-4a7e-b9c5-b85d737b3a31/.default] starting +2026-11-21 01:55:33.619 [info] [aebc6443-996d-45c2-90f0-388ff96faa56] Native Broker enabled: false +2026-11-21 01:55:34.614 [info] [getSessions] [all] starting +2026-11-21 01:55:34.614 [info] [getSessions] [all] returned 0 session(s) +2026-11-21 01:55:35.046 [info] [getSessions] [all] starting +2026-11-21 01:55:35.046 [info] [getSessions] [all] returned 0 session(s) +2026-11-21 01:57:50.085 [info] Microsoft Authentication is deactivating... diff --git a/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/mode.txt b/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/mode.txt new file mode 100644 index 00000000..4a1a71d3 --- /dev/null +++ b/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/mode.txt @@ -0,0 +1 @@ +verify \ No newline at end of file diff --git a/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/user-settings.json b/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/user-settings.json new file mode 100644 index 00000000..2f82e049 --- /dev/null +++ b/packages/ae-devtools-cli/vscode-extension/evidence/vscode-iso-a8n-366/user-settings.json @@ -0,0 +1,4 @@ +{ + "ae-devtools.session": "a8n", + "ae-devtools.aeA8nRoot": "/Users/rebui/work/ae-a8n" +} diff --git a/packages/ae-devtools-cli/vscode-extension/extension.mjs b/packages/ae-devtools-cli/vscode-extension/extension.mjs index a074954e..3986a73a 100644 --- a/packages/ae-devtools-cli/vscode-extension/extension.mjs +++ b/packages/ae-devtools-cli/vscode-extension/extension.mjs @@ -154,6 +154,11 @@ export async function activate(context) { session: config.get("session", "fake"), aeA8nRoot: config.get("aeA8nRoot"), installDir: config.get("installDir"), + aeVersion: config.get("aeVersion"), + mutatingOps: Array.isArray(config.get("attachedMutatingOps")) + ? config.get("attachedMutatingOps").filter((v) => typeof v === "string") + : undefined, + projectFile: config.get("attachedProjectFile"), ui: realUi(), }); diff --git a/packages/ae-devtools-cli/vscode-extension/package.json b/packages/ae-devtools-cli/vscode-extension/package.json index 0713fea9..6636f7ac 100644 --- a/packages/ae-devtools-cli/vscode-extension/package.json +++ b/packages/ae-devtools-cli/vscode-extension/package.json @@ -64,9 +64,9 @@ "properties": { "ae-devtools.session": { "type": "string", - "enum": ["fake", "a8n"], + "enum": ["fake", "a8n", "a8n-attached"], "default": "fake", - "description": "Session backend for dev-loop commands. 'fake' is codec-faithful mock evidence only; 'a8n' opens an owned AE session via ae-a8n (requires ae-devtools.aeA8nRoot)." + "description": "Session backend for dev-loop commands. 'fake' is codec-faithful mock evidence only; 'a8n' opens an owned AE session via ae-a8n (requires ae-devtools.aeA8nRoot); 'a8n-attached' attaches read-only to an already-running AE and never quits it (Issue #366)." }, "ae-devtools.aeA8nRoot": { "type": "string", @@ -78,6 +78,22 @@ "default": "", "description": "AE install directory forwarded to the a8n session opener (a8n session only)." }, + "ae-devtools.aeVersion": { + "type": "string", + "default": "", + "description": "Expected AE version pin for the a8n-attached session (Issue #366); the open refuses when the live version differs." + }, + "ae-devtools.attachedMutatingOps": { + "type": "array", + "items": { "type": "string" }, + "default": [], + "description": "a8n-attached session only (Issue #366): the exact mutating operation ids this session may dispatch on the user's running AE (e.g. [\"project.new\",\"project.save\"]). Empty = read-only. Ops that discard unsaved work (project.close) are never grantable; each dispatch still requires consent and the destructive/render confirm gates." + }, + "ae-devtools.attachedProjectFile": { + "type": "string", + "default": "", + "description": "a8n-attached session only (Issue #366): expected open-project file path. The session refuses unless the attached AE has exactly this project file open — guards against attaching to the wrong project." + }, "ae-devtools.debug.hostAppSpecifier": { "type": "string", "default": "", diff --git a/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/Conformance-Disposable.aep b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/Conformance-Disposable.aep new file mode 100644 index 00000000..8870ccbc Binary files /dev/null and b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/Conformance-Disposable.aep differ diff --git a/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/Conformance-MCP-Disposable.aep b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/Conformance-MCP-Disposable.aep new file mode 100644 index 00000000..5cdb5855 Binary files /dev/null and b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/Conformance-MCP-Disposable.aep differ diff --git a/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/a8n-host-ext.js b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/a8n-host-ext.js new file mode 100644 index 00000000..757c944b --- /dev/null +++ b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/a8n-host-ext.js @@ -0,0 +1,1618 @@ +/* ae-a8n-extensions {"contract":1,"methods":["aeDevtools.trustedEval","aeDevtools.evalProgram"],"registration":"4e39bf8055917b6e731938d97e50ba096ad89778ca4fb3aef107611d61276ab6"} */ +function __a8nRegisterExtensions() { + var context = this.__a8n; + if (context === undefined || context === null) { + throw new Error("extensions were declared without an __a8n host context"); + } + context.extensions = context.extensions || {}; + context.extensionsRegistration = "4e39bf8055917b6e731938d97e50ba096ad89778ca4fb3aef107611d61276ab6"; + context.extensions["aeDevtools.trustedEval"] = (function (params) { + var requestId = ""; + var source = ""; + if (params !== null && params !== undefined) { + if (params.requestId !== undefined && params.requestId !== null) { + requestId = String(params.requestId); + } + if (params.source !== undefined && params.source !== null) { + source = String(params.source); + } + } + + // Same codec the host protocol uses, loaded the same way a8n-host.js + // loads it: $.evalFile returns the file's completion value, and the file + // sits beside the generated host script ($.fileName's directory). + var codec = null; + try { + codec = $.evalFile(new File($.fileName).parent.fsName + "/a8n-json.js"); + } catch (codecError) { + codec = null; + } + if (codec === null || typeof codec.stringify !== "function") { + codec = null; + } + + // Exactly one evaluation, always as a program. A previous revision + // retried SyntaxError failures wrapped as a function body — but a + // SyntaxError can also be thrown at RUNTIME by the evaluated code + // itself (inner eval/new Function/RegExp), after partial side effects, + // so the retry could execute the source twice. There is no retry: + // parse failure and runtime failure are both reported, and callers + // that need function-body semantics wrap the source themselves. + var value; + var evalError = null; + var didThrow = false; + // Scope separation: the program must not reach this method's + // bookkeeping (didThrow/evalError/value/requestId/...). A direct + // eval here shares THIS function's variable environment, and any + // function nested inside it still resolves names through this + // scope — so the eval is delegated to the sibling method + // aeDevtools.evalProgram, whose lexical scope chain never includes + // this method's locals. Exactly one evaluation, always as a + // program; there is no retry (see above). + var runner = null; + try { + runner = __a8n.extensions["aeDevtools.evalProgram"]; + } catch (lookupError) { + runner = null; + } + if (typeof runner !== "function") { + return { + requestId: requestId, + ok: false, + evalError: { name: "EvalError", message: "aeDevtools.evalProgram runner unavailable", line: null, file: null } + }; + } + try { + value = runner({ source: source }); + } catch (firstError) { + didThrow = true; + evalError = firstError; + } + // didThrow (not evalError !== null) is the failure signal: a source + // that throws null or undefined leaves evalError nullish and must + // still classify as a failed evaluation, never as success. + if (didThrow) { + var name = "EvalError"; + var message = evalError === null ? "thrown null" + : evalError === undefined ? "thrown undefined" + : "unknown eval failure"; + var line = null; + var file = null; + if (evalError !== null && evalError !== undefined) { + try { if (evalError.name !== undefined) name = String(evalError.name); } catch (e1) {} + try { if (evalError.message !== undefined) message = String(evalError.message); } catch (e2) {} + try { if (evalError.line !== undefined) line = evalError.line; } catch (e3) {} + try { if (evalError.file !== undefined) file = String(evalError.file); } catch (e4) {} + } + return { + requestId: requestId, + ok: false, + evalError: { name: name, message: message, line: line, file: file } + }; + } + + // Result marshalling. Primitives pass through; objects/arrays are only + // JSON-serialized when the codec accepts them — an AE object graph is + // never handed to the serializer speculatively (hang/overflow risk), it + // degrades to text instead. undefined becomes null so the reply shape is + // stable. + var valueType = typeof value; + var resultJson = null; + var valueText = null; + var serialized = false; + if (value === undefined || value === null) { + serialized = true; + } else if (valueType === "string" || valueType === "number" || + valueType === "boolean") { + if (codec !== null) { + try { resultJson = codec.stringify(value); serialized = true; } catch (e5) {} + } + if (!serialized) { + try { valueText = String(value); } catch (e6) { valueText = null; } + serialized = valueText !== null; + } + } else if (codec !== null) { + // Objects and arrays: attempt codec serialization inside try/catch. + // ExtendScript objects expose few own enumerable properties, so this + // resolves quickly in practice; a stack overflow throws and is caught. + try { + resultJson = codec.stringify(value); + serialized = true; + } catch (e7) { + serialized = false; + } + } + if (!serialized) { + try { valueText = String(value); } catch (e8) { valueText = null; } + } + return { + requestId: requestId, + ok: true, + resultJson: serialized && resultJson !== null ? resultJson : null, + valueText: valueText, + valueType: valueType + }; +}); + context.extensions["aeDevtools.evalProgram"] = (function (params) { + return eval(String(params.source)); +}); +} +__a8nRegisterExtensions(); +/*! + * a8n-host.js — the part of ae-a8n that actually runs inside After Effects. + * + * Contract with the driver: the generated bootstrap sets a global `__a8n` + * with the request and result paths, then evals this file. This script reads + * the request, dispatches to a method, and publishes the result by rename. + * + * The identical file is evaluated against the in-repo fake host during tests — + * only the peer supplying `app` differs. Keep it that way: any logic that + * needs to differ per-peer belongs in the peer, not here. + * + * ES3 only. ExtendScript has no `let`/`const`, no arrow functions, no `JSON`, + * no `String.prototype.trim`, and no `Error.captureStackTrace`. + */ + +(function () { + // ---------------------------------------------------------------- codec -- + + function loadJson() { + // Always the bundled codec. AE's engine has no `JSON` of its own; one that + // is present was put there by another extension (observed on 26.5x89: a + // Babel-built polyfill, present once startup finished and absent on a cold + // start), so preferring it made the host behave differently cold and warm. + // + // The codec comes back as `$.evalFile`'s completion value. Looking it up + // on the global object does not work: called from inside a function, a + // real AE keeps the included file's `var`s in that function's scope. + var codec = $.evalFile(new File($.fileName).parent.fsName + "/a8n-json.js"); + if ( + codec === undefined || + codec === null || + typeof codec.parse !== "function" || + typeof codec.stringify !== "function" + ) { + throw new Error("a8n-json.js did not produce a JSON codec"); + } + return codec; + } + + // ------------------------------------------------------------------ fs --- + + function readTextFile(path) { + var file = new File(path); + file.encoding = "UTF-8"; + if (!file.exists) { + throw new Error("request file not found: " + path); + } + if (!file.open("r")) { + throw new Error("cannot open request file: " + path); + } + var text = file.read(); + file.close(); + return text; + } + + function writeTextFile(path, text) { + var file = new File(path); + file.encoding = "UTF-8"; + // ExtendScript cannot create intermediate directories, and the driver + // already created them. Opening for write truncates. + if (!file.open("w")) { + throw new Error("cannot open result file for writing: " + path); + } + file.write(text); + file.close(); + } + + function parentOf(path) { + var file = new File(path); + return file.parent.fsName; + } + + // -------------------------------------------------------------- errors --- + + function toErrorPayload(error) { + var payload = { + name: "Error", + message: "unknown host error" + }; + if (error === null || typeof error !== "object") { + payload.message = String(error); + return payload; + } + if (error.name !== undefined && error.name !== null) { + payload.name = String(error.name); + } + if (error.message !== undefined && error.message !== null) { + payload.message = String(error.message); + } else { + payload.message = String(error); + } + if (error.line !== undefined && typeof error.line === "number") { + payload.line = error.line; + } + // AE raises errors carrying `errorNumber` (e.g. 5023 for a missing effect). + if (error.errorNumber !== undefined && typeof error.errorNumber === "number") { + payload.aeError = error.errorNumber; + } + // Set by the host's own typed errors (NoValueError) for the API to branch on. + if (typeof error.kind === "string") { + payload.kind = error.kind; + } + if (error.matchName !== undefined && error.matchName !== null) { + payload.message = payload.message + " (matchName: " + String(error.matchName) + ")"; + } + return payload; + } + + // ------------------------------------------------------------- helpers --- + + // ExtendScript's Object.prototype has members a plain `object[key]` finds + // (functions named "+", "-", "*", "/", `toSource`, `watch`, ... observed on + // AE 26.5x89), so a key that came from a request is looked up as own only. + function has(object, key) { + return Object.prototype.hasOwnProperty.call(object, key); + } + + function requireParam(params, name) { + if (params === null || params === undefined || !has(params, name) || params[name] === undefined) { + throw new Error("missing required parameter: " + name); + } + return params[name]; + } + + function optionalParam(params, name, fallback) { + if (params === null || params === undefined || !has(params, name) || params[name] === undefined) { + return fallback; + } + return params[name]; + } + + function getProject() { + if (app.project === null || app.project === undefined) { + throw new Error("no project is open"); + } + return app.project; + } + + function findComp(name) { + // A real Project has no lookup by name (`itemByName` is undefined on AE + // 26.5x89), so walk the items. Names are not unique in AE; the first + // composition with the name wins, and a non-composition item that shares + // it is skipped. + var project = getProject(); + var sawOther = false; + for (var i = 1; i <= project.numItems; i++) { + var item = project.item(i); + if (item.name === name) { + if (item instanceof CompItem) { + return item; + } + sawOther = true; + } + } + if (sawOther) { + throw new Error("item is not a composition: " + name); + } + var missing = new Error("composition not found: " + name); + // The API turns exactly this into EntityNotFoundError; anything else a + // lookup raises is reported as itself. + missing.name = "NotFoundError"; + throw missing; + } + + function findLayer(comp, name) { + var layer = comp.layer(name); + if (layer === null || layer === undefined) { + throw new Error("layer not found in '" + comp.name + "': " + name); + } + return layer; + } + + function effectParade(layer) { + var parade = layer.property("ADBE Effect Parade"); + if (parade === null || parade === undefined) { + throw new Error("layer has no effect parade: " + layer.name); + } + return parade; + } + + /** + * Effects are addressed by match name internally, but callers know display + * names. Try the given identifier as a match name first (the documented, + * locale-independent path), then fall back to scanning by display name. + */ + function findEffect(layer, identifier) { + var parade = effectParade(layer); + var byName = parade.property(identifier); + if (byName !== null && byName !== undefined) { + return byName; + } + var count = parade.numProperties; + for (var i = 1; i <= count; i++) { + var candidate = parade.property(i); + if (candidate.name === identifier || candidate.matchName === identifier) { + return candidate; + } + } + return null; + } + + function applyEffect(layer, identifier) { + var parade = effectParade(layer); + var existing = findEffect(layer, identifier); + if (existing !== null && existing !== undefined) { + return { effect: existing, created: false }; + } + try { + // Match-name form: the deterministic path for third-party plugins. + var created = parade.addProperty(identifier); + if (created === null || created === undefined) { + throw new Error("addProperty returned nothing for: " + identifier); + } + return { effect: created, created: true }; + } catch (matchNameError) { + // Display-name form: some plugins register under their menu label. + var byLabel = parade.addProperty(identifier); + if (byLabel === null || byLabel === undefined) { + throw matchNameError; + } + return { effect: byLabel, created: true }; + } + } + + function findParameter(effect, identifier) { + var byName = effect.property(identifier); + if (byName !== null && byName !== undefined) { + return byName; + } + var count = effect.numProperties; + for (var i = 1; i <= count; i++) { + var candidate = effect.property(i); + if (candidate.name === identifier || candidate.matchName === identifier) { + return candidate; + } + } + return null; + } + + // PropertyValueType member names, in Adobe's order. Looked up on the live + // enum, so the numbers come from the host, not from here. + var VALUE_TYPE_NAMES = [ + "NO_VALUE", "ThreeD_SPATIAL", "ThreeD", "TwoD_SPATIAL", "TwoD", "OneD", + "COLOR", "CUSTOM_VALUE", "MARKER", "LAYER_INDEX", "MASK_INDEX", "SHAPE", + "TEXT_DOCUMENT" + ]; + + function valueTypeName(property) { + var type = property.propertyValueType; + for (var i = 0; i < VALUE_TYPE_NAMES.length; i++) { + // Constant keys, not request data: a plain lookup is safe here, and + // AE's enums are host objects that need not report own properties. + var member = PropertyValueType[VALUE_TYPE_NAMES[i]]; + if (member !== undefined && member === type) { + return VALUE_TYPE_NAMES[i]; + } + } + return String(type); + } + + /** + * The value shapes this API carries, by value type: `min`/`max` array + * lengths that `setValue` accepts on AE 26.5x89, or 0/0 for a single + * number. ThreeD takes 2 (z becomes 0) and COLOR 3 (alpha becomes 1). + * Anything else (MARKER, SHAPE, TEXT_DOCUMENT) is not carried. + */ + function valueShape(name) { + if (name === "OneD" || name === "LAYER_INDEX" || name === "MASK_INDEX") { + return { min: 0, max: 0, text: "a number" }; + } + if (name === "TwoD" || name === "TwoD_SPATIAL") { + return { min: 2, max: 2, text: "an array of 2 numbers" }; + } + if (name === "ThreeD" || name === "ThreeD_SPATIAL") { + return { min: 2, max: 3, text: "an array of 2 or 3 numbers" }; + } + if (name === "COLOR") { + return { min: 3, max: 4, text: "an array of 3 or 4 numbers" }; + } + return null; + } + + /** + * Whether a script can read this property's value, without reading it. + * On AE 26.5x89 reading `value` throws for PropertyValueType.NO_VALUE + * (e.g. ADBE Tint-0004, ADBE Ramp-0008) and CUSTOM_VALUE (Levels' + * histogram, Curves), and a group (Compositing Options) has no value. + * Value types this API does not carry count as "custom-value". + */ + function propertyKind(property) { + if (property.propertyType !== PropertyType.PROPERTY) { + return "group"; + } + var name = valueTypeName(property); + if (name === "NO_VALUE") { + return "no-value"; + } + return valueShape(name) === null ? "custom-value" : "value"; + } + + function describeProperty(property) { + var kind = propertyKind(property); + var out = { name: property.name, kind: kind }; + if (property.matchName !== undefined && property.matchName !== null) { + out.matchName = property.matchName; + } + if (kind !== "group") { + out.valueType = valueTypeName(property); + } + if (kind === "value") { + out.value = property.value; + } + return out; + } + + function isFiniteNumber(value) { + return typeof value === "number" && isFinite(value); + } + + // Not `instanceof Array`: request values come from the codec, which may run + // in another realm (as a8n-json.js notes for its own check). + function isArray(value) { + return Object.prototype.toString.call(value) === "[object Array]"; + } + + /** + * Refuses, before touching the property, a write it cannot take: a + * property without a value (NoValueError), or a value of the wrong shape + * for its type (ValueShapeError). AE itself would coerce some of these + * (observed: `[]` written to a OneD property becomes 0). + */ + function requireWritableValue(property, value) { + var kind = propertyKind(property); + var error; + if (kind !== "value") { + error = new Error( + "property has no value to write (" + kind + "): " + property.matchName + ); + error.name = "NoValueError"; + error.kind = kind; + throw error; + } + var name = valueTypeName(property); + var shape = valueShape(name); + var fits; + if (shape.max === 0) { + fits = isFiniteNumber(value); + } else { + fits = isArray(value) && value.length >= shape.min && value.length <= shape.max; + for (var i = 0; fits && i < value.length; i++) { + fits = isFiniteNumber(value[i]); + } + } + if (!fits) { + error = new Error( + property.matchName + " (" + name + ") takes " + shape.text + ); + error.name = "ValueShapeError"; + error.kind = name; + throw error; + } + } + + function zeroPad(value, width) { + var text = String(value); + while (text.length < width) { + text = "0" + text; + } + return text; + } + + // ------------------------------------------------------------- methods --- + + var methods = {}; + + methods["app.info"] = function () { + var info = { version: String(app.version) }; + // AE exposes the build as `app.buildNumber`; `app.build` is undefined on a + // real host (observed on 26.5x89). An absent value is left out rather than + // reported as the string "undefined". + try { + var build = app.buildNumber; + if (build !== undefined && build !== null && String(build) !== "") { + info.build = String(build); + } + } catch (e) { + // build is not guaranteed; version alone is enough for a readiness probe. + } + return info; + }; + + /** + * Refuses when the open project has unsaved changes, unless the caller + * explicitly allowed discarding them. Named, so the driver can tell a + * decision the caller must make from a failure. + */ + function guardUnsavedChanges(params, action) { + var project = app.project; + if (project === null || project === undefined || !project.dirty) { + return false; + } + if (optionalParam(params, "discardUnsavedChanges", false) !== true) { + var refused = new Error("the open project has unsaved changes; " + action + " would discard them"); + refused.name = "UnsavedChangesError"; + throw refused; + } + return true; + } + + /** + * Shows a modal dialog in After Effects and waits until it is closed. + * + * The dialog is native, not scripted: it is the one case an ExtendScript + * call cannot get out of on its own. It exists so the GUI fallback — the + * path that closes a dialog for a host that stopped answering — can be + * exercised against a dialog whose appearance and dismissal are known. + * + * `alert` blocks the script, so the result is written only after the + * dialog has been closed. A caller that gave up on the call must not send + * it again; the request is still running inside After Effects. + */ + methods["ui.alert"] = function (params) { + var message = String(requireParam(params, "message")); + // The GUI fallback may only press a window it has measured. Its one known + // class requires a static text beginning "ae-a8n:", so the marker is put + // on here, whatever the caller passed: a dialog this method raises has to + // be closable by the fallback it exists for. + var text = /^\s*ae-a8n:/.test(message) ? message : "ae-a8n: " + message; + alert(text); + return { dismissed: true, message: text }; + }; + + methods["app.quit"] = function (params) { + if (guardUnsavedChanges(params, "quitting")) { + // Closed first, untitled or not: a dirty project would otherwise put a + // save prompt in front of the quit. + app.project.close(CloseOptions.DO_NOT_SAVE_CHANGES); + } + app.quit(); + return { quitting: true }; + }; + + methods["project.open"] = function (params) { + var path = String(requireParam(params, "path")); + var file = new File(path); + if (!file.exists) { + throw new Error("project file not found: " + path); + } + // Opening replaces the open project; with unsaved changes AE would put a + // save prompt in front of the script, and the changes may be someone + // else's work. + if (guardUnsavedChanges(params, "opening another project")) { + app.project.close(CloseOptions.DO_NOT_SAVE_CHANGES); + } + var opened = app.open(file); + return { file: String(opened.fsName || opened.name) }; + }; + + methods["project.close"] = function (params) { + var save = optionalParam(params, "save", false); + if (save !== true) { + guardUnsavedChanges(params, "closing without saving"); + } + getProject().close( + save ? CloseOptions.SAVE_CHANGES : CloseOptions.DO_NOT_SAVE_CHANGES + ); + return { closed: true }; + }; + + methods["project.info"] = function () { + var project = getProject(); + return { + file: project.file === null ? null : String(project.file.fsName), + name: project.file === null ? null : String(project.file.name), + itemCount: project.numItems + }; + }; + + methods["project.comps"] = function () { + var project = getProject(); + var out = []; + for (var i = 1; i <= project.numItems; i++) { + var item = project.item(i); + if (item instanceof CompItem) { + out.push({ + name: item.name, + width: item.width, + height: item.height, + duration: item.duration, + frameRate: item.frameRate, + layerCount: item.numLayers + }); + } + } + return out; + }; + + methods["comp.info"] = function (params) { + return compInfo(findComp(String(requireParam(params, "name")))); + }; + + methods["comp.layers"] = function (params) { + var comp = findComp(String(requireParam(params, "name"))); + var out = []; + for (var i = 1; i <= comp.numLayers; i++) { + out.push(layerInfo(comp.layer(i))); + } + return out; + }; + + methods["comp.layer"] = function (params) { + var comp = findComp(String(requireParam(params, "comp"))); + var layer = findLayer(comp, String(requireParam(params, "layer"))); + return layerInfo(layer); + }; + + methods["layer.effects"] = function (params) { + var comp = findComp(String(requireParam(params, "comp"))); + var layer = findLayer(comp, String(requireParam(params, "layer"))); + var parade = effectParade(layer); + var out = []; + for (var i = 1; i <= parade.numProperties; i++) { + out.push({ name: parade.property(i).name, matchName: parade.property(i).matchName }); + } + return out; + }; + + methods["layer.applyEffect"] = function (params) { + var comp = findComp(String(requireParam(params, "comp"))); + var layer = findLayer(comp, String(requireParam(params, "layer"))); + var identifier = String(requireParam(params, "effect")); + var result = applyEffect(layer, identifier); + return { + name: result.effect.name, + matchName: result.effect.matchName, + created: result.created + }; + }; + + methods["effect.parameters"] = function (params) { + var effect = resolveEffect(params); + var out = []; + for (var i = 1; i <= effect.numProperties; i++) { + out.push(describeProperty(effect.property(i))); + } + return out; + }; + + methods["effect.getParameter"] = function (params) { + var effect = resolveEffect(params); + var property = requireProperty(effect, String(requireParam(params, "parameter"))); + return describeProperty(property); + }; + + methods["effect.setParameter"] = function (params) { + var effect = resolveEffect(params); + var property = requireProperty(effect, String(requireParam(params, "parameter"))); + var value = requireParam(params, "value"); + requireWritableValue(property, value); + property.setValue(value); + return describeProperty(property); + }; + + function resolveEffect(params) { + var comp = findComp(String(requireParam(params, "comp"))); + var layer = findLayer(comp, String(requireParam(params, "layer"))); + var effect = findEffect(layer, String(requireParam(params, "effect"))); + if (effect === null || effect === undefined) { + throw new Error("effect not found on layer '" + layer.name + "': " + params.effect); + } + return effect; + } + + function requireProperty(effect, identifier) { + var property = findParameter(effect, identifier); + if (property === null || property === undefined) { + throw new Error("parameter not found on effect '" + effect.name + "': " + identifier); + } + return property; + } + + methods["comp.renderFrame"] = function (params) { + var comp = findComp(String(requireParam(params, "comp"))); + var frame = Number(requireParam(params, "frame")); + var outputDir = String(requireParam(params, "outputDir")); + var namePrefix = String(optionalParam(params, "prefix", comp.name)); + + var folder = new Folder(outputDir); + if (!folder.exists && !folder.create()) { + throw new Error("cannot create output directory: " + outputDir); + } + var target = new File(folder.fsName + "/" + namePrefix + "." + zeroPad(frame, 5) + ".png"); + if (target.exists) { + target.remove(); + } + + // `saveFrameToPng`, not the render queue: a localised AE has no output + // module template named "PNG Sequence" (ja 26.5x89 lists none) and an + // output module's "Format" is read-only to setSettings, so the queue + // cannot be told to write PNG. `saveFrameToPng` renders at the viewer's + // resolution, so full resolution is forced for the frame and restored. + var previousResolution = comp.resolutionFactor; + comp.resolutionFactor = [1, 1]; + try { + var pending = comp.saveFrameToPng(frame * comp.frameDuration, target); + // It returns before the file is written (observed: 0 bytes at first); + // `wait()` blocks until it is, and throws if it failed. + try { + pending.wait(); + } catch (waitError) { + var cause = pending._exception !== undefined && pending._exception !== null + ? String(pending._exception) + : String(waitError.message); + throw new Error("frame " + frame + " of '" + comp.name + "' was not rendered: " + cause); + } + } finally { + comp.resolutionFactor = previousResolution; + } + + var size = readPngSize(target); + return { + path: String(target.fsName), + frame: frame, + width: size.width, + height: size.height + }; + }; + + /** Width and height from a PNG's IHDR: what was written, not what was asked for. */ + function readPngSize(file) { + if (!file.exists) { + throw new Error("rendered frame is missing: " + file.fsName); + } + file.encoding = "BINARY"; + if (!file.open("r")) { + throw new Error("cannot open rendered frame: " + file.fsName); + } + var head = file.read(24); + file.close(); + if (head.length < 24 || head.substring(12, 16) !== "IHDR") { + throw new Error("rendered frame is not a PNG: " + file.fsName); + } + function u32(offset) { + return head.charCodeAt(offset) * 16777216 + + head.charCodeAt(offset + 1) * 65536 + + head.charCodeAt(offset + 2) * 256 + + head.charCodeAt(offset + 3); + } + return { width: u32(16), height: u32(20) }; + } + + + // -------------------------------------------------- scene construction --- + + function layerType(layer) { + // Most specific first: a ShapeLayer and a TextLayer are also AVLayers. + if (typeof TextLayer !== "undefined" && layer instanceof TextLayer) { + return "text"; + } + if (typeof ShapeLayer !== "undefined" && layer instanceof ShapeLayer) { + return "shape"; + } + if (typeof AVLayer !== "undefined" && layer instanceof AVLayer) { + return "av"; + } + return "other"; + } + + function layerInfo(layer) { + return { + id: layer.id, + name: layer.name, + index: layer.index, + enabled: layer.enabled, + selected: layer.selected, + type: layerType(layer) + }; + } + + function compInfo(comp) { + return { + name: comp.name, + width: comp.width, + height: comp.height, + duration: comp.duration, + frameRate: comp.frameRate, + layerCount: comp.numLayers + }; + } + + function requireNumber(params, name, min) { + var value = requireParam(params, name); + if (!isFiniteNumber(value) || value < min) { + throw new Error(name + " must be a number >= " + min); + } + return value; + } + + function requireNumbers(value, name, length) { + if (!isArray(value) || value.length !== length) { + throw new Error(name + " must be an array of " + length + " numbers"); + } + for (var i = 0; i < value.length; i++) { + if (!isFiniteNumber(value[i])) { + throw new Error(name + " must be an array of " + length + " numbers"); + } + } + return value; + } + + methods["project.createComp"] = function (params) { + var project = getProject(); + var name = String(requireParam(params, "name")); + // Comps are addressed by name, so a second comp with the name could never + // be reached; refuse instead of creating it. + for (var i = 1; i <= project.numItems; i++) { + if (project.item(i).name === name) { + throw new Error("an item named '" + name + "' already exists"); + } + } + var comp = project.items.addComp( + name, + requireNumber(params, "width", 4), + requireNumber(params, "height", 4), + optionalParam(params, "pixelAspect", 1), + requireNumber(params, "duration", 0.001), + requireNumber(params, "frameRate", 1) + ); + return compInfo(comp); + }; + + methods["comp.openInViewer"] = function (params) { + var comp = findComp(String(requireParam(params, "name"))); + comp.openInViewer(); + return { name: comp.name, active: app.project.activeItem === comp }; + }; + + methods["comp.addText"] = function (params) { + var comp = findComp(String(requireParam(params, "comp"))); + var text = String(requireParam(params, "text")); + var layer = comp.layers.addText(text); + var name = optionalParam(params, "name", null); + if (name !== null) { + layer.name = String(name); + } + var source = layer.property("ADBE Text Properties").property("ADBE Text Document"); + var doc = source.value; + var font = optionalParam(params, "font", null); + if (font !== null) { + doc.font = String(font); + } + var fontSize = optionalParam(params, "fontSize", null); + if (fontSize !== null) { + doc.fontSize = requireNumber(params, "fontSize", 1); + } + var fillColor = optionalParam(params, "fillColor", null); + if (fillColor !== null) { + doc.applyFill = true; + doc.fillColor = requireNumbers(fillColor, "fillColor", 3); + } + doc.applyStroke = false; + source.setValue(doc); + var position = optionalParam(params, "position", null); + if (position !== null) { + layer.property("ADBE Transform Group").property("ADBE Position") + .setValue(requireNumbers(position, "position", 2)); + } + var applied = source.value; + var info = layerInfo(layer); + // What AE settled on, not what was asked for: an unknown font falls back. + info.font = String(applied.font); + info.fontSize = applied.fontSize; + return info; + }; + + methods["comp.selectLayers"] = function (params) { + var comp = findComp(String(requireParam(params, "comp"))); + var names = requireParam(params, "layers"); + if (!isArray(names)) { + throw new Error("layers must be an array of layer names"); + } + var wanted = []; + for (var i = 0; i < names.length; i++) { + wanted.push(findLayer(comp, String(names[i]))); + } + // Exactly the named layers: deselect everything else first. + for (var j = 1; j <= comp.numLayers; j++) { + comp.layer(j).selected = false; + } + for (var k = 0; k < wanted.length; k++) { + wanted[k].selected = true; + } + var selected = []; + for (var n = 1; n <= comp.numLayers; n++) { + if (comp.layer(n).selected) { + selected.push(comp.layer(n).name); + } + } + return { selected: selected }; + }; + + methods["layer.setEnabled"] = function (params) { + var comp = findComp(String(requireParam(params, "comp"))); + var layer = findLayer(comp, String(requireParam(params, "layer"))); + var enabled = requireParam(params, "enabled"); + if (enabled !== true && enabled !== false) { + throw new Error("enabled must be a boolean"); + } + layer.enabled = enabled; + return layerInfo(layer); + }; + + methods["layer.transform"] = function (params) { + var comp = findComp(String(requireParam(params, "comp"))); + var layer = findLayer(comp, String(requireParam(params, "layer"))); + var group = layer.property("ADBE Transform Group"); + return { + anchorPoint: group.property("ADBE Anchor Point").value, + position: group.property("ADBE Position").value, + scale: group.property("ADBE Scale").value, + rotation: group.property("ADBE Rotate Z").value, + opacity: group.property("ADBE Opacity").value + }; + }; + + function collectShapePaths(group, groups, out) { + for (var i = 1; i <= group.numProperties; i++) { + var child = group.property(i); + if (child.matchName === "ADBE Vector Group") { + var nested = groups.slice(0); + nested.push(child.name); + collectShapePaths(child.property("ADBE Vectors Group"), nested, out); + } else if (child.matchName === "ADBE Vector Shape - Group") { + var shape = child.property("ADBE Vector Shape").value; + out.push({ + groups: groups, + name: child.name, + closed: shape.closed, + vertices: shape.vertices, + inTangents: shape.inTangents, + outTangents: shape.outTangents + }); + } + } + } + + methods["layer.shapePaths"] = function (params) { + var comp = findComp(String(requireParam(params, "comp"))); + var layer = findLayer(comp, String(requireParam(params, "layer"))); + if (layerType(layer) !== "shape") { + throw new Error("not a shape layer: " + layer.name); + } + var out = []; + collectShapePaths(layer.property("ADBE Root Vectors Group"), [], out); + return out; + }; + + // ------------------------------------------------------- menu commands --- + + methods["app.setEnvironment"] = function (params) { + var variables = requireParam(params, "variables"); + var names = []; + for (var key in variables) { + if (has(variables, key)) { + // Process-scoped: the variable lives in this AE process only and is + // gone when it exits. Nothing is persisted to preferences. + $.setenv(key, String(variables[key])); + names.push(key); + } + } + return { names: names }; + }; + + methods["menu.find"] = function (params) { + var name = String(requireParam(params, "name")); + var id = app.findMenuCommandId(name); + if (!isFiniteNumber(id) || id <= 0) { + var missing = new Error("menu command not found: " + name); + missing.name = "NotFoundError"; + throw missing; + } + return { id: id, name: name }; + }; + + function sceneSnapshot() { + var project = app.project; + var active = project === null || project === undefined ? null : project.activeItem; + var snapshot = { + itemCount: project === null || project === undefined ? 0 : project.numItems, + comp: null, + layers: [] + }; + if (active !== null && active !== undefined && active instanceof CompItem) { + snapshot.comp = active.name; + for (var i = 1; i <= active.numLayers; i++) { + snapshot.layers.push(layerInfo(active.layer(i))); + } + } + return snapshot; + } + + methods["menu.execute"] = function (params) { + var id = requireParam(params, "id"); + if (!isFiniteNumber(id) || id <= 0 || Math.floor(id) !== id) { + throw new Error("menu command id must be a positive integer"); + } + var before = sceneSnapshot(); + var started = new Date().getTime(); + // Synchronous on AE 26.5x89, including commands an AEGP plugin registers: + // the plugin's command hook has returned when this does. + app.executeCommand(id); + var durationMs = new Date().getTime() - started; + return { + id: id, + durationMs: durationMs, + before: before, + after: sceneSnapshot() + }; + }; + + // ----------------------------------------------------------- dispatch --- + + /** + * Which sessions this engine has answered, by id. A plain object of booleans: + * the engine outlives every script, so nothing from After Effects (no item, + * comp or layer) may be kept here, or a later project switch invalidates it. + */ + function sessionStore() { + var store = $.global.__a8nSessions; + if (store === undefined || store === null) { + store = {}; + $.global.__a8nSessions = store; + } + return store; + } + + /** Refuses before doing anything when the request requires a session this engine never answered. */ + function checkSession(request) { + var session = request.session; + if (session === undefined || session === null || session.require !== true) { + return; + } + if (sessionStore()[String(session.id)] !== true) { + var mismatch = new Error( + "this After Effects instance did not answer the probe of this session, so " + String(request.method) + " was not run" + ); + mismatch.name = "SessionMismatch"; + throw mismatch; + } + } + + function rememberSession(request) { + var session = request.session; + if (session !== undefined && session !== null && session.adopt === true) { + sessionStore()[String(session.id)] = true; + } + } + + function extensionTable() { + var context = this.__a8n; + if (context === undefined || context === null || context.extensions === undefined) { + return {}; + } + return context.extensions; + } + + /** + * The extension method names actually registered in this After Effects, + * sorted. Read once at dispatcher activation: the table does not grow + * afterwards, so the heartbeat reports a fixed set (#146). + */ + function registeredExtensionNames() { + var table = extensionTable(); + var names = []; + for (var key in table) { + if (has(table, key) && typeof table[key] === "function") { + names.push(key); + } + } + names.sort(); + return names; + } + + /** + * A shallow copy of the registered extension functions, taken once at + * dispatcher activation. Dispatch resolves against this snapshot so the + * set the heartbeat reports is the set that actually answers (#146). + */ + function snapshotExtensionFunctions() { + var table = extensionTable(); + var copy = {}; + for (var key in table) { + if (has(table, key) && typeof table[key] === "function") { + copy[key] = table[key]; + } + } + return copy; + } + + /** + * The registration fingerprint the build prelude left on `__a8n`, or null + * when the running script was not built by `ae-a8n extension build`. It is + * copied into the heartbeat verbatim — the host never recomputes it. + */ + function extensionRegistration() { + var context = this.__a8n; + if (context === undefined || context === null) { + return null; + } + var value = context.extensionsRegistration; + return typeof value === "string" && value.length > 0 ? value : null; + } + + function dispatch(request, extensionOverride) { + if (request === null || typeof request !== "object") { + throw new Error("request envelope is not an object"); + } + // Extension methods are registered before this file loads and live in + // their own table: a built-in name always wins, because the build refuses + // a collision but the table must still not be able to replace one. + // + // Statements, not one nested conditional: measured on AE 26.5x89, + // ExtendScript evaluates `a ? x : b ? y : undefined` with the second test + // deciding the whole expression, so a name found in `methods` returned + // `extensions[name]` — undefined — and every call failed with "unknown + // method". An explicitly grouped conditional and plain `if` both evaluate + // correctly; this form is also correct in Node, so the fake host agrees. + // `extensionOverride` is the dispatcher path's activation-time snapshot + // (#146): the heartbeat reports that fixed set, so dispatch must resolve + // against the same fixed set — a later mutation of `__a8n.extensions` + // cannot widen what the dispatcher answers for. + var extensions = extensionOverride === undefined ? extensionTable() : extensionOverride; + var method; + if (has(methods, request.method)) { + method = methods[request.method]; + } else if (has(extensions, request.method)) { + method = extensions[request.method]; + } else { + method = undefined; + } + if (method === undefined) { + throw new Error("unknown method: " + String(request.method)); + } + if (typeof method !== "function") { + throw new Error("the method " + String(request.method) + " is not a function"); + } + checkSession(request); + var result = method(request.params); + rememberSession(request); + return result; + } + + function main() { + var codec = loadJson(); + var context = this.__a8n; + if (context === undefined || context === null) { + throw new Error("a8n host invoked without a __a8n context"); + } + + var started = new Date().getTime(); + var request; + var envelope; + + try { + request = codec.parse(readTextFile(context.request)); + var result = dispatch(request); + envelope = { + v: request.v, + id: request.id, + ok: true, + durationMs: new Date().getTime() - started, + result: result === undefined ? null : result + }; + } catch (error) { + var id = "unknown"; + if (request !== undefined && request !== null && request.id !== undefined) { + id = String(request.id); + } + envelope = { + v: 1, + id: id, + ok: false, + durationMs: new Date().getTime() - started, + error: toErrorPayload(error) + }; + } + + // Publish by rename so the driver never reads a partial envelope. A + // rename on the same directory is atomic; a direct write is not, and the + // driver can only tell the difference by refusing to read a half-written + // file. So the atomic path is worth retrying before giving it up — on + // Windows a transient handle (antivirus, AE itself) is the usual cause. + publishResult(String(context.result), codec.stringify(envelope)); + } + + var PUBLISH_ATTEMPTS = 3; + var PUBLISH_RETRY_MS = 50; + + /** The last path segment, taken from the string so nothing is URI-encoded. */ + function fileNameOf(path) { + var slash = Math.max(path.lastIndexOf("/"), path.lastIndexOf("\\")); + return slash < 0 ? path : path.substring(slash + 1); + } + + /** + * Publishes `text` at `resultPath` and says how: "rename" or "direct". + * + * "rename": the result appeared whole, by renaming a fully written staging + * file in the same directory. A reader can never observe part of it. + * + * "direct": every rename failed and the result was written in place. A + * reader *can* observe a partial file; the driver re-reads until the + * envelope parses, so this costs latency, not correctness. + * + * Either way no staging file is left behind. + */ + function publishResult(resultPath, text) { + var staging = resultPath + ".part"; + writeTextFile(staging, text); + var finalFile = new File(resultPath); + // ExtendScript's `File.rename` takes a new *name* and keeps the file in + // its directory; given a full path it returns false (observed on AE + // 26.5x89). Passing a path would make every publication non-atomic. + var finalName = fileNameOf(resultPath); + + for (var attempt = 0; attempt < PUBLISH_ATTEMPTS; attempt++) { + var stagingFile = new File(staging); + // ExtendScript's rename refuses an existing destination. + if (finalFile.exists) { + finalFile.remove(); + } + if (stagingFile.rename(finalName)) { + return "rename"; + } + if (attempt + 1 < PUBLISH_ATTEMPTS) { + $.sleep(PUBLISH_RETRY_MS); + } + } + + // Every atomic attempt failed. Write anyway rather than lose a computed + // result, then drop the staging copy so it does not accumulate. + writeTextFile(resultPath, text); + var leftover = new File(staging); + if (leftover.exists) { + leftover.remove(); + } + return "direct"; + } + + // -------------------------------------------------------- dispatcher --- + // + // Opt-in in-AE transport (#127). Instead of answering one request file per + // script run, this mode keeps an `app.scheduleTask` polling a private + // channel directory and answers the *same* named operations from the same + // `methods` table — there is no second dispatch table and no eval of + // caller-supplied code. + // + // Activation is deliberate and human: File > Scripts > Run Script File on + // the generated `activate.jsx`, or a per-user `Scripts/Startup` entry the + // user installed. This file never installs itself, never opens a socket, + // and never quits After Effects. + // + // Channel contract (mirrors the one-shot path): + // /inbox/.request.json claimed by rename before it runs + // /outbox/.result.json published by rename + // /state.json heartbeat the Node side reads + // A request that cannot be answered still gets a failure envelope when it + // can be published; when it cannot, the caller reports UNKNOWN and never + // resends — a claimed request is never replayed. + + var DISPATCHER_POLL_MS = 250; + var DISPATCHER_MIN_POLL_MS = 50; + var DISPATCHER_MAX_POLL_MS = 5000; + /** Heartbeat refresh cadence, in ticks. */ + var DISPATCHER_STATE_EVERY = 8; + /** Outbox results older than this are deleted; they are deliveries nobody read. */ + var DISPATCHER_RESULT_MAX_AGE_MS = 60 * 60 * 1000; + + function dispatcherRefusal(reason) { + var error = new Error("request refused: " + reason); + error.name = "RequestRefusedError"; + return error; + } + + function dispatcherPaths(root) { + var base = String(root); + while (base.length > 1 && base.substring(base.length - 1) === "/") { + base = base.substring(0, base.length - 1); + } + return { + root: base, + inbox: base + "/inbox", + outbox: base + "/outbox", + state: base + "/state.json" + }; + } + + /** + * Validates a claimed request and runs it through the same `dispatch` the + * one-shot path uses. Throws — the caller turns that into a failure + * envelope — for anything that is not a live, authorized, named operation. + */ + function runDispatcherRequest(state, claimed, id) { + var started = new Date().getTime(); + var request; + try { + request = state.codec.parse(readTextFile(claimed.fsName)); + } catch (parseFailure) { + throw dispatcherRefusal("the request is not valid JSON"); + } + if (request === null || typeof request !== "object" || request.v !== 1) { + throw dispatcherRefusal("unsupported request envelope"); + } + if (String(request.id) !== id) { + // The id in the envelope must be the id in the file name: a mismatch + // means the file was not addressed to this request slot. + throw dispatcherRefusal("request id does not match its file name"); + } + if (request.token !== state.token) { + throw dispatcherRefusal("request token does not match this channel"); + } + // Defence in depth for the pre-claim filter in dispatcherTick: a request + // that names a different dispatcher instance must never run here, even + // if it was claimed before the filter could see it. + if (typeof request.target === "string" && request.target !== state.instance) { + throw dispatcherRefusal("request targets a different dispatcher instance"); + } + if (typeof request.method !== "string" || request.method.length === 0) { + throw dispatcherRefusal("request names no method"); + } + if (typeof request.timeoutMs !== "number" || !isFinite(request.timeoutMs)) { + throw dispatcherRefusal("request carries no usable deadline"); + } + var now = new Date().getTime(); + if (now > claimed.modified.getTime() + request.timeoutMs) { + // The caller's deadline already passed while the request waited + // unclaimed (AE busy, dispatcher not yet active). Refuse it: running + // it now would execute work nobody is still waiting for. + var stale = new Error("request expired before the dispatcher claimed it"); + stale.name = "StaleRequestError"; + throw stale; + } + var result = dispatch(request, state.extensionFunctions); + return { + v: request.v, + id: id, + ok: true, + durationMs: new Date().getTime() - started, + result: result === undefined ? null : result + }; + } + + function writeDispatcherState(state) { + var report = { + v: 1, + token: state.token, + instance: state.instance, + aeVersion: String(app.version), + activatedAt: state.activatedAt, + lastTick: new Date().getTime(), + pollMs: state.pollMs, + // The extension set this dispatcher actually registered (#146). + // Captured once at activation into `state`; the table cannot change + // afterwards, so the heartbeat keeps reporting the fixed set — not a + // claim that the staged file matches. + extensionMethods: state.extensionMethods, + extensionsRegistration: state.extensionsRegistration + }; + try { + publishResult(state.paths.state, state.codec.stringify(report)); + } catch (stateError) { + // A heartbeat that cannot be written is not worth a modal dialog; the + // Node side reads a stale file as "not answering" and says so. + } + } + + /** Removes outbox results too old for any caller to still be waiting on. */ + function sweepDispatcherOutbox(state) { + var outbox = new Folder(state.paths.outbox); + if (!outbox.exists) { + return; + } + var horizon = new Date().getTime() - DISPATCHER_RESULT_MAX_AGE_MS; + var files = outbox.getFiles("*.result.json"); + for (var i = 0; i < files.length; i++) { + var file = files[i]; + if (file instanceof File && file.modified.getTime() < horizon) { + file.remove(); + } + } + } + + function dispatcherTick(state) { + try { + var inbox = new Folder(state.paths.inbox); + if (!inbox.exists) { + return; + } + var files = inbox.getFiles("*.request.json"); + files.sort(function (a, b) { + if (a.name < b.name) { + return -1; + } + if (a.name > b.name) { + return 1; + } + return 0; + }); + // One request per tick: the channel contract is strictly serial, so a + // long operation can never overlap the next claim. Files that are not + // dispatcher requests (other writers, stale names) are skipped, never + // allowed to stall the queue. + for (var i = 0; i < files.length; i++) { + var file = files[i]; + if (!(file instanceof File)) { + continue; + } + var match = /^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\.request\.json$/.exec(file.name); + if (match === null) { + continue; + } + var id = match[1]; + // Target binding (#145): a request that names a dispatcher instance + // is claimed only by that instance. Two After Effects can share one + // channel; without this check the first poller would run — or refuse + // — work addressed to the other. The file is left in place for the + // dispatcher it names; an unreadable file falls through to the + // claim path, which reports it as a refusal. + try { + var peek = state.codec.parse(readTextFile(file.fsName)); + if ( + peek !== null && + typeof peek === "object" && + typeof peek.target === "string" && + peek.target !== state.instance + ) { + continue; + } + } catch (peekError) { + // Malformed JSON is the claim path's refusal to report, not ours. + } + // Claim before running: a host restart cannot replay a claimed + // operation, and a second dispatcher cannot take the same file. + if (!file.rename(id + ".claimed")) { + continue; + } + var claimed = new File(inbox.fsName + "/" + id + ".claimed"); + var began = new Date().getTime(); + var reply; + try { + reply = runDispatcherRequest(state, claimed, id); + } catch (failure) { + reply = { + v: 1, + id: id, + ok: false, + durationMs: new Date().getTime() - began, + error: toErrorPayload(failure) + }; + } + try { + publishResult( + state.paths.outbox + "/" + id + ".result.json", + state.codec.stringify(reply) + ); + } catch (publishError) { + // The caller times out UNKNOWN; do not retry a claimed request. + } + claimed.remove(); + break; + } + state.ticks += 1; + if (state.ticks % DISPATCHER_STATE_EVERY === 0) { + writeDispatcherState(state); + sweepDispatcherOutbox(state); + } + } catch (tickError) { + // A scheduled task must never raise a modal dialog while the user + // works. With no state update the Node side reports UNKNOWN. + } + } + + function startDispatcher(config) { + if ($.global.__a8nDispatcherTask !== undefined) { + throw new Error( + "ae-a8n dispatcher is already active in this After Effects; " + + "refusing a second dispatcher" + ); + } + var codec = loadJson(); + var root = new Folder(String(config.root)); + // ExtendScript's Folder has no `isDirectory` (observed on AE 26.5 — the + // fake Folder models one, which is why only the real host tripped this). + // `exists` plus the inbox/outbox checks below are the real contract: a + // plain file at the root fails there with a clearer error anyway. + if (!root.exists) { + throw new Error("ae-a8n dispatcher: channel root is not a directory: " + String(config.root)); + } + var paths = dispatcherPaths(root.fsName); + var inbox = new Folder(paths.inbox); + var outbox = new Folder(paths.outbox); + if (!inbox.exists || !outbox.exists) { + throw new Error("ae-a8n dispatcher: channel folders are missing; prepare the channel first"); + } + var token = String(config.token); + if (!/^[a-f0-9]{64}$/.test(token)) { + throw new Error("ae-a8n dispatcher: channel token is malformed"); + } + var pollMs = config.pollMs; + if (typeof pollMs !== "number" || !isFinite(pollMs)) { + pollMs = DISPATCHER_POLL_MS; + } + if (pollMs < DISPATCHER_MIN_POLL_MS) { + pollMs = DISPATCHER_MIN_POLL_MS; + } + if (pollMs > DISPATCHER_MAX_POLL_MS) { + pollMs = DISPATCHER_MAX_POLL_MS; + } + if (typeof app.scheduleTask !== "function") { + throw new Error("ae-a8n dispatcher: this After Effects has no app.scheduleTask"); + } + var state = { + codec: codec, + paths: paths, + token: token, + pollMs: pollMs, + instance: + "i" + + new Date().getTime().toString(16) + + Math.floor(Math.random() * 0xffffff).toString(16), + activatedAt: new Date().getTime(), + ticks: 0, + // Fixed here, once: whatever `__a8n.extensions` holds right now is + // what this dispatcher will answer for its whole life. A host script + // built without the extension prelude leaves both empty/null. + extensionMethods: registeredExtensionNames(), + extensionsRegistration: extensionRegistration(), + // The function snapshot dispatch actually resolves against (#146): + // the heartbeat's names and this table are captured together, so a + // later mutation of `__a8n.extensions` cannot widen the answer set. + extensionFunctions: snapshotExtensionFunctions() + }; + var tick = function () { + dispatcherTick(state); + }; + // The scheduled string names the global, so the function must be there + // before the first fire — pollMs later at the earliest. + $.global.__a8nDispatcherTick = tick; + $.global.__a8nDispatcherTask = app.scheduleTask( + "$.global.__a8nDispatcherTick()", + pollMs, + true + ); + writeDispatcherState(state); + } + + // The branch check must run inside a named function called plainly, not + // at the IIFE's top level: on real ExtendScript `this` inside + // `(function(){})()` is the function itself, not the global object + // (observed on AE 26.5/27.0 — the fake vm runtime cannot reproduce this). + // Inside a named function `this` is the global object, the same contract + // `main()` and the extension prelude already rely on. Evaluating + // `this.__a8n` here would always miss and silently fall into `main()`. + function boot() { + var __a8nEntry = this.__a8n; + if ( + __a8nEntry !== undefined && + __a8nEntry !== null && + __a8nEntry.dispatcher !== undefined && + __a8nEntry.dispatcher !== null + ) { + startDispatcher(__a8nEntry.dispatcher); + } else { + main(); + } + } + boot(); +})(); diff --git a/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/ae-a8n-0.2.0.tgz b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/ae-a8n-0.2.0.tgz new file mode 100644 index 00000000..e3f1dca1 Binary files /dev/null and b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/ae-a8n-0.2.0.tgz differ diff --git a/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/cli-doctor.json b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/cli-doctor.json new file mode 100644 index 00000000..86618aeb --- /dev/null +++ b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/cli-doctor.json @@ -0,0 +1,253 @@ +{ + "schema": "ae-devtools.cli.doctor/v1", + "node": "v26.13.1", + "platform": "darwin/arm64", + "devloopSchema": "ae-devtools.dev-loop/v1", + "aeA8n": { + "resolvable": true, + "source": "npm:@ido-bata/ae-a8n", + "version": "0.2.0", + "contractOk": true, + "missing": [], + "checks": [ + { + "id": "negotiation.compatible", + "ok": true + }, + { + "id": "negotiation.client-older-minor", + "ok": true + }, + { + "id": "negotiation.incompatible-major", + "ok": true + }, + { + "id": "negotiation.unsupported-minor", + "ok": true + }, + { + "id": "negotiation.malformed-schema", + "ok": true + }, + { + "id": "negotiation.requested-capability-compatible", + "ok": true + }, + { + "id": "negotiation.unknown-capability", + "ok": true + }, + { + "id": "negotiation.capability-unassessed", + "ok": true + }, + { + "id": "negotiation.missing-permission", + "ok": true + }, + { + "id": "dispatch.pass-owned", + "ok": true + }, + { + "id": "dispatch.pass-explicitly-attached", + "ok": true + }, + { + "id": "dispatch.refuse-unknown-ownership", + "ok": true + }, + { + "id": "dispatch.refuse-contradictory-claim", + "ok": true + }, + { + "id": "dispatch.refuse-unverified", + "ok": true + }, + { + "id": "dispatch.refuse-not-implemented", + "ok": true + }, + { + "id": "dispatch.refuse-no-execution-path", + "ok": true + }, + { + "id": "dispatch.refuse-missing-permission", + "ok": true + }, + { + "id": "dispatch.refuse-no-permission-declared", + "ok": true + }, + { + "id": "dispatch.refuse-unknown-capability", + "ok": true + }, + { + "id": "dispatch.refuse-unassessed", + "ok": true + }, + { + "id": "dispatch.refuse-malformed", + "ok": true + } + ], + "required": "ae-a8n capability handshake (ae-a8n#102), which post-dates the ae-a8n#103 extension-prelude and ae-a8n#105 LaunchServices fixes" + }, + "aeInstalls": [ + "/Applications/Adobe After Effects 2026", + "/Applications/Adobe After Effects 2027" + ], + "a8nTransportPresent": true, + "runsDir": "/var/folders/1l/fmlzfnk57zndv1pxwwkw6xrc0000gn/T/ae-devtools-cli-runs", + "runs": [ + { + "runId": "run-2026-11-20T12-13-19-501Z-16437323", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T12-13-28-112Z-0c18551d", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T12-24-42-140Z-a7f95a54", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T15-05-42-702Z-0751884c", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T15-09-23-878Z-26656cd6", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T15-09-27-848Z-bd51d081", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T15-09-34-676Z-c35c8151", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T15-10-17-411Z-7978b47b", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T15-10-50-445Z-e549e3a8", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T15-12-08-740Z-5e49a39f", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T15-13-14-138Z-657e6ce0", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T16-37-11-846Z-0d05a36c", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T16-37-13-037Z-a30e1123", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T16-55-08-444Z-b8fd131f", + "status": "open", + "sessionKind": "a8n", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "NO_A8N_ATTESTATION", + "ownership": "owned" + }, + { + "runId": "run-2026-11-20T17-23-01-561Z-8a0af1d7", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T18-40-53-034Z-60c06fe2", + "status": "open-failed", + "sessionKind": "a8n", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + } + ], + "evidenceLevel": "environment probe only — no AE was contacted" +} diff --git a/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/cli-project-open.json b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/cli-project-open.json new file mode 100644 index 00000000..d4e43515 --- /dev/null +++ b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/cli-project-open.json @@ -0,0 +1,41 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T19-24-33-111Z-b4127b2a", + "command": "execute", + "sourceSha": "8952266b8b045dead219c5b808346f23776c4e87", + "sourceDirty": false, + "opId": "project.open", + "requestId": "req-run-2026-11-20T19-24-33-111Z-b4127b2a-project.open", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "at": "2026-11-20T19:24:38.961Z", + "result": { + "requestId": "req-run-2026-11-20T19-24-33-111Z-b4127b2a-project.open", + "operationId": "project.open", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "project": "/tmp/run-028/Conformance-Disposable.aep" + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "project.open", + "mutating": true, + "destructive": true + }, + "outcome": "COMPLETED", + "cleanup": { + "attempted": true, + "ok": true, + "error": null, + "quit": null + } +} diff --git a/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/harness-mcp-real-run.mjs b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/harness-mcp-real-run.mjs new file mode 100644 index 00000000..1a318061 --- /dev/null +++ b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/harness-mcp-real-run.mjs @@ -0,0 +1,265 @@ +#!/usr/bin/env node +/** + * mcp-real-run.mjs — Issue #177 REAL-AE conformance run, MCP stdio lane. + * + * node packages/ae-devtools-cli/conformance/mcp-real-run.mjs \ + * --session a8n \ + * --install-dir "/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app" \ + * --fixture --out + * + * Drives mcp-server/server.mjs over stdio (NDJSON) against an OWNED AE + * session and records every frame. Same disposable-project contract as + * conformance/real-run.mjs: + * + * ae_discover → ae_verify (pre-state read-back) → + * ae_execute project.new (confirmDestructive) → + * ae_execute project.save → + * ae_execute item.addComp → ae_verify (read-back shows the comp) → + * ae_execute item.remove (confirmDestructive) → ae_verify (empty) + * + * The project is saved to --fixture before any mutation, so the open + * project IS the disposable fixture; after item.remove the project is + * back at its saved state and session close (unsavedChanges:"refuse") + * must quit cleanly — a refusal is recorded, never counted as pass. + * + * --fixture may be a directory (a Conformance-MCP-Disposable.aep is + * created inside it) or a direct .aep path. + * + * Replay: the archived harness-*.mjs copies under evidence/ resolve + * their imports (mcp-server/server.mjs, devtools-cli/*.mjs) against the + * repository checkout — replay requires the tree at the run's recorded + * sourceSha, not the evidence directory alone. + */ +import { existsSync, mkdirSync, statSync, writeFileSync } from "node:fs"; +import { dirname, join } from "node:path"; +import { fileURLToPath } from "node:url"; + +import { arg } from "../devtools-cli/argv.mjs"; +import { spawnMcpStdio, withTimeout } from "../devtools-cli/real-run-kit.mjs"; + +const HERE = dirname(fileURLToPath(import.meta.url)); +const CLI = join(HERE, ".."); + +const session = arg("--session") ?? "a8n"; +const fixtureArg = arg("--fixture"); +if (!fixtureArg) { + console.error("usage: mcp-real-run.mjs --fixture [--session a8n] [--install-dir ] [--out ]"); + process.exit(2); +} +const fixturePath = statSync(fixtureArg, { throwIfNoEntry: false })?.isDirectory() + ? join(fixtureArg, "Conformance-MCP-Disposable.aep") + : fixtureArg; +mkdirSync(dirname(fixturePath), { recursive: true }); + +const OUT = arg("--out") ?? join(process.cwd(), `mcp-conformance-${Date.now()}.jsonl`); +const log = []; +const rec = (o) => { + log.push({ t: new Date().toISOString(), ...o }); + writeFileSync(OUT, JSON.stringify(log, null, 2)); +}; + +const serverArgs = ["mcp-server/server.mjs", "--session", session]; +const installDir = arg("--install-dir"); +if (installDir) serverArgs.push("--install-dir", installDir); + +// NDJSON stdio client harness shared with mcp-server/real-run.mjs +// (Issue #197). +// A recorded `fatal` is a failed conformance run — exit nonzero so +// callers/CI cannot read it as success (same contract as +// mcp-server/real-run.mjs, Issue #234). The JSONL remains the +// verdict record either way. +let fatal = false; +const { child, send, notify, call } = spawnMcpStdio({ + scriptArgs: serverArgs, + cwd: CLI, + onRecord: rec, + onStderr: (d) => rec({ stderr: d.slice(0, 800) }), +}); + +const COMP_NAME = "MCP Conformance Comp"; +const results = {}; +const recordToolResult = (tag, msg) => { + const text = msg?.result?.content?.[0]?.text; + let parsed = null; + try { parsed = text ? JSON.parse(text) : null; } catch { /* keep raw */ } + results[tag] = { + isError: msg?.result?.isError === true || msg?.error !== undefined, + outcome: parsed?.outcome ?? parsed?.status ?? null, + session: parsed?.session ?? null, + result: parsed?.result ?? parsed ?? null, + }; + rec({ stepResult: tag, ...results[tag] }); +}; + +try { + rec({ step: "initialize", argv: serverArgs, fixturePath }); + const init = await withTimeout( + send("initialize", { + protocolVersion: "2024-11-05", + capabilities: {}, + clientInfo: { name: "ae-devtools-conformance", version: "0" }, + }), + 30000, + "init", + ); + notify("notifications/initialized"); + rec({ step: "initialized", serverInfo: init?.result?.serverInfo ?? null }); + + rec({ step: "ae_discover" }); + recordToolResult("ae_discover", await withTimeout(call("ae_discover", {}), 60000, "discover")); + + // Pre-state read-back: whatever project AE restored is observed, + // never mutated — project.new replaces it only if it is clean. When + // this read does not COMPLETE, the pre-mutation project identity is + // unknown and mutation must not proceed (same fail-closed rule as + // real-run.mjs's identity gate). + rec({ step: "ae_verify.pre-state" }); + recordToolResult("ae_verify.pre", await withTimeout(call("ae_verify", { consent: "grant" }), 300000, "verify-pre")); + const preRead = results["ae_verify.pre"]; + if (!preRead || preRead.isError || preRead.outcome !== "COMPLETED") { + throw new Error( + `pre-mutation identity read-back did not complete (isError=${preRead?.isError === true}, outcome=${preRead?.outcome ?? "missing"}); refusing to mutate`, + ); + } + + rec({ step: "ae_execute.project.new (launches owned AE)" }); + recordToolResult("project.new", await withTimeout( + call("ae_execute", { opId: "project.new", args: {}, consent: "grant", confirmDestructive: true }), + 300000, + "project.new", + )); + // A failed project.new/project.save leaves the pre-mutation project + // identity unverified — every later step would mutate an unknown + // project. Fail closed before the first content mutation. + const gateMutation = (tag) => { + const r = results[tag]; + if (!r || r.isError || r.outcome !== "COMPLETED") { + throw new Error( + `${tag} did not complete (isError=${r?.isError === true}, outcome=${r?.outcome ?? "missing"}); refusing to mutate`, + ); + } + }; + gateMutation("project.new"); + + rec({ step: "ae_execute.project.save" }); + recordToolResult("project.save", await withTimeout( + call("ae_execute", { opId: "project.save", args: { path: fixturePath }, consent: "grant" }), + 120000, + "project.save", + )); + gateMutation("project.save"); + + rec({ step: "ae_execute.item.addComp" }); + recordToolResult("item.addComp", await withTimeout( + call("ae_execute", { + opId: "item.addComp", + args: { name: COMP_NAME, width: 1920, height: 1080, pixelAspect: 1, duration: 5, frameRate: 30 }, + consent: "grant", + }), + 120000, + "addComp", + )); + + rec({ step: "ae_verify.readback" }); + recordToolResult("ae_verify.readback", await withTimeout(call("ae_verify", { consent: "grant" }), 120000, "verify")); + + rec({ step: "ae_execute.item.remove" }); + recordToolResult("item.remove", await withTimeout( + call("ae_execute", { + opId: "item.remove", + args: { name: COMP_NAME, type: "CompItem" }, + consent: "grant", + confirmDestructive: true, + }), + 120000, + "item.remove", + )); + + rec({ step: "ae_verify.final" }); + recordToolResult("ae_verify.final", await withTimeout(call("ae_verify", { consent: "grant" }), 120000, "verify-final")); + + // item.remove leaves AE's dirty flag set even though content matches + // the saved fixture — re-save so session close can quit cleanly. + rec({ step: "ae_execute.project.save.resave" }); + recordToolResult("project.save.resave", await withTimeout( + call("ae_execute", { opId: "project.save", args: { path: fixturePath }, consent: "grant" }), + 120000, + "project.save.resave", + )); +} catch (e) { + fatal = true; + rec({ fatal: String(e?.message ?? e) }); +} finally { + // SIGTERM runs the server's shutdown path: session.close() + // (unsavedChanges:"refuse") — a clean disposable project quits; a + // refusal is recorded on stderr, never hidden. Success requires a + // CONFIRMED exit — a still-running child after SIGKILL is a failed + // run, not a pass. + child.kill("SIGTERM"); + await new Promise((r) => setTimeout(r, 15000)); + let shutdownConfirmed = child.exitCode !== null || child.signalCode !== null; + let forcedKill = false; + if (!shutdownConfirmed) { + try { child.kill("SIGKILL"); forcedKill = true; } catch {} + await new Promise((r) => setTimeout(r, 3000)); + shutdownConfirmed = child.exitCode !== null || child.signalCode !== null; + } + // A child that only exits because SIGKILL destroyed it did NOT shut + // down cleanly — session.close() (unsavedChanges:"refuse") never ran + // to completion. That is a failed run, not a confirmed cleanup. + const cleanShutdown = shutdownConfirmed && !forcedKill && child.signalCode !== "SIGKILL"; + rec({ step: "server.stopped", fixturePath, shutdownConfirmed, cleanShutdown, forcedKill, results }); + if (!cleanShutdown) { + fatal = true; + rec({ fatal: shutdownConfirmed ? "MCP server child required SIGKILL — unclean shutdown" : "MCP server child did not exit after SIGTERM+SIGKILL" }); + } + + // Verdict: a recorded isError or a non-COMPLETED outcome is a failed + // conformance run — never a pass. Read-back lanes must also show the + // expected disposable-project state (comp present after addComp, + // absent after item.remove), not just a COMPLETED write outcome. + const failures = []; + const expectCompleted = [ + "ae_verify.pre", "project.new", "project.save", "item.addComp", + "ae_verify.readback", "item.remove", "ae_verify.final", + "project.save.resave", + ]; + for (const tag of expectCompleted) { + const r = results[tag]; + if (!r) { failures.push(`${tag}: missing result`); continue; } + if (r.isError) failures.push(`${tag}: isError=true`); + if (r.outcome !== "COMPLETED") failures.push(`${tag}: outcome=${r.outcome ?? "null"}`); + } + const discover = results.ae_discover; + if (!discover || discover.isError) failures.push("ae_discover: missing or isError"); + const itemsOf = (tag) => { + const r = results[tag]; + const payload = r?.result?.result ?? r?.result ?? null; + return Array.isArray(payload?.items) ? payload.items : null; + }; + const readbackItems = itemsOf("ae_verify.readback"); + if (readbackItems === null || + !readbackItems.some((i) => i && i.name === COMP_NAME)) { + failures.push("ae_verify.readback: comp not observed in project items"); + } + const finalItems = itemsOf("ae_verify.final"); + // The fixture was created EMPTY: a correct run must leave zero items. + // Checking only for COMP_NAME's absence would pass a project still + // holding unrelated leftovers (e.g. a stray "Other Comp"). + if (finalItems === null) { + failures.push("ae_verify.final: items unreadable after item.remove"); + } else if (finalItems.length !== 0) { + failures.push(`ae_verify.final: ${finalItems.length} item(s) remain (expected empty fixture)`); + } + // Verdict and exit status must share ONE failure state: an unconfirmed + // or SIGKILL-forced shutdown recorded above is a failed run, never a + // "pass" verdict with a nonzero exit. + if (!cleanShutdown) failures.push("server.stopped: shutdown was not a confirmed clean exit"); + if (failures.length > 0) { + fatal = true; + rec({ verdict: "fail", failures }); + } else { + rec({ verdict: "pass" }); + } + process.exit(fatal ? 1 : 0); +} diff --git a/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/harness-real-run.mjs b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/harness-real-run.mjs new file mode 100644 index 00000000..175ba674 --- /dev/null +++ b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/harness-real-run.mjs @@ -0,0 +1,567 @@ +#!/usr/bin/env node +/** + * real-run.mjs — Issue #177 minimal REAL-AE conformance run. + * + * node packages/ae-devtools-cli/conformance/real-run.mjs \ + * --install-dir "/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app" \ + * --workdir --out + * + * ONE owned AE session (registry @ido-bata/ae-a8n — never --ae-a8n-root) + * drives every lane so the disposable-project guarantee covers all of + * them: + * + * 0. provenance — sourceSha, ae-a8n source/version, AE install, + * generated host script copied out before close + * 1. identity — eval read of app.version / project.file / + * numItems / project.dirty BEFORE any mutation; + * dirty===true aborts (never discard user changes) + * 2. disposable — project.new → project.save(/fixture.aep) + * → identity re-read must show file==fixture and + * numItems==0, otherwise the run fails closed + * 3. cli-path — registry ops via dev-loop runOperation (the same + * dispatch path devtools-cli execute uses): + * read.projectSummary → item.addComp → + * read.projectSummary (read-back) → ae.undo → + * read.projectSummary → item.addComp#2 → + * item.remove → read.projectSummary + * 4. jsx lane — jsx-toolchain buildFile(ok.ts) dispatch + + * $.global read-back; runtime-error.ts dispatch → + * FAILED → sourcemap → TS source line + * 5. a8n slice — runVerticalSlice + assertSliceOutcomes (the + * Issue #49 read-only consent/transport scenario) + * 6. timeout — $.sleep dispatch under a short-deadline runner + * must classify UNKNOWN and never resend + * 7. close — session.close({unsavedChanges:"refuse"}) must + * quit:true; the project is provably back at its + * saved state, so a refusal is a FAILED run, not + * a pass. Main-AE process must be gone afterwards. + * + * Consent is a LOCAL POLICY (approve-all for this harness), identical + * in strength to a8n-transport/scenario.mjs — it exercises gate + * mechanics, not authenticated authorization (ae-a8n #97–#99). + */ +import { createHash } from "node:crypto"; +import { + copyFileSync, + existsSync, + mkdirSync, + mkdtempSync, + readFileSync, + writeFileSync, +} from "node:fs"; +import { tmpdir } from "node:os"; +import { dirname, join, resolve } from "node:path"; + +import { openRealRunSession } from "../dev-loop/real-run-session.mjs"; +import { runVerticalSlice, assertSliceOutcomes } from "../a8n-transport/scenario.mjs"; +import { createJsxRunner } from "../trusted-execution/runner.mjs"; +import { runOperation } from "../scripting-adapters/execute.mjs"; +import { buildFile } from "../jsx-toolchain/src/build.mjs"; +import { lookup } from "../jsx-toolchain/src/sourcemap.mjs"; +import { arg } from "../devtools-cli/argv.mjs"; +import { isMainEntry } from "../devtools-cli/is-main-entry.mjs"; +import { + MAIN_EXE, + aeProcessSnapshot, + createEvalDispatch, + gitHeadAndDirty, +} from "../devtools-cli/real-run-kit.mjs"; + +const HERE = dirname(new URL(import.meta.url).pathname); +const FIXTURES = join(HERE, "..", "jsx-toolchain", "fixtures"); + +const EVAL_OP = "op.a8n-transport.eval"; +const PROJECT_IDENTITY_PRE = "conformance-pre-disposable"; + +function sha256File(path) { + return createHash("sha256").update(readFileSync(path)).digest("hex"); +} + +export async function main() { + const installDir = arg("--install-dir"); + const out = arg("--out") ?? join(process.cwd(), `conformance-run-${Date.now()}.json`); + const workdir = arg("--workdir") ?? mkdtempSync(join(tmpdir(), "ae-conformance-")); + const fixturePath = join(workdir, "Conformance-Disposable.aep"); + const hostScriptCopy = join(workdir, "a8n-host-ext.js"); + const processFragment = installDir ?? "Adobe After Effects"; + const startedAt = new Date().toISOString(); + + const evidence = { + schema: "ae-devtools.conformance-run/v1", + issue: 177, + startedAt, + platform: `${process.platform}/${process.arch}`, + node: process.version, + installDir: installDir ?? null, + workdir, + fixturePath, + git: await gitHeadAndDirty(HERE), + consentModel: "local approve-all policy (gate mechanics only; not authenticated authorization)", + aeProcessesBeforeLaunch: await aeProcessSnapshot(processFragment), + steps: [], + ok: true, + }; + const step = (name, data = {}) => { + evidence.steps.push({ name, at: new Date().toISOString(), ...data }); + console.log(`${data.ok === false ? "FAIL" : "ok"} ${name}`); + if (data.ok === false) evidence.ok = false; + }; + + let session = null; + let guard = null; + const opResults = {}; + const evalResults = {}; + try { + // Canonical session open + run-guard marker (Issue #252): a killed + // driver leaves an attested, reap/recover-visible residue record. + // The raw slice handle stays available as `session` for internals. + const opened = await openRealRunSession({ + surface: "conformance-real-run", + argv: process.argv.slice(2), + sessionOptions: { + ...(installDir !== undefined ? { installDir } : {}), + workdir: join(workdir, "session"), + }, + }); + guard = opened.guard; + session = opened.slice; + step("session.launch", { + ok: true, + aeVersion: session.info?.version ?? null, + aeBuild: session.info?.build ?? null, + ownership: session.ownership?.kind ?? null, + aeA8nSource: session.aeA8nSource, + aeA8nHead: session.aeA8nHead, + }); + // Keep the generated host script + trace: session.close() deletes + // the session workdir, so copy them out first. + const wsHostScript = join(workdir, "session", "a8n-host-ext.js"); + if (existsSync(wsHostScript)) { + copyFileSync(wsHostScript, hostScriptCopy); + evidence.hostScriptSha256 = sha256File(hostScriptCopy); + evidence.hostScriptCopy = hostScriptCopy; + } + + // ---- eval dispatch helper (consent scope bound to exact source) ---- + // Shared wrapper (Issue #197): the consent scope and the runScript + // args shape are hashed together inside runner.mjs, so one builder + // keeps them from drifting. projectIdentity is read lazily — it is + // re-bound after project.new/project.save below. + let projectIdentity = PROJECT_IDENTITY_PRE; + const evalDispatchRaw = createEvalDispatch({ + runner: session.runner, + pin: session.pin, + projectIdentity: () => projectIdentity, + operationId: EVAL_OP, + scriptProvenance: "conformance-run", + }); + const evalDispatch = async (label, source) => { + const r = await evalDispatchRaw(source, `conf-eval-${label}-${Date.now().toString(36)}`); + evalResults[label] = r; + return r; + }; + + // ---- op dispatch helper (dev-loop runOperation = CLI path) ---- + const opSeq = { n: 0 }; + const op = async (opId, args = {}, extra = {}) => { + const label = `${opId}#${++opSeq.n}`; + const r = await runOperation({ + opId, + args, + runner: session.runner, + pin: session.pin, + projectIdentity, + consentProvider: async () => ({ approved: true }), + trustedScriptOptIn: true, + scriptProvenance: "conformance-run", + requestId: `conf-op-${label}-${Date.now().toString(36)}`, + ...extra, + }); + opResults[label] = r; + return r; + }; + + const IDENTITY_SOURCE = + "(function(){var f=app.project.file;var d=(typeof app.project.dirty===\"boolean\")?String(app.project.dirty):\"unsupported\";" + + // The file path is percent-encoded: a raw fsName may itself + // contain "|" or look like a "V:/N:/D:" field, which would make + // the delimiter parse ambiguous. encodeURIComponent output can + // never contain the "|" separator. + "return \"V:\"+String(app.version)+\"|F:\"+(f?encodeURIComponent(f.fsName):\"\")+\"|N:\"+String(app.project.numItems)+\"|D:\"+d;})()"; + const parseIdentity = (result) => { + const s = typeof result === "string" ? result : ""; + const get = (k) => { + const m = s.match(new RegExp(`${k}:([^|]*)`)); + return m ? m[1] : null; + }; + const rawFile = get("F"); + let file = null; + if (rawFile !== null) { + try { file = rawFile === "" ? "" : decodeURIComponent(rawFile); } + catch { file = null; } // undecodable path -> fail closed downstream + } + return { version: get("V"), file, items: get("N"), dirty: get("D"), raw: s }; + }; + + // ---- 1. project identity BEFORE any mutation ---- + const id1 = await evalDispatch("identity.before", IDENTITY_SOURCE); + const before = parseIdentity(id1.result); + // The disposable gate below is only as safe as this read: when the + // identity probe did not COMPLETE, before.* fields are null and the + // gate cannot prove the restored project is untouched — proceeding + // to project.new could destroy user state. Fail closed instead. + const identityReadOk = id1.outcome === "COMPLETED" && before.file !== null; + step("identity.before", { + ok: identityReadOk, + outcome: id1.outcome, + project: before, + }); + evidence.projectBefore = before; + if (!identityReadOk) { + throw new Error( + `project identity read did not complete (outcome=${id1.outcome}); refusing to proceed toward mutation`, + ); + } + + // ---- 2. disposable project gate ---- + // app.newProject() prompts to save when the current project was + // edited (Adobe Scripting Guide). dirty===true means the restored + // project carries unsaved state — abort rather than risk a modal or + // a discard. dirty unsupported is tolerated ONLY for an untouched + // untitled empty project (file=="" && items=="0"): nothing user-owned + // can be lost there. + const disposableDecision = + before.dirty === "true" + ? { proceed: false, reason: "restored project reports unsaved changes (dirty=true); refusing to touch it" } + : before.dirty === "unsupported" && !(before.file === "" && before.items === "0") + ? { proceed: false, reason: "project.dirty unsupported and project is not an empty untitled project; cannot prove safe" } + : { proceed: true, reason: `dirty=${before.dirty}, file='${before.file}', items=${before.items}` }; + step("disposable.gate", { ok: disposableDecision.proceed, decision: disposableDecision }); + evidence.disposableDecision = disposableDecision; + if (!disposableDecision.proceed) { + throw new Error(`disposable gate refused: ${disposableDecision.reason}`); + } + + // The dirty/file/items read above and the app.newProject() mutation + // below are separate dispatches — project state could in principle + // change in between. True atomicity is impossible without a + // host-side precondition inside the op itself, so re-read identity + // immediately before mutating and require it UNCHANGED; any drift + // aborts fail-closed. (Owned session: no user input can intervene, + // this guards harness/AE-side state transitions only.) + const idRecheck = await evalDispatch("identity.recheck", IDENTITY_SOURCE); + const recheck = parseIdentity(idRecheck.result); + const unchanged = + idRecheck.outcome === "COMPLETED" && + recheck.file === before.file && + recheck.items === before.items && + recheck.dirty === before.dirty; + step("identity.recheck", { + ok: unchanged, + outcome: idRecheck.outcome, + project: recheck, + }); + evidence.projectRecheck = recheck; + if (!unchanged) { + throw new Error( + `project identity changed between gate and mutation (before file='${before.file}' items=${before.items} dirty=${before.dirty}; recheck file='${recheck.file}' items=${recheck.items} dirty=${recheck.dirty}); refusing to mutate`, + ); + } + + const rNew = await op("project.new", {}, { confirmDestructive: true }); + step("op.project.new", { + ok: rNew.outcome === "COMPLETED", + outcome: rNew.outcome, + status: rNew.status ?? null, + result: rNew.result ?? null, + }); + if (rNew.outcome !== "COMPLETED") { + throw new Error(`project.new did not complete: ${JSON.stringify(rNew).slice(0, 400)}`); + } + + const rSave = await op("project.save", { path: fixturePath }); + step("op.project.save", { + ok: rSave.outcome === "COMPLETED", + outcome: rSave.outcome, + result: rSave.result ?? null, + fixturePath, + }); + if (rSave.outcome !== "COMPLETED") { + throw new Error(`project.save did not complete: ${JSON.stringify(rSave).slice(0, 400)}`); + } + + projectIdentity = `conformance-fixture:${fixturePath}`; + const id2 = await evalDispatch("identity.fixture", IDENTITY_SOURCE); + const fixtureIdent = parseIdentity(id2.result); + const disposableOk = + id2.outcome === "COMPLETED" && + fixtureIdent.file === fixturePath && + fixtureIdent.items === "0"; + step("identity.fixture", { + ok: disposableOk, + outcome: id2.outcome, + project: fixtureIdent, + expectedFile: fixturePath, + }); + evidence.projectFixture = fixtureIdent; + if (!disposableOk) { + throw new Error( + `disposable project not confirmed: file='${fixtureIdent.file}' items=${fixtureIdent.items} (expected '${fixturePath}' / 0)`, + ); + } + evidence.fixtureSha256 = existsSync(fixturePath) ? sha256File(fixturePath) : null; + + // ---- 3. cli-path registry ops (dev-loop runOperation) ---- + const baseline = await op("read.projectSummary"); + step("op.read.projectSummary.baseline", { + ok: baseline.outcome === "COMPLETED", + outcome: baseline.outcome, + result: baseline.result ?? null, + }); + + const add1 = await op("item.addComp", { + name: "Conformance QA Comp", + width: 320, height: 240, pixelAspect: 1, duration: 5, frameRate: 30, + }); + step("op.item.addComp", { + ok: add1.outcome === "COMPLETED", + outcome: add1.outcome, + result: add1.result ?? null, + }); + + const verify1 = await op("read.projectSummary"); + const verify1Items = verify1.result?.items ?? null; + const sawComp = Array.isArray(verify1Items) && + verify1Items.some((i) => i && i.name === "Conformance QA Comp"); + step("op.read.projectSummary.readback", { + ok: verify1.outcome === "COMPLETED" && sawComp === true, + outcome: verify1.outcome, + sawComp, + items: verify1Items, + }); + + // undo dimension: Edit > Undo must remove exactly the comp we added. + let undoOutcome = null; + try { + const u = await session.ae.undo(); + undoOutcome = { ok: true, result: u ?? null }; + } catch (error) { + undoOutcome = { ok: false, error: error instanceof Error ? error.message : String(error) }; + } + const afterUndo = await op("read.projectSummary"); + const undoClean = + afterUndo.outcome === "COMPLETED" && + Array.isArray(afterUndo.result?.items) && + afterUndo.result.items.length === 0; + step("ae.undo", { + ok: undoOutcome.ok === true && undoClean, + undo: undoOutcome, + outcome: afterUndo.outcome, + itemsAfter: afterUndo.result?.items ?? null, + }); + evidence.undo = { call: undoOutcome, readbackEmpty: undoClean }; + + // item.remove claim: second comp added then removed by name+type. + const add2 = await op("item.addComp", { + name: "Conformance Temp Comp", + width: 64, height: 64, pixelAspect: 1, duration: 1, frameRate: 30, + }); + step("op.item.addComp.second", { + ok: add2.outcome === "COMPLETED", + outcome: add2.outcome, + result: add2.result ?? null, + }); + const rem = await op("item.remove", { name: "Conformance Temp Comp", type: "CompItem" }, { confirmDestructive: true }); + step("op.item.remove", { + ok: rem.outcome === "COMPLETED", + outcome: rem.outcome, + result: rem.result ?? null, + }); + const finalSummary = await op("read.projectSummary"); + const finalClean = + finalSummary.outcome === "COMPLETED" && + Array.isArray(finalSummary.result?.items) && + finalSummary.result.items.length === 0; + step("op.read.projectSummary.final", { + ok: finalClean, + outcome: finalSummary.outcome, + items: finalSummary.result?.items ?? null, + }); + // Content is back at the saved state but AE's dirty flag stays set + // once the project was edited — re-save so close({unsavedChanges: + // "refuse"}) can quit. The fixture is disposable, so this is safe. + const rResave = await op("project.save", { path: fixturePath }); + step("op.project.save.resave", { + ok: rResave.outcome === "COMPLETED", + outcome: rResave.outcome, + result: rResave.result ?? null, + }); + evidence.projectOps = { + baseline: baseline.result ?? null, + addComp: add1.result ?? null, + readbackSawComp: sawComp, + undo: evidence.undo, + addComp2: add2.result ?? null, + remove: rem.result ?? null, + finalItems: finalSummary.result?.items ?? null, + }; + + // ---- 4. jsx toolchain lane ---- + const okBuild = buildFile(join(FIXTURES, "ok.ts")); + step("jsx.build.ok", { ok: okBuild.status === "ok", status: okBuild.status }); + if (okBuild.status === "ok") { + // Same consent-bound eval dispatch as the identity probes above — + // the shared wrapper (Issue #197) replaced the hand-built copy. + const jsxDispatch = evalDispatchRaw; + const j1 = await jsxDispatch(okBuild.output, `conf-jsx-ok-${Date.now().toString(36)}`); + step("jsx.dispatch.ok", { ok: j1.outcome === "COMPLETED", outcome: j1.outcome }); + const j2 = await jsxDispatch('"" + $.global.__toolchainProbe', `conf-jsx-read-${Date.now().toString(36)}`); + step("jsx.verify.global-write", { + ok: j2.outcome === "COMPLETED" && typeof j2.result === "string" && j2.result.includes("hello ae"), + observed: j2.result ?? null, + outcome: j2.outcome, + }); + + const badBuild = buildFile(join(FIXTURES, "runtime-error.ts")); + step("jsx.build.runtime-error", { ok: badBuild.status === "ok", status: badBuild.status }); + if (badBuild.status === "ok") { + const j3 = await jsxDispatch(badBuild.output, `conf-jsx-bad-${Date.now().toString(36)}`); + const hostLine = j3.error?.line ?? null; + const mapped = hostLine != null ? lookup(badBuild.map, hostLine, 1e9) : null; + step("jsx.dispatch.runtime-error", { + ok: j3.outcome === "FAILED", + outcome: j3.outcome, + hostError: j3.error?.message ?? null, + hostErrorName: j3.error?.name ?? null, + hostLine, + }); + step("jsx.sourcemap.to-source", { + ok: mapped != null && mapped.line === 3 && /runtime-error\.ts$/.test(mapped.source ?? ""), + mapped, + }); + evidence.jsx = { + okBuild: { status: okBuild.status, jsxBytes: okBuild.output?.length ?? 0 }, + dispatchOk: j1.outcome, + globalWrite: j2.result ?? null, + runtimeError: { + outcome: j3.outcome, + hostErrorName: j3.error?.name ?? null, + hostLine, + mapped, + }, + }; + } + } + + // ---- 5. a8n transport slice (Issue #49 scenario) ---- + const { steps: sliceSteps } = await runVerticalSlice({ + runner: session.runner, + pin: session.pin, + sendCount: session.transport.sendCount, + }); + evidence.sliceSteps = sliceSteps; + evidence.sliceViolations = assertSliceOutcomes(sliceSteps); + step("a8n.slice", { + ok: Array.isArray(evidence.sliceViolations) && evidence.sliceViolations.length === 0, + violations: evidence.sliceViolations, + outcomes: sliceSteps.map((s) => `${s.label}:${s.outcome}`), + }); + + // ---- 6. timeout dimension: deadline must yield UNKNOWN, no resend ---- + const shortRunner = createJsxRunner({ transport: session.transport, deadlineMs: 800 }); + const timeoutDispatch = createEvalDispatch({ + runner: shortRunner, + pin: session.pin, + projectIdentity: () => projectIdentity, + operationId: EVAL_OP, + scriptProvenance: "conformance-run", + }); + const t0 = Date.now(); + const timeoutRequestId = `conf-timeout-${Date.now().toString(36)}`; + const timeoutResult = await timeoutDispatch('$.sleep(2000); "slept"', timeoutRequestId); + evidence.timeoutProbe = { + outcome: timeoutResult.outcome, + contractOutcome: timeoutResult.contractOutcome ?? null, + retry: timeoutResult.retry ?? null, + elapsedMs: Date.now() - t0, + quarantined: shortRunner.isQuarantined(timeoutRequestId), + }; + step("timeout.probe", { + ok: timeoutResult.outcome === "UNKNOWN", + ...evidence.timeoutProbe, + }); + // Let the sleeping host script finish before close. + await new Promise((r) => setTimeout(r, 2500)); + + evidence.transportSends = session.transport.sendCount(); + evidence.opResultSummary = Object.fromEntries( + Object.entries(opResults).map(([k, v]) => [k, v.outcome ?? v.status ?? null]), + ); + evidence.evidenceLevel = "verified on real host"; + } catch (error) { + evidence.fatal = { + name: error instanceof Error ? error.name : "Error", + message: error instanceof Error ? error.message : String(error), + }; + step("fatal", { ok: false, message: evidence.fatal.message }); + evidence.ok = false; + } finally { + if (session) { + // Preserve the ae-a8n trace before close() removes the workdir. + try { + if (typeof session.tracePath === "string" && existsSync(session.tracePath)) { + const traceCopy = join(workdir, "trace.jsonl"); + copyFileSync(session.tracePath, traceCopy); + evidence.traceCopy = traceCopy; + evidence.traceSha256 = sha256File(traceCopy); + } + } catch { /* trace preservation is best-effort */ } + try { + await session.close(); + evidence.close = { quit: true }; + step("session.close", { ok: true }); + } catch (error) { + evidence.close = { + quit: false, + error: error instanceof Error ? error.message : String(error), + }; + step("session.close", { ok: false, message: evidence.close.error }); + evidence.ok = false; + } + // Settle the run marker with the CLI contract: "closed" removes + // it, "close-failed" keeps it as residue (Issue #252). + if (guard !== null) { + guard.end(evidence.close.quit === true ? "closed" : "close-failed"); + } + const after = await aeProcessSnapshot(processFragment); + evidence.aeProcessesAfterClose = after; + // aeProcessSnapshot returns {error} when `ps` itself fails — that + // is NOT proof of shutdown. An unverifiable snapshot must fail + // the run closed, never silently pass the quarantine check. + if (!Array.isArray(after)) { + evidence.sessionQuarantined = true; + evidence.quarantineReason = `AE process snapshot failed (${after?.error ?? "unknown"}); cannot prove session shutdown`; + evidence.ok = false; + } else { + const mainLeft = after.filter((p) => MAIN_EXE.test(p.args ?? "")); + if (mainLeft.length > 0) { + evidence.sessionQuarantined = true; + evidence.quarantineReason = `main AE process(es) survived close(): ${mainLeft.map((p) => p.pid).join(", ")}`; + evidence.ok = false; + } + } + } + evidence.finishedAt = new Date().toISOString(); + mkdirSync(dirname(out), { recursive: true }); + writeFileSync(out, JSON.stringify(evidence, null, 2) + "\n", "utf8"); + console.log(`evidence written: ${out}`); + } + if (evidence.ok === false) process.exitCode = 1; +} + +if (isMainEntry(import.meta.url)) { + main().catch((error) => { + console.error(`conformance real-run failed: ${error instanceof Error ? error.message : String(error)}`); + process.exitCode = 1; + }); +} diff --git a/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/mcp-stdio.jsonl b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/mcp-stdio.jsonl new file mode 100644 index 00000000..bc532511 --- /dev/null +++ b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/mcp-stdio.jsonl @@ -0,0 +1,3289 @@ +[ + { + "t": "2026-11-20T19:22:42.152Z", + "step": "initialize", + "argv": [ + "mcp-server/server.mjs", + "--session", + "a8n", + "--install-dir", + "/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app" + ], + "fixturePath": "/tmp/run-028/mcp/Conformance-MCP-Disposable.aep" + }, + { + "t": "2026-11-20T19:22:42.788Z", + "stderr": "mcp-server: ae-devtools-mcp@0.6.0 schema=ae-devtools.mcp/v1 session=a8n (stdio NDJSON; fake session = fake/mock evidence only)\n" + }, + { + "t": "2026-11-20T19:22:42.808Z", + "rx": { + "jsonrpc": "2.0", + "id": 1, + "result": { + "protocolVersion": "2024-11-05", + "capabilities": { + "tools": { + "listChanged": false + } + }, + "serverInfo": { + "name": "ae-devtools-mcp", + "version": "0.6.0" + }, + "instructions": "ae-devtools dev-loop tools. ae_execute/ae_verify require arguments.consent:\"grant\"; destructive ops need confirmDestructive:true, render ops confirmRender:true. Default session is the codec-faithful fake host — results are fake/mock evidence, not real AE." + } + } + }, + { + "t": "2026-11-20T19:22:42.809Z", + "step": "initialized", + "serverInfo": { + "name": "ae-devtools-mcp", + "version": "0.6.0" + } + }, + { + "t": "2026-11-20T19:22:42.809Z", + "step": "ae_discover" + }, + { + "t": "2026-11-20T19:22:42.840Z", + "rx": { + "jsonrpc": "2.0", + "id": 2, + "result": { + "content": [ + { + "type": "text", + "text": "{\n \"schema\": \"ae-devtools.dev-loop/v1\",\n \"evidenceLevel\": \"registry metadata — no dispatch\",\n \"operationCount\": 97,\n \"evidence\": {\n \"implemented\": 97,\n \"automatedTest\": 97,\n \"fakeMockVerified\": 97,\n \"realHostVerified\": 0,\n \"level\": \"fake/mock only\"\n },\n \"operations\": [\n {\n \"id\": \"project.new\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": true,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 1\n },\n {\n \"id\": \"project.open\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": true,\n \"requiresConfirm\": null,\n \"args\": [\n \"path\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"project.save\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"path\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"project.close\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": true,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 1\n },\n {\n \"id\": \"item.addComp\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"width\",\n \"height\",\n \"pixelAspect\",\n \"duration\",\n \"frameRate\",\n \"parentFolder\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"item.addFolder\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"parentFolder\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"item.remove\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": true,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"type\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"item.setParentFolder\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"type\",\n \"parentFolder\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"item.setSelected\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"type\",\n \"selected\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"comp.addNullLayer\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"layer.setTransformPosition\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"x\",\n \"y\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.reorder\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"to\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.setParent\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"parentName\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"layer.duplicate\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"read.projectSummary\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 10\n },\n {\n \"id\": \"read.projectTree\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 10\n },\n {\n \"id\": \"read.itemById\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"id\"\n ],\n \"memberCount\": 6\n },\n {\n \"id\": \"anim.setValue\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"value\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"anim.setKeyframe\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"keyIndex\",\n \"value\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"anim.setValueAtTime\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"time\",\n \"value\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"anim.setExpression\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"expression\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"effect.add\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"effectMatchName\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"render.queueComp\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"render.renderQueued\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": \"render\",\n \"args\": [],\n \"memberCount\": 1\n },\n {\n \"id\": \"read.compLayers\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 15\n },\n {\n \"id\": \"read.layerDetail\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 12\n },\n {\n \"id\": \"read.propertyValue\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"read.keyframes\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"read.renderQueueStatus\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 11\n },\n {\n \"id\": \"read.itemDetail\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 10\n },\n {\n \"id\": \"item.import\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"path\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"comp.duplicate\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"item.setLabel\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"type\",\n \"label\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.setTiming\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"startTime\",\n \"stretch\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.setState\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"solo\",\n \"shy\",\n \"locked\",\n \"label\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"anim.removeKeyframe\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"keyIndex\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"read.valueAtTime\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"time\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"render.setTimeSpan\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"timeSpanStart\",\n \"timeSpanDuration\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"render.removeFromQueue\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"layer.setAvState\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"audioEnabled\",\n \"threeDLayer\",\n \"motionBlur\",\n \"guideLayer\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"read.propertyDetail\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\"\n ],\n \"memberCount\": 12\n },\n {\n \"id\": \"anim.setExpressionEnabled\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"enabled\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"render.getOutputSettings\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 6\n },\n {\n \"id\": \"render.setOutputSetting\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"setting\",\n \"value\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"render.listTemplates\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"render.applyTemplate\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"templateName\"\n ],\n \"memberCount\": 9\n },\n {\n \"id\": \"render.saveTemplate\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"templateName\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"render.listOutputModules\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 10\n },\n {\n \"id\": \"render.addOutputModule\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"render.applyOutputModuleTemplate\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"moduleIndex\",\n \"templateName\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"render.saveOutputModuleTemplate\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"moduleIndex\",\n \"templateName\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"render.setOutputModuleOptions\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"moduleIndex\",\n \"file\",\n \"includeSourceXMP\",\n \"postRenderAction\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"item.setComment\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"type\",\n \"comment\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"comp.setResolutionFactor\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"resolutionFactor\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.addSolid\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\",\n \"width\",\n \"height\",\n \"pixelAspect\",\n \"color\",\n \"duration\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"layer.addText\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\",\n \"text\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.addCamera\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\",\n \"centerPoint\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"layer.addLight\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\",\n \"centerPoint\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"text.setText\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"text\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"text.setStyle\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"font\",\n \"fontSize\",\n \"justification\",\n \"fillColor\",\n \"tracking\",\n \"leading\"\n ],\n \"memberCount\": 8\n },\n {\n \"id\": \"text.readStyle\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 9\n },\n {\n \"id\": \"layer.addBoxText\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\",\n \"width\",\n \"height\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"text.setPaint\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"applyFill\",\n \"applyStroke\",\n \"strokeColor\",\n \"strokeWidth\",\n \"strokeOverFill\",\n \"autoLeading\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"text.setBoxMetrics\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"boxTextSize\",\n \"boxTextPos\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"text.setCharAttributes\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"baselineShift\",\n \"horizontalScale\",\n \"verticalScale\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"text.readDocument\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 31\n },\n {\n \"id\": \"layer.setLayerFlags\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"adjustmentLayer\",\n \"preserveTransparency\",\n \"collapseTransformation\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"layer.setInOutPoint\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"inPoint\",\n \"outPoint\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"read.footageDetail\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 15\n },\n {\n \"id\": \"item.setProxy\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"path\"\n ],\n \"memberCount\": 6\n },\n {\n \"id\": \"item.setProxyWithSequence\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"path\",\n \"forceAlphabetical\"\n ],\n \"memberCount\": 6\n },\n {\n \"id\": \"item.setProxyWithSolid\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"color\",\n \"solidName\",\n \"width\",\n \"height\",\n \"pixelAspect\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"item.setProxyWithPlaceholder\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"placeholderName\",\n \"width\",\n \"height\",\n \"frameRate\",\n \"duration\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"item.setProxyToNone\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"item.setUseProxy\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"useProxy\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"read.itemProxy\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"read.projectSettings\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 6\n },\n {\n \"id\": \"pref.get\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"section\",\n \"key\",\n \"type\",\n \"default\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"pref.set\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"section\",\n \"key\",\n \"type\",\n \"value\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"pref.delete\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": true,\n \"requiresConfirm\": null,\n \"args\": [\n \"section\",\n \"key\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"pref.saveToDisk\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 1\n },\n {\n \"id\": \"read.appInfo\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 6\n },\n {\n \"id\": \"anim.setInterpolation\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"keyIndex\",\n \"inType\",\n \"outType\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"anim.setTemporalEase\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"keyIndex\",\n \"inEase\",\n \"outEase\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"layer.setTrackMatte\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"matteLayerName\",\n \"matteType\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"layer.setTimeRemap\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"enabled\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"comp.setSettings\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"bgColor\",\n \"displayStartTime\",\n \"displayStartFrame\",\n \"shutterAngle\",\n \"shutterPhase\",\n \"motionBlur\",\n \"frameBlending\",\n \"draft3d\",\n \"hideShyLayers\",\n \"preserveNestedFrameRate\",\n \"dropFrame\"\n ],\n \"memberCount\": 11\n },\n {\n \"id\": \"read.compSettings\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 12\n },\n {\n \"id\": \"layer.replaceSource\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"footageName\",\n \"fixExpressions\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"render.duplicateQueueItem\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"marker.setLayerMarker\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"time\",\n \"comment\",\n \"chapter\",\n \"url\",\n \"frameTarget\",\n \"cuePointName\",\n \"duration\",\n \"eventCuePoint\",\n \"params\"\n ],\n \"memberCount\": 15\n },\n {\n \"id\": \"marker.setCompMarker\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"time\",\n \"comment\",\n \"chapter\",\n \"url\",\n \"frameTarget\",\n \"cuePointName\",\n \"duration\",\n \"eventCuePoint\",\n \"params\"\n ],\n \"memberCount\": 15\n },\n {\n \"id\": \"marker.readLayerMarkers\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 12\n },\n {\n \"id\": \"marker.readCompMarkers\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 12\n },\n {\n \"id\": \"layer.addShape\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"shape.readContents\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 8\n },\n {\n \"id\": \"shape.addPath\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"vertices\",\n \"inTangents\",\n \"outTangents\",\n \"closed\"\n ],\n \"memberCount\": 13\n }\n ]\n}" + } + ] + } + } + }, + { + "t": "2026-11-20T19:22:42.841Z", + "stepResult": "ae_discover", + "isError": false, + "outcome": null, + "session": null, + "result": { + "schema": "ae-devtools.dev-loop/v1", + "evidenceLevel": "registry metadata — no dispatch", + "operationCount": 97, + "evidence": { + "implemented": 97, + "automatedTest": 97, + "fakeMockVerified": 97, + "realHostVerified": 0, + "level": "fake/mock only" + }, + "operations": [ + { + "id": "project.new", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": true, + "requiresConfirm": null, + "args": [], + "memberCount": 1 + }, + { + "id": "project.open", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": true, + "requiresConfirm": null, + "args": [ + "path" + ], + "memberCount": 1 + }, + { + "id": "project.save", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "path" + ], + "memberCount": 1 + }, + { + "id": "project.close", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": true, + "requiresConfirm": null, + "args": [], + "memberCount": 1 + }, + { + "id": "item.addComp", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "width", + "height", + "pixelAspect", + "duration", + "frameRate", + "parentFolder" + ], + "memberCount": 3 + }, + { + "id": "item.addFolder", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "parentFolder" + ], + "memberCount": 3 + }, + { + "id": "item.remove", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": true, + "requiresConfirm": null, + "args": [ + "name", + "type" + ], + "memberCount": 1 + }, + { + "id": "item.setParentFolder", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "type", + "parentFolder" + ], + "memberCount": 4 + }, + { + "id": "item.setSelected", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "type", + "selected" + ], + "memberCount": 4 + }, + { + "id": "comp.addNullLayer", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 1 + }, + { + "id": "layer.setTransformPosition", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "x", + "y" + ], + "memberCount": 2 + }, + { + "id": "layer.reorder", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "to" + ], + "memberCount": 2 + }, + { + "id": "layer.setParent", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "parentName" + ], + "memberCount": 1 + }, + { + "id": "layer.duplicate", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 1 + }, + { + "id": "read.projectSummary", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [], + "memberCount": 10 + }, + { + "id": "read.projectTree", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [], + "memberCount": 10 + }, + { + "id": "read.itemById", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "id" + ], + "memberCount": 6 + }, + { + "id": "anim.setValue", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "value" + ], + "memberCount": 1 + }, + { + "id": "anim.setKeyframe", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "keyIndex", + "value" + ], + "memberCount": 1 + }, + { + "id": "anim.setValueAtTime", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "time", + "value" + ], + "memberCount": 1 + }, + { + "id": "anim.setExpression", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "expression" + ], + "memberCount": 4 + }, + { + "id": "effect.add", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "effectMatchName" + ], + "memberCount": 2 + }, + { + "id": "render.queueComp", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 2 + }, + { + "id": "render.renderQueued", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": "render", + "args": [], + "memberCount": 1 + }, + { + "id": "read.compLayers", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 15 + }, + { + "id": "read.layerDetail", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 12 + }, + { + "id": "read.propertyValue", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath" + ], + "memberCount": 4 + }, + { + "id": "read.keyframes", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath" + ], + "memberCount": 4 + }, + { + "id": "read.renderQueueStatus", + "domain": "animation-effects-render", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [], + "memberCount": 11 + }, + { + "id": "read.itemDetail", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name" + ], + "memberCount": 10 + }, + { + "id": "item.import", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "path" + ], + "memberCount": 2 + }, + { + "id": "comp.duplicate", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name" + ], + "memberCount": 3 + }, + { + "id": "item.setLabel", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "type", + "label" + ], + "memberCount": 2 + }, + { + "id": "layer.setTiming", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "startTime", + "stretch" + ], + "memberCount": 2 + }, + { + "id": "layer.setState", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "solo", + "shy", + "locked", + "label" + ], + "memberCount": 4 + }, + { + "id": "anim.removeKeyframe", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "keyIndex" + ], + "memberCount": 2 + }, + { + "id": "read.valueAtTime", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "time" + ], + "memberCount": 3 + }, + { + "id": "render.setTimeSpan", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "timeSpanStart", + "timeSpanDuration" + ], + "memberCount": 5 + }, + { + "id": "render.removeFromQueue", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 4 + }, + { + "id": "layer.setAvState", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "audioEnabled", + "threeDLayer", + "motionBlur", + "guideLayer" + ], + "memberCount": 4 + }, + { + "id": "read.propertyDetail", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath" + ], + "memberCount": 12 + }, + { + "id": "anim.setExpressionEnabled", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "enabled" + ], + "memberCount": 3 + }, + { + "id": "render.getOutputSettings", + "domain": "animation-effects-render", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 6 + }, + { + "id": "render.setOutputSetting", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "setting", + "value" + ], + "memberCount": 5 + }, + { + "id": "render.listTemplates", + "domain": "animation-effects-render", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 4 + }, + { + "id": "render.applyTemplate", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "templateName" + ], + "memberCount": 9 + }, + { + "id": "render.saveTemplate", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "templateName" + ], + "memberCount": 5 + }, + { + "id": "render.listOutputModules", + "domain": "animation-effects-render", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 10 + }, + { + "id": "render.addOutputModule", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 7 + }, + { + "id": "render.applyOutputModuleTemplate", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "moduleIndex", + "templateName" + ], + "memberCount": 7 + }, + { + "id": "render.saveOutputModuleTemplate", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "moduleIndex", + "templateName" + ], + "memberCount": 7 + }, + { + "id": "render.setOutputModuleOptions", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "moduleIndex", + "file", + "includeSourceXMP", + "postRenderAction" + ], + "memberCount": 7 + }, + { + "id": "item.setComment", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "type", + "comment" + ], + "memberCount": 2 + }, + { + "id": "comp.setResolutionFactor", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "resolutionFactor" + ], + "memberCount": 2 + }, + { + "id": "layer.addSolid", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "name", + "width", + "height", + "pixelAspect", + "color", + "duration" + ], + "memberCount": 1 + }, + { + "id": "layer.addText", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "name", + "text" + ], + "memberCount": 2 + }, + { + "id": "layer.addCamera", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "name", + "centerPoint" + ], + "memberCount": 1 + }, + { + "id": "layer.addLight", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "name", + "centerPoint" + ], + "memberCount": 1 + }, + { + "id": "text.setText", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "text" + ], + "memberCount": 2 + }, + { + "id": "text.setStyle", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "font", + "fontSize", + "justification", + "fillColor", + "tracking", + "leading" + ], + "memberCount": 8 + }, + { + "id": "text.readStyle", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 9 + }, + { + "id": "layer.addBoxText", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "name", + "width", + "height" + ], + "memberCount": 5 + }, + { + "id": "text.setPaint", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "applyFill", + "applyStroke", + "strokeColor", + "strokeWidth", + "strokeOverFill", + "autoLeading" + ], + "memberCount": 7 + }, + { + "id": "text.setBoxMetrics", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "boxTextSize", + "boxTextPos" + ], + "memberCount": 4 + }, + { + "id": "text.setCharAttributes", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "baselineShift", + "horizontalScale", + "verticalScale" + ], + "memberCount": 4 + }, + { + "id": "text.readDocument", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 31 + }, + { + "id": "layer.setLayerFlags", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "adjustmentLayer", + "preserveTransparency", + "collapseTransformation" + ], + "memberCount": 4 + }, + { + "id": "layer.setInOutPoint", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "inPoint", + "outPoint" + ], + "memberCount": 2 + }, + { + "id": "read.footageDetail", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name" + ], + "memberCount": 15 + }, + { + "id": "item.setProxy", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "path" + ], + "memberCount": 6 + }, + { + "id": "item.setProxyWithSequence", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "path", + "forceAlphabetical" + ], + "memberCount": 6 + }, + { + "id": "item.setProxyWithSolid", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "color", + "solidName", + "width", + "height", + "pixelAspect" + ], + "memberCount": 4 + }, + { + "id": "item.setProxyWithPlaceholder", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "placeholderName", + "width", + "height", + "frameRate", + "duration" + ], + "memberCount": 3 + }, + { + "id": "item.setProxyToNone", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name" + ], + "memberCount": 3 + }, + { + "id": "item.setUseProxy", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "useProxy" + ], + "memberCount": 2 + }, + { + "id": "read.itemProxy", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name" + ], + "memberCount": 7 + }, + { + "id": "read.projectSettings", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [], + "memberCount": 6 + }, + { + "id": "pref.get", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "section", + "key", + "type", + "default" + ], + "memberCount": 5 + }, + { + "id": "pref.set", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "section", + "key", + "type", + "value" + ], + "memberCount": 4 + }, + { + "id": "pref.delete", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": true, + "requiresConfirm": null, + "args": [ + "section", + "key" + ], + "memberCount": 2 + }, + { + "id": "pref.saveToDisk", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [], + "memberCount": 1 + }, + { + "id": "read.appInfo", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [], + "memberCount": 6 + }, + { + "id": "anim.setInterpolation", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "keyIndex", + "inType", + "outType" + ], + "memberCount": 5 + }, + { + "id": "anim.setTemporalEase", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "keyIndex", + "inEase", + "outEase" + ], + "memberCount": 4 + }, + { + "id": "layer.setTrackMatte", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "matteLayerName", + "matteType" + ], + "memberCount": 5 + }, + { + "id": "layer.setTimeRemap", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "enabled" + ], + "memberCount": 2 + }, + { + "id": "comp.setSettings", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "bgColor", + "displayStartTime", + "displayStartFrame", + "shutterAngle", + "shutterPhase", + "motionBlur", + "frameBlending", + "draft3d", + "hideShyLayers", + "preserveNestedFrameRate", + "dropFrame" + ], + "memberCount": 11 + }, + { + "id": "read.compSettings", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name" + ], + "memberCount": 12 + }, + { + "id": "layer.replaceSource", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "footageName", + "fixExpressions" + ], + "memberCount": 2 + }, + { + "id": "render.duplicateQueueItem", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 3 + }, + { + "id": "marker.setLayerMarker", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "time", + "comment", + "chapter", + "url", + "frameTarget", + "cuePointName", + "duration", + "eventCuePoint", + "params" + ], + "memberCount": 15 + }, + { + "id": "marker.setCompMarker", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "time", + "comment", + "chapter", + "url", + "frameTarget", + "cuePointName", + "duration", + "eventCuePoint", + "params" + ], + "memberCount": 15 + }, + { + "id": "marker.readLayerMarkers", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 12 + }, + { + "id": "marker.readCompMarkers", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 12 + }, + { + "id": "layer.addShape", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "name" + ], + "memberCount": 3 + }, + { + "id": "shape.readContents", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 8 + }, + { + "id": "shape.addPath", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "vertices", + "inTangents", + "outTangents", + "closed" + ], + "memberCount": 13 + } + ] + } + }, + { + "t": "2026-11-20T19:22:42.842Z", + "step": "ae_verify.pre-state" + }, + { + "t": "2026-11-20T19:22:51.782Z", + "rx": { + "jsonrpc": "2.0", + "id": 3, + "result": { + "content": [ + { + "type": "text", + "text": "{\n \"schema\": \"ae-devtools.mcp/v1\",\n \"session\": {\n \"aeVersion\": \"26.5.3x9\",\n \"ownership\": \"owned\",\n \"aeA8nHead\": \"0.2.0\",\n \"kind\": \"a8n\",\n \"evidenceLevel\": \"verified on real host (macOS)\",\n \"policy\": null\n },\n \"outcome\": \"COMPLETED\",\n \"result\": {\n \"requestId\": \"req-mcp-1\",\n \"operationId\": \"read.projectSummary\",\n \"outcome\": \"COMPLETED\",\n \"requestState\": \"ACKED\",\n \"mayHaveMutated\": true,\n \"result\": {\n \"ok\": true,\n \"count\": 0,\n \"numItems\": 0,\n \"items\": [],\n \"activeItem\": null,\n \"selection\": []\n },\n \"contractOutcome\": \"completed\",\n \"retry\": \"quarantine\",\n \"opId\": \"read.projectSummary\",\n \"mutating\": false,\n \"destructive\": false\n }\n}" + } + ] + } + } + }, + { + "t": "2026-11-20T19:22:51.784Z", + "stepResult": "ae_verify.pre", + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-1", + "operationId": "read.projectSummary", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "count": 0, + "numItems": 0, + "items": [], + "activeItem": null, + "selection": [] + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "read.projectSummary", + "mutating": false, + "destructive": false + } + }, + { + "t": "2026-11-20T19:22:51.785Z", + "step": "ae_execute.project.new (launches owned AE)" + }, + { + "t": "2026-11-20T19:22:53.583Z", + "rx": { + "jsonrpc": "2.0", + "id": 4, + "result": { + "content": [ + { + "type": "text", + "text": "{\n \"schema\": \"ae-devtools.mcp/v1\",\n \"session\": {\n \"aeVersion\": \"26.5.3x9\",\n \"ownership\": \"owned\",\n \"aeA8nHead\": \"0.2.0\",\n \"kind\": \"a8n\",\n \"evidenceLevel\": \"verified on real host (macOS)\",\n \"policy\": null\n },\n \"outcome\": \"COMPLETED\",\n \"result\": {\n \"requestId\": \"req-mcp-2\",\n \"operationId\": \"project.new\",\n \"outcome\": \"COMPLETED\",\n \"requestState\": \"ACKED\",\n \"mayHaveMutated\": true,\n \"result\": {\n \"ok\": true\n },\n \"contractOutcome\": \"completed\",\n \"retry\": \"quarantine\",\n \"opId\": \"project.new\",\n \"mutating\": true,\n \"destructive\": true\n }\n}" + } + ] + } + } + }, + { + "t": "2026-11-20T19:22:53.584Z", + "stepResult": "project.new", + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-2", + "operationId": "project.new", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "project.new", + "mutating": true, + "destructive": true + } + }, + { + "t": "2026-11-20T19:22:53.585Z", + "step": "ae_execute.project.save" + }, + { + "t": "2026-11-20T19:22:55.054Z", + "rx": { + "jsonrpc": "2.0", + "id": 5, + "result": { + "content": [ + { + "type": "text", + "text": "{\n \"schema\": \"ae-devtools.mcp/v1\",\n \"session\": {\n \"aeVersion\": \"26.5.3x9\",\n \"ownership\": \"owned\",\n \"aeA8nHead\": \"0.2.0\",\n \"kind\": \"a8n\",\n \"evidenceLevel\": \"verified on real host (macOS)\",\n \"policy\": null\n },\n \"outcome\": \"COMPLETED\",\n \"result\": {\n \"requestId\": \"req-mcp-3\",\n \"operationId\": \"project.save\",\n \"outcome\": \"COMPLETED\",\n \"requestState\": \"ACKED\",\n \"mayHaveMutated\": true,\n \"result\": {\n \"ok\": true\n },\n \"contractOutcome\": \"completed\",\n \"retry\": \"quarantine\",\n \"opId\": \"project.save\",\n \"mutating\": true,\n \"destructive\": false\n }\n}" + } + ] + } + } + }, + { + "t": "2026-11-20T19:22:55.055Z", + "stepResult": "project.save", + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-3", + "operationId": "project.save", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "project.save", + "mutating": true, + "destructive": false + } + }, + { + "t": "2026-11-20T19:22:55.056Z", + "step": "ae_execute.item.addComp" + }, + { + "t": "2026-11-20T19:22:56.499Z", + "rx": { + "jsonrpc": "2.0", + "id": 6, + "result": { + "content": [ + { + "type": "text", + "text": "{\n \"schema\": \"ae-devtools.mcp/v1\",\n \"session\": {\n \"aeVersion\": \"26.5.3x9\",\n \"ownership\": \"owned\",\n \"aeA8nHead\": \"0.2.0\",\n \"kind\": \"a8n\",\n \"evidenceLevel\": \"verified on real host (macOS)\",\n \"policy\": null\n },\n \"outcome\": \"COMPLETED\",\n \"result\": {\n \"requestId\": \"req-mcp-4\",\n \"operationId\": \"item.addComp\",\n \"outcome\": \"COMPLETED\",\n \"requestState\": \"ACKED\",\n \"mayHaveMutated\": true,\n \"result\": {\n \"ok\": true,\n \"id\": 1,\n \"name\": \"MCP Conformance Comp\",\n \"parent\": null\n },\n \"contractOutcome\": \"completed\",\n \"retry\": \"quarantine\",\n \"opId\": \"item.addComp\",\n \"mutating\": true,\n \"destructive\": false\n }\n}" + } + ] + } + } + }, + { + "t": "2026-11-20T19:22:56.500Z", + "stepResult": "item.addComp", + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-4", + "operationId": "item.addComp", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "id": 1, + "name": "MCP Conformance Comp", + "parent": null + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "item.addComp", + "mutating": true, + "destructive": false + } + }, + { + "t": "2026-11-20T19:22:56.500Z", + "step": "ae_verify.readback" + }, + { + "t": "2026-11-20T19:22:57.762Z", + "rx": { + "jsonrpc": "2.0", + "id": 7, + "result": { + "content": [ + { + "type": "text", + "text": "{\n \"schema\": \"ae-devtools.mcp/v1\",\n \"session\": {\n \"aeVersion\": \"26.5.3x9\",\n \"ownership\": \"owned\",\n \"aeA8nHead\": \"0.2.0\",\n \"kind\": \"a8n\",\n \"evidenceLevel\": \"verified on real host (macOS)\",\n \"policy\": null\n },\n \"outcome\": \"COMPLETED\",\n \"result\": {\n \"requestId\": \"req-mcp-5\",\n \"operationId\": \"read.projectSummary\",\n \"outcome\": \"COMPLETED\",\n \"requestState\": \"ACKED\",\n \"mayHaveMutated\": true,\n \"result\": {\n \"ok\": true,\n \"count\": 1,\n \"numItems\": 1,\n \"items\": [\n {\n \"name\": \"MCP Conformance Comp\",\n \"typeName\": \"コンポジション\",\n \"id\": 1,\n \"selected\": false,\n \"parent\": null\n }\n ],\n \"activeItem\": null,\n \"selection\": []\n },\n \"contractOutcome\": \"completed\",\n \"retry\": \"quarantine\",\n \"opId\": \"read.projectSummary\",\n \"mutating\": false,\n \"destructive\": false\n }\n}" + } + ] + } + } + }, + { + "t": "2026-11-20T19:22:57.763Z", + "stepResult": "ae_verify.readback", + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-5", + "operationId": "read.projectSummary", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "count": 1, + "numItems": 1, + "items": [ + { + "name": "MCP Conformance Comp", + "typeName": "コンポジション", + "id": 1, + "selected": false, + "parent": null + } + ], + "activeItem": null, + "selection": [] + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "read.projectSummary", + "mutating": false, + "destructive": false + } + }, + { + "t": "2026-11-20T19:22:57.763Z", + "step": "ae_execute.item.remove" + }, + { + "t": "2026-11-20T19:22:59.091Z", + "rx": { + "jsonrpc": "2.0", + "id": 8, + "result": { + "content": [ + { + "type": "text", + "text": "{\n \"schema\": \"ae-devtools.mcp/v1\",\n \"session\": {\n \"aeVersion\": \"26.5.3x9\",\n \"ownership\": \"owned\",\n \"aeA8nHead\": \"0.2.0\",\n \"kind\": \"a8n\",\n \"evidenceLevel\": \"verified on real host (macOS)\",\n \"policy\": null\n },\n \"outcome\": \"COMPLETED\",\n \"result\": {\n \"requestId\": \"req-mcp-6\",\n \"operationId\": \"item.remove\",\n \"outcome\": \"COMPLETED\",\n \"requestState\": \"ACKED\",\n \"mayHaveMutated\": true,\n \"result\": {\n \"ok\": true,\n \"removed\": \"MCP Conformance Comp\"\n },\n \"contractOutcome\": \"completed\",\n \"retry\": \"quarantine\",\n \"opId\": \"item.remove\",\n \"mutating\": true,\n \"destructive\": true\n }\n}" + } + ] + } + } + }, + { + "t": "2026-11-20T19:22:59.092Z", + "stepResult": "item.remove", + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-6", + "operationId": "item.remove", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "removed": "MCP Conformance Comp" + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "item.remove", + "mutating": true, + "destructive": true + } + }, + { + "t": "2026-11-20T19:22:59.093Z", + "step": "ae_verify.final" + }, + { + "t": "2026-11-20T19:23:00.485Z", + "rx": { + "jsonrpc": "2.0", + "id": 9, + "result": { + "content": [ + { + "type": "text", + "text": "{\n \"schema\": \"ae-devtools.mcp/v1\",\n \"session\": {\n \"aeVersion\": \"26.5.3x9\",\n \"ownership\": \"owned\",\n \"aeA8nHead\": \"0.2.0\",\n \"kind\": \"a8n\",\n \"evidenceLevel\": \"verified on real host (macOS)\",\n \"policy\": null\n },\n \"outcome\": \"COMPLETED\",\n \"result\": {\n \"requestId\": \"req-mcp-7\",\n \"operationId\": \"read.projectSummary\",\n \"outcome\": \"COMPLETED\",\n \"requestState\": \"ACKED\",\n \"mayHaveMutated\": true,\n \"result\": {\n \"ok\": true,\n \"count\": 0,\n \"numItems\": 0,\n \"items\": [],\n \"activeItem\": null,\n \"selection\": []\n },\n \"contractOutcome\": \"completed\",\n \"retry\": \"quarantine\",\n \"opId\": \"read.projectSummary\",\n \"mutating\": false,\n \"destructive\": false\n }\n}" + } + ] + } + } + }, + { + "t": "2026-11-20T19:23:00.487Z", + "stepResult": "ae_verify.final", + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-7", + "operationId": "read.projectSummary", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "count": 0, + "numItems": 0, + "items": [], + "activeItem": null, + "selection": [] + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "read.projectSummary", + "mutating": false, + "destructive": false + } + }, + { + "t": "2026-11-20T19:23:00.488Z", + "step": "ae_execute.project.save.resave" + }, + { + "t": "2026-11-20T19:23:01.810Z", + "rx": { + "jsonrpc": "2.0", + "id": 10, + "result": { + "content": [ + { + "type": "text", + "text": "{\n \"schema\": \"ae-devtools.mcp/v1\",\n \"session\": {\n \"aeVersion\": \"26.5.3x9\",\n \"ownership\": \"owned\",\n \"aeA8nHead\": \"0.2.0\",\n \"kind\": \"a8n\",\n \"evidenceLevel\": \"verified on real host (macOS)\",\n \"policy\": null\n },\n \"outcome\": \"COMPLETED\",\n \"result\": {\n \"requestId\": \"req-mcp-8\",\n \"operationId\": \"project.save\",\n \"outcome\": \"COMPLETED\",\n \"requestState\": \"ACKED\",\n \"mayHaveMutated\": true,\n \"result\": {\n \"ok\": true\n },\n \"contractOutcome\": \"completed\",\n \"retry\": \"quarantine\",\n \"opId\": \"project.save\",\n \"mutating\": true,\n \"destructive\": false\n }\n}" + } + ] + } + } + }, + { + "t": "2026-11-20T19:23:01.811Z", + "stepResult": "project.save.resave", + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-8", + "operationId": "project.save", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "project.save", + "mutating": true, + "destructive": false + } + }, + { + "t": "2026-11-20T19:23:16.814Z", + "step": "server.stopped", + "fixturePath": "/tmp/run-028/mcp/Conformance-MCP-Disposable.aep", + "shutdownConfirmed": true, + "cleanShutdown": true, + "forcedKill": false, + "results": { + "ae_discover": { + "isError": false, + "outcome": null, + "session": null, + "result": { + "schema": "ae-devtools.dev-loop/v1", + "evidenceLevel": "registry metadata — no dispatch", + "operationCount": 97, + "evidence": { + "implemented": 97, + "automatedTest": 97, + "fakeMockVerified": 97, + "realHostVerified": 0, + "level": "fake/mock only" + }, + "operations": [ + { + "id": "project.new", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": true, + "requiresConfirm": null, + "args": [], + "memberCount": 1 + }, + { + "id": "project.open", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": true, + "requiresConfirm": null, + "args": [ + "path" + ], + "memberCount": 1 + }, + { + "id": "project.save", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "path" + ], + "memberCount": 1 + }, + { + "id": "project.close", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": true, + "requiresConfirm": null, + "args": [], + "memberCount": 1 + }, + { + "id": "item.addComp", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "width", + "height", + "pixelAspect", + "duration", + "frameRate", + "parentFolder" + ], + "memberCount": 3 + }, + { + "id": "item.addFolder", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "parentFolder" + ], + "memberCount": 3 + }, + { + "id": "item.remove", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": true, + "requiresConfirm": null, + "args": [ + "name", + "type" + ], + "memberCount": 1 + }, + { + "id": "item.setParentFolder", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "type", + "parentFolder" + ], + "memberCount": 4 + }, + { + "id": "item.setSelected", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "type", + "selected" + ], + "memberCount": 4 + }, + { + "id": "comp.addNullLayer", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 1 + }, + { + "id": "layer.setTransformPosition", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "x", + "y" + ], + "memberCount": 2 + }, + { + "id": "layer.reorder", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "to" + ], + "memberCount": 2 + }, + { + "id": "layer.setParent", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "parentName" + ], + "memberCount": 1 + }, + { + "id": "layer.duplicate", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 1 + }, + { + "id": "read.projectSummary", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [], + "memberCount": 10 + }, + { + "id": "read.projectTree", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [], + "memberCount": 10 + }, + { + "id": "read.itemById", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "id" + ], + "memberCount": 6 + }, + { + "id": "anim.setValue", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "value" + ], + "memberCount": 1 + }, + { + "id": "anim.setKeyframe", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "keyIndex", + "value" + ], + "memberCount": 1 + }, + { + "id": "anim.setValueAtTime", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "time", + "value" + ], + "memberCount": 1 + }, + { + "id": "anim.setExpression", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "expression" + ], + "memberCount": 4 + }, + { + "id": "effect.add", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "effectMatchName" + ], + "memberCount": 2 + }, + { + "id": "render.queueComp", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 2 + }, + { + "id": "render.renderQueued", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": "render", + "args": [], + "memberCount": 1 + }, + { + "id": "read.compLayers", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 15 + }, + { + "id": "read.layerDetail", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 12 + }, + { + "id": "read.propertyValue", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath" + ], + "memberCount": 4 + }, + { + "id": "read.keyframes", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath" + ], + "memberCount": 4 + }, + { + "id": "read.renderQueueStatus", + "domain": "animation-effects-render", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [], + "memberCount": 11 + }, + { + "id": "read.itemDetail", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name" + ], + "memberCount": 10 + }, + { + "id": "item.import", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "path" + ], + "memberCount": 2 + }, + { + "id": "comp.duplicate", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name" + ], + "memberCount": 3 + }, + { + "id": "item.setLabel", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "type", + "label" + ], + "memberCount": 2 + }, + { + "id": "layer.setTiming", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "startTime", + "stretch" + ], + "memberCount": 2 + }, + { + "id": "layer.setState", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "solo", + "shy", + "locked", + "label" + ], + "memberCount": 4 + }, + { + "id": "anim.removeKeyframe", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "keyIndex" + ], + "memberCount": 2 + }, + { + "id": "read.valueAtTime", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "time" + ], + "memberCount": 3 + }, + { + "id": "render.setTimeSpan", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "timeSpanStart", + "timeSpanDuration" + ], + "memberCount": 5 + }, + { + "id": "render.removeFromQueue", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 4 + }, + { + "id": "layer.setAvState", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "audioEnabled", + "threeDLayer", + "motionBlur", + "guideLayer" + ], + "memberCount": 4 + }, + { + "id": "read.propertyDetail", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath" + ], + "memberCount": 12 + }, + { + "id": "anim.setExpressionEnabled", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "enabled" + ], + "memberCount": 3 + }, + { + "id": "render.getOutputSettings", + "domain": "animation-effects-render", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 6 + }, + { + "id": "render.setOutputSetting", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "setting", + "value" + ], + "memberCount": 5 + }, + { + "id": "render.listTemplates", + "domain": "animation-effects-render", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 4 + }, + { + "id": "render.applyTemplate", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "templateName" + ], + "memberCount": 9 + }, + { + "id": "render.saveTemplate", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "templateName" + ], + "memberCount": 5 + }, + { + "id": "render.listOutputModules", + "domain": "animation-effects-render", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 10 + }, + { + "id": "render.addOutputModule", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 7 + }, + { + "id": "render.applyOutputModuleTemplate", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "moduleIndex", + "templateName" + ], + "memberCount": 7 + }, + { + "id": "render.saveOutputModuleTemplate", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "moduleIndex", + "templateName" + ], + "memberCount": 7 + }, + { + "id": "render.setOutputModuleOptions", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "moduleIndex", + "file", + "includeSourceXMP", + "postRenderAction" + ], + "memberCount": 7 + }, + { + "id": "item.setComment", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "type", + "comment" + ], + "memberCount": 2 + }, + { + "id": "comp.setResolutionFactor", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "resolutionFactor" + ], + "memberCount": 2 + }, + { + "id": "layer.addSolid", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "name", + "width", + "height", + "pixelAspect", + "color", + "duration" + ], + "memberCount": 1 + }, + { + "id": "layer.addText", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "name", + "text" + ], + "memberCount": 2 + }, + { + "id": "layer.addCamera", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "name", + "centerPoint" + ], + "memberCount": 1 + }, + { + "id": "layer.addLight", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "name", + "centerPoint" + ], + "memberCount": 1 + }, + { + "id": "text.setText", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "text" + ], + "memberCount": 2 + }, + { + "id": "text.setStyle", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "font", + "fontSize", + "justification", + "fillColor", + "tracking", + "leading" + ], + "memberCount": 8 + }, + { + "id": "text.readStyle", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 9 + }, + { + "id": "layer.addBoxText", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "name", + "width", + "height" + ], + "memberCount": 5 + }, + { + "id": "text.setPaint", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "applyFill", + "applyStroke", + "strokeColor", + "strokeWidth", + "strokeOverFill", + "autoLeading" + ], + "memberCount": 7 + }, + { + "id": "text.setBoxMetrics", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "boxTextSize", + "boxTextPos" + ], + "memberCount": 4 + }, + { + "id": "text.setCharAttributes", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "baselineShift", + "horizontalScale", + "verticalScale" + ], + "memberCount": 4 + }, + { + "id": "text.readDocument", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 31 + }, + { + "id": "layer.setLayerFlags", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "adjustmentLayer", + "preserveTransparency", + "collapseTransformation" + ], + "memberCount": 4 + }, + { + "id": "layer.setInOutPoint", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "inPoint", + "outPoint" + ], + "memberCount": 2 + }, + { + "id": "read.footageDetail", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name" + ], + "memberCount": 15 + }, + { + "id": "item.setProxy", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "path" + ], + "memberCount": 6 + }, + { + "id": "item.setProxyWithSequence", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "path", + "forceAlphabetical" + ], + "memberCount": 6 + }, + { + "id": "item.setProxyWithSolid", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "color", + "solidName", + "width", + "height", + "pixelAspect" + ], + "memberCount": 4 + }, + { + "id": "item.setProxyWithPlaceholder", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "placeholderName", + "width", + "height", + "frameRate", + "duration" + ], + "memberCount": 3 + }, + { + "id": "item.setProxyToNone", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name" + ], + "memberCount": 3 + }, + { + "id": "item.setUseProxy", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "useProxy" + ], + "memberCount": 2 + }, + { + "id": "read.itemProxy", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name" + ], + "memberCount": 7 + }, + { + "id": "read.projectSettings", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [], + "memberCount": 6 + }, + { + "id": "pref.get", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "section", + "key", + "type", + "default" + ], + "memberCount": 5 + }, + { + "id": "pref.set", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "section", + "key", + "type", + "value" + ], + "memberCount": 4 + }, + { + "id": "pref.delete", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": true, + "requiresConfirm": null, + "args": [ + "section", + "key" + ], + "memberCount": 2 + }, + { + "id": "pref.saveToDisk", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [], + "memberCount": 1 + }, + { + "id": "read.appInfo", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [], + "memberCount": 6 + }, + { + "id": "anim.setInterpolation", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "keyIndex", + "inType", + "outType" + ], + "memberCount": 5 + }, + { + "id": "anim.setTemporalEase", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "keyIndex", + "inEase", + "outEase" + ], + "memberCount": 4 + }, + { + "id": "layer.setTrackMatte", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "matteLayerName", + "matteType" + ], + "memberCount": 5 + }, + { + "id": "layer.setTimeRemap", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "enabled" + ], + "memberCount": 2 + }, + { + "id": "comp.setSettings", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "bgColor", + "displayStartTime", + "displayStartFrame", + "shutterAngle", + "shutterPhase", + "motionBlur", + "frameBlending", + "draft3d", + "hideShyLayers", + "preserveNestedFrameRate", + "dropFrame" + ], + "memberCount": 11 + }, + { + "id": "read.compSettings", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name" + ], + "memberCount": 12 + }, + { + "id": "layer.replaceSource", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "footageName", + "fixExpressions" + ], + "memberCount": 2 + }, + { + "id": "render.duplicateQueueItem", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 3 + }, + { + "id": "marker.setLayerMarker", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "time", + "comment", + "chapter", + "url", + "frameTarget", + "cuePointName", + "duration", + "eventCuePoint", + "params" + ], + "memberCount": 15 + }, + { + "id": "marker.setCompMarker", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "time", + "comment", + "chapter", + "url", + "frameTarget", + "cuePointName", + "duration", + "eventCuePoint", + "params" + ], + "memberCount": 15 + }, + { + "id": "marker.readLayerMarkers", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 12 + }, + { + "id": "marker.readCompMarkers", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 12 + }, + { + "id": "layer.addShape", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "name" + ], + "memberCount": 3 + }, + { + "id": "shape.readContents", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 8 + }, + { + "id": "shape.addPath", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "vertices", + "inTangents", + "outTangents", + "closed" + ], + "memberCount": 13 + } + ] + } + }, + "ae_verify.pre": { + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-1", + "operationId": "read.projectSummary", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "count": 0, + "numItems": 0, + "items": [], + "activeItem": null, + "selection": [] + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "read.projectSummary", + "mutating": false, + "destructive": false + } + }, + "project.new": { + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-2", + "operationId": "project.new", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "project.new", + "mutating": true, + "destructive": true + } + }, + "project.save": { + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-3", + "operationId": "project.save", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "project.save", + "mutating": true, + "destructive": false + } + }, + "item.addComp": { + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-4", + "operationId": "item.addComp", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "id": 1, + "name": "MCP Conformance Comp", + "parent": null + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "item.addComp", + "mutating": true, + "destructive": false + } + }, + "ae_verify.readback": { + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-5", + "operationId": "read.projectSummary", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "count": 1, + "numItems": 1, + "items": [ + { + "name": "MCP Conformance Comp", + "typeName": "コンポジション", + "id": 1, + "selected": false, + "parent": null + } + ], + "activeItem": null, + "selection": [] + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "read.projectSummary", + "mutating": false, + "destructive": false + } + }, + "item.remove": { + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-6", + "operationId": "item.remove", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "removed": "MCP Conformance Comp" + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "item.remove", + "mutating": true, + "destructive": true + } + }, + "ae_verify.final": { + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-7", + "operationId": "read.projectSummary", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "count": 0, + "numItems": 0, + "items": [], + "activeItem": null, + "selection": [] + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "read.projectSummary", + "mutating": false, + "destructive": false + } + }, + "project.save.resave": { + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-8", + "operationId": "project.save", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "project.save", + "mutating": true, + "destructive": false + } + } + } + }, + { + "t": "2026-11-20T19:23:16.817Z", + "verdict": "pass" + } +] \ No newline at end of file diff --git a/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/provenance.json b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/provenance.json new file mode 100644 index 00000000..943a5169 --- /dev/null +++ b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/provenance.json @@ -0,0 +1,51 @@ +{ + "schema": "ae-devtools.conformance-provenance/v1", + "recordedAt": "2026-11-20T19:25:18.435Z", + "git": { + "head": "8952266b8b045dead219c5b808346f23776c4e87", + "dirty": false, + "note": "run executed at 8952266b8b045dead219c5b808346f23776c4e87 on release-0-6-0 (v0.6.0 release candidate, PR #379 head); evidence-scope diff to evidence-commit contains only this evidence tree" + }, + "aeA8n": { + "name": "@ido-bata/ae-a8n", + "version": "0.2.0", + "distTag": "pinned-dependency", + "distTagsAtRun": { + "latest": "0.3.0", + "next": "0.4.0" + }, + "tarball": "https://registry.npmjs.org/@ido-bata/ae-a8n/-/ae-a8n-0.2.0.tgz", + "fileCount": 164 + }, + "aeDevtools": { + "package": "ae-devtools-cli", + "sourceSha": "8952266b8b045dead219c5b808346f23776c4e87", + "invocation": "node conformance/real-run.mjs + node conformance/mcp-real-run.mjs + node devtools-cli/cli.mjs (execute project.open/doctor)" + }, + "host": { + "installDir": "/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app", + "aeVersion": "26.5.3x9", + "aeBuild": "9", + "os": "macOS 27.2.1", + "arch": "arm64", + "node": "v26.13.1" + }, + "fixtures": { + "primary": "Conformance-Disposable.aep", + "mcp": "Conformance-MCP-Disposable.aep", + "note": "both created fresh inside owned sessions via project.new + project.save" + }, + "artifactHashes": { + "Conformance-Disposable.aep": "f8f7fe7eca874150a26086e0518b32a429b02502b430947935d423117437a4e8", + "Conformance-MCP-Disposable.aep": "614899755f20f0e07c1a80ba4fed842b6ca397c4076079c0025bee8e9242fa8e", + "a8n-host-ext.js": "825a5e63ebd6afb08ff7dd83a6fd6aa732fcef59e522355760815954c3bdd401", + "ae-a8n-0.2.0.tgz": "3c63588bb618106f4ee89716f840787b9da601977f01cca92547ba5700bda372", + "cli-doctor.json": "997e25071a568180e3b424d2f875a4366e8a8cd91117bbc93139401466f290cf", + "cli-project-open.json": "be6c3bcc6eefd7168087866696146bcf587529a1d2afcb409e5844aab903f077", + "harness-mcp-real-run.mjs": "f4a048a048aaf481b6c464d15881ce46c6c042f8c3887c2170ec4570d8f37a3e", + "harness-real-run.mjs": "6046ae540b99847c68bf535726433c0af1d40e4add0effebc4cfe27965e0b8ea", + "mcp-stdio.jsonl": "a69fe60f37ad13957c06345e6d0b5ff9c55a5d09b4069c9c307df97d6f7621e6", + "session-a8n-jsx.json": "eb0ccf9c743d4add34ad3065f95dfd99704c198cca5554698db45ef95477256e", + "trace.jsonl": "f357a35905a5e4260605bae911d4a22511c13d4106a485464ee34d9c2672ad11" + } +} diff --git a/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/record.json b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/record.json new file mode 100644 index 00000000..e4d4c7ad --- /dev/null +++ b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/record.json @@ -0,0 +1,62 @@ +{ + "schema": "ae-devtools.conformance-record/v1", + "recordVersion": 1, + "capabilityIds": [ + "ae.scripting.app.newProject", + "ae.scripting.app.open", + "ae.scripting.Project.save", + "ae.scripting.ItemCollection.addComp", + "ae.scripting.Item.remove", + "ae.scripting.Project.activeItem", + "ae.scripting.Item.name", + "ae.scripting.Item.id", + "ae.scripting.Item.typeName" + ], + "platform": { + "os": "darwin", + "osVersion": "27.2.1", + "arch": "arm64" + }, + "aeVersion": { + "version": "26.5.3x9", + "build": "9" + }, + "sdkBuild": null, + "sdkBuildStatus": "not-applicable", + "verification": "verified-real-host", + "result": "PASS", + "catalogBinding": { + "kind": "real-host", + "ref": "packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028", + "platform": "darwin" + }, + "sourceSha": "8952266b8b045dead219c5b808346f23776c4e87", + "runId": "run-2026-11-21-ae2026-a8n-028", + "artifactHashes": { + "Conformance-Disposable.aep": "f8f7fe7eca874150a26086e0518b32a429b02502b430947935d423117437a4e8", + "Conformance-MCP-Disposable.aep": "614899755f20f0e07c1a80ba4fed842b6ca397c4076079c0025bee8e9242fa8e", + "a8n-host-ext.js": "825a5e63ebd6afb08ff7dd83a6fd6aa732fcef59e522355760815954c3bdd401", + "ae-a8n-0.2.0.tgz": "3c63588bb618106f4ee89716f840787b9da601977f01cca92547ba5700bda372", + "cli-doctor.json": "997e25071a568180e3b424d2f875a4366e8a8cd91117bbc93139401466f290cf", + "cli-project-open.json": "be6c3bcc6eefd7168087866696146bcf587529a1d2afcb409e5844aab903f077", + "harness-mcp-real-run.mjs": "f4a048a048aaf481b6c464d15881ce46c6c042f8c3887c2170ec4570d8f37a3e", + "harness-real-run.mjs": "6046ae540b99847c68bf535726433c0af1d40e4add0effebc4cfe27965e0b8ea", + "mcp-stdio.jsonl": "a69fe60f37ad13957c06345e6d0b5ff9c55a5d09b4069c9c307df97d6f7621e6", + "session-a8n-jsx.json": "eb0ccf9c743d4add34ad3065f95dfd99704c198cca5554698db45ef95477256e", + "trace.jsonl": "f357a35905a5e4260605bae911d4a22511c13d4106a485464ee34d9c2672ad11", + "provenance.json": "4cedeab6a7f34bcbff133e5019c3b88ebf1207f63423ddb1f7c4d38a5a9ab632" + }, + "environment": { + "disposableProject": true, + "sideEffects": "none-observed", + "sessionRef": "owned ae-a8n sessions only: conformance/real-run.mjs, conformance/mcp-real-run.mjs, devtools-cli execute project.open; each launched its own AE instance and closed with unsavedChanges=refuse after restoring saved state; no pre-existing AE instance or user project was touched" + }, + "dimensions": { + "script": "PASS", + "transport": "PASS", + "ownership": "PASS", + "timeout": "PASS", + "undo": "PASS" + }, + "recordedAt": "2026-11-20T19:25:18.435Z" +} diff --git a/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/session-a8n-jsx.json b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/session-a8n-jsx.json new file mode 100644 index 00000000..4d29b244 --- /dev/null +++ b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/session-a8n-jsx.json @@ -0,0 +1,565 @@ +{ + "schema": "ae-devtools.conformance-run/v1", + "issue": 177, + "startedAt": "2026-11-20T19:18:17.493Z", + "platform": "darwin/arm64", + "node": "v26.13.1", + "installDir": "/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app", + "workdir": "/tmp/run-028", + "fixturePath": "/tmp/run-028/Conformance-Disposable.aep", + "git": { + "head": "8952266b8b045dead219c5b808346f23776c4e87", + "dirty": false + }, + "consentModel": "local approve-all policy (gate mechanics only; not authenticated authorization)", + "aeProcessesBeforeLaunch": [ + { + "pid": 16586, + "args": "bash -c rm -rf /tmp/run-028 && mkdir -p /tmp/run-028 && cd /Users/rebui/work/ae-devtools.380/packages/ae-devtools-cli && node conformance/real-run.mjs --install-dir \"/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app\" --workdir /tmp/run-028 --out /tmp/run-028/conformance-run.json 2>&1" + }, + { + "pid": 16589, + "args": "node conformance/real-run.mjs --install-dir /Applications/Adobe After Effects 2026/Adobe After Effects 2026.app --workdir /tmp/run-028 --out /tmp/run-028/conformance-run.json" + } + ], + "steps": [ + { + "name": "session.launch", + "at": "2026-11-20T19:18:31.931Z", + "ok": true, + "aeVersion": "26.5.3x9", + "aeBuild": "9", + "ownership": "owned", + "aeA8nSource": "npm:@ido-bata/ae-a8n", + "aeA8nHead": "0.2.0" + }, + { + "name": "identity.before", + "at": "2026-11-20T19:18:34.602Z", + "ok": true, + "outcome": "COMPLETED", + "project": { + "version": "26.5.3x9", + "file": "", + "items": "0", + "dirty": "false", + "raw": "V:26.5.3x9|F:|N:0|D:false" + } + }, + { + "name": "disposable.gate", + "at": "2026-11-20T19:18:34.603Z", + "ok": true, + "decision": { + "proceed": true, + "reason": "dirty=false, file='', items=0" + } + }, + { + "name": "identity.recheck", + "at": "2026-11-20T19:18:37.364Z", + "ok": true, + "outcome": "COMPLETED", + "project": { + "version": "26.5.3x9", + "file": "", + "items": "0", + "dirty": "false", + "raw": "V:26.5.3x9|F:|N:0|D:false" + } + }, + { + "name": "op.project.new", + "at": "2026-11-20T19:18:40.441Z", + "ok": true, + "outcome": "COMPLETED", + "status": null, + "result": { + "ok": true + } + }, + { + "name": "op.project.save", + "at": "2026-11-20T19:18:42.844Z", + "ok": true, + "outcome": "COMPLETED", + "result": { + "ok": true + }, + "fixturePath": "/tmp/run-028/Conformance-Disposable.aep" + }, + { + "name": "identity.fixture", + "at": "2026-11-20T19:18:44.954Z", + "ok": true, + "outcome": "COMPLETED", + "project": { + "version": "26.5.3x9", + "file": "/tmp/run-028/Conformance-Disposable.aep", + "items": "0", + "dirty": "false", + "raw": "V:26.5.3x9|F:%2Ftmp%2Frun-028%2FConformance-Disposable.aep|N:0|D:false" + }, + "expectedFile": "/tmp/run-028/Conformance-Disposable.aep" + }, + { + "name": "op.read.projectSummary.baseline", + "at": "2026-11-20T19:18:47.326Z", + "ok": true, + "outcome": "COMPLETED", + "result": { + "ok": true, + "count": 0, + "numItems": 0, + "items": [], + "activeItem": null, + "selection": [] + } + }, + { + "name": "op.item.addComp", + "at": "2026-11-20T19:18:49.099Z", + "ok": true, + "outcome": "COMPLETED", + "result": { + "ok": true, + "id": 1, + "name": "Conformance QA Comp", + "parent": null + } + }, + { + "name": "op.read.projectSummary.readback", + "at": "2026-11-20T19:18:51.077Z", + "ok": true, + "outcome": "COMPLETED", + "sawComp": true, + "items": [ + { + "name": "Conformance QA Comp", + "typeName": "コンポジション", + "id": 1, + "selected": false, + "parent": null + } + ] + }, + { + "name": "ae.undo", + "at": "2026-11-20T19:18:55.285Z", + "ok": true, + "undo": { + "ok": true, + "result": { + "id": 16, + "durationMs": 22, + "before": { + "itemCount": 1, + "comp": null, + "layers": [] + }, + "after": { + "itemCount": 0, + "comp": null, + "layers": [] + }, + "name": "Undo", + "added": [], + "removed": [] + } + }, + "outcome": "COMPLETED", + "itemsAfter": [] + }, + { + "name": "op.item.addComp.second", + "at": "2026-11-20T19:18:56.850Z", + "ok": true, + "outcome": "COMPLETED", + "result": { + "ok": true, + "id": 13, + "name": "Conformance Temp Comp", + "parent": null + } + }, + { + "name": "op.item.remove", + "at": "2026-11-20T19:18:59.674Z", + "ok": true, + "outcome": "COMPLETED", + "result": { + "ok": true, + "removed": "Conformance Temp Comp" + } + }, + { + "name": "op.read.projectSummary.final", + "at": "2026-11-20T19:19:02.112Z", + "ok": true, + "outcome": "COMPLETED", + "items": [] + }, + { + "name": "op.project.save.resave", + "at": "2026-11-20T19:19:04.475Z", + "ok": true, + "outcome": "COMPLETED", + "result": { + "ok": true + } + }, + { + "name": "jsx.build.ok", + "at": "2026-11-20T19:19:05.035Z", + "ok": true, + "status": "ok" + }, + { + "name": "jsx.dispatch.ok", + "at": "2026-11-20T19:19:07.313Z", + "ok": true, + "outcome": "COMPLETED" + }, + { + "name": "jsx.verify.global-write", + "at": "2026-11-20T19:19:09.728Z", + "ok": true, + "observed": "hello ae 26.5.3x9", + "outcome": "COMPLETED" + }, + { + "name": "jsx.build.runtime-error", + "at": "2026-11-20T19:19:09.738Z", + "ok": true, + "status": "ok" + }, + { + "name": "jsx.dispatch.runtime-error", + "at": "2026-11-20T19:19:12.263Z", + "ok": true, + "outcome": "FAILED", + "hostError": "__toolchainUndeclaredIdentifierは未定義です。", + "hostErrorName": "ReferenceError", + "hostLine": 3 + }, + { + "name": "jsx.sourcemap.to-source", + "at": "2026-11-20T19:19:12.263Z", + "ok": true, + "mapped": { + "source": "runtime-error.ts", + "line": 3, + "column": 48, + "name": null, + "content": "// Deliberate runtime fault for real-host sourcemap verification.\nfunction boom(): void {\n var missing = __toolchainUndeclaredIdentifier;\n $.global.__toolchainBoom = missing;\n}\nboom();\n" + } + }, + { + "name": "a8n.slice", + "at": "2026-11-20T19:19:23.632Z", + "ok": true, + "violations": [], + "outcomes": [ + "connect.state:COMPLETED", + "project.state:COMPLETED", + "error.capture:FAILED", + "fix.rerun:COMPLETED", + "verify.counter.1:COMPLETED", + "verify.counter.2:COMPLETED", + "consent.tampered:BLOCKED", + "consent.denied:REFUSED-BEFORE-SEND" + ] + }, + { + "name": "timeout.probe", + "at": "2026-11-20T19:19:24.439Z", + "ok": true, + "outcome": "UNKNOWN", + "contractOutcome": "unknown", + "retry": "quarantine", + "elapsedMs": 805, + "quarantined": true + }, + { + "name": "session.close", + "at": "2026-11-20T19:19:28.969Z", + "ok": true + } + ], + "ok": true, + "hostScriptSha256": "825a5e63ebd6afb08ff7dd83a6fd6aa732fcef59e522355760815954c3bdd401", + "hostScriptCopy": "/tmp/run-028/a8n-host-ext.js", + "projectBefore": { + "version": "26.5.3x9", + "file": "", + "items": "0", + "dirty": "false", + "raw": "V:26.5.3x9|F:|N:0|D:false" + }, + "disposableDecision": { + "proceed": true, + "reason": "dirty=false, file='', items=0" + }, + "projectRecheck": { + "version": "26.5.3x9", + "file": "", + "items": "0", + "dirty": "false", + "raw": "V:26.5.3x9|F:|N:0|D:false" + }, + "projectFixture": { + "version": "26.5.3x9", + "file": "/tmp/run-028/Conformance-Disposable.aep", + "items": "0", + "dirty": "false", + "raw": "V:26.5.3x9|F:%2Ftmp%2Frun-028%2FConformance-Disposable.aep|N:0|D:false" + }, + "fixtureSha256": "6d5665a0f8168f2d22764b3667f412376a8a303fbf8b3151280f65d72781864d", + "undo": { + "call": { + "ok": true, + "result": { + "id": 16, + "durationMs": 22, + "before": { + "itemCount": 1, + "comp": null, + "layers": [] + }, + "after": { + "itemCount": 0, + "comp": null, + "layers": [] + }, + "name": "Undo", + "added": [], + "removed": [] + } + }, + "readbackEmpty": true + }, + "projectOps": { + "baseline": { + "ok": true, + "count": 0, + "numItems": 0, + "items": [], + "activeItem": null, + "selection": [] + }, + "addComp": { + "ok": true, + "id": 1, + "name": "Conformance QA Comp", + "parent": null + }, + "readbackSawComp": true, + "undo": { + "call": { + "ok": true, + "result": { + "id": 16, + "durationMs": 22, + "before": { + "itemCount": 1, + "comp": null, + "layers": [] + }, + "after": { + "itemCount": 0, + "comp": null, + "layers": [] + }, + "name": "Undo", + "added": [], + "removed": [] + } + }, + "readbackEmpty": true + }, + "addComp2": { + "ok": true, + "id": 13, + "name": "Conformance Temp Comp", + "parent": null + }, + "remove": { + "ok": true, + "removed": "Conformance Temp Comp" + }, + "finalItems": [] + }, + "jsx": { + "okBuild": { + "status": "ok", + "jsxBytes": 185 + }, + "dispatchOk": "COMPLETED", + "globalWrite": "hello ae 26.5.3x9", + "runtimeError": { + "outcome": "FAILED", + "hostErrorName": "ReferenceError", + "hostLine": 3, + "mapped": { + "source": "runtime-error.ts", + "line": 3, + "column": 48, + "name": null, + "content": "// Deliberate runtime fault for real-host sourcemap verification.\nfunction boom(): void {\n var missing = __toolchainUndeclaredIdentifier;\n $.global.__toolchainBoom = missing;\n}\nboom();\n" + } + } + }, + "sliceSteps": [ + { + "label": "connect.state", + "source": "String(app.version)", + "outcome": "COMPLETED", + "contractOutcome": "completed", + "requestState": "ACKED", + "result": "26.5.3x9", + "error": null, + "refusal": null, + "sendsBefore": 16, + "sendsAfter": 17 + }, + { + "label": "project.state", + "source": "String(app.project.numItems)", + "outcome": "COMPLETED", + "contractOutcome": "completed", + "requestState": "ACKED", + "result": "0", + "error": null, + "refusal": null, + "sendsBefore": 17, + "sendsAfter": 18 + }, + { + "label": "error.capture", + "source": "__a8nSliceUndeclaredIdentifier;", + "outcome": "FAILED", + "contractOutcome": "failed", + "requestState": "ACKED", + "result": null, + "error": { + "name": "ReferenceError", + "message": "__a8nSliceUndeclaredIdentifierは未定義です。", + "line": 1, + "hostReported": true + }, + "refusal": null, + "sendsBefore": 18, + "sendsAfter": 19 + }, + { + "label": "fix.rerun", + "source": "String(app.project.numItems + 0)", + "outcome": "COMPLETED", + "contractOutcome": "completed", + "requestState": "ACKED", + "result": "0", + "error": null, + "refusal": null, + "sendsBefore": 19, + "sendsAfter": 20 + }, + { + "label": "verify.counter.1", + "source": "$.global.__a8nSliceCounter = (typeof $.global.__a8nSliceCounter === 'undefined' ? 0 : $.global.__a8nSliceCounter) + 1; String($.global.__a8nSliceCounter);", + "outcome": "COMPLETED", + "contractOutcome": "completed", + "requestState": "ACKED", + "result": "1", + "error": null, + "refusal": null, + "sendsBefore": 20, + "sendsAfter": 21 + }, + { + "label": "verify.counter.2", + "source": "$.global.__a8nSliceCounter = (typeof $.global.__a8nSliceCounter === 'undefined' ? 0 : $.global.__a8nSliceCounter) + 1; String($.global.__a8nSliceCounter);", + "outcome": "COMPLETED", + "contractOutcome": "completed", + "requestState": "ACKED", + "result": "2", + "error": null, + "refusal": null, + "sendsBefore": 21, + "sendsAfter": 22 + }, + { + "label": "consent.tampered", + "source": "String(app.version)", + "outcome": "BLOCKED", + "contractOutcome": "not-sent", + "requestState": "NOT_SENT", + "result": null, + "error": null, + "refusal": { + "code": "CONSENT_SCOPE_MISMATCH", + "message": "consent scope does not match this dispatch (session/operation/args/project)" + }, + "sendsBefore": 22, + "sendsAfter": 22 + }, + { + "label": "consent.denied", + "source": "__DENY__ String(app.version)", + "outcome": "REFUSED-BEFORE-SEND", + "reason": "policy denied: source carries __DENY__ marker", + "sendsBefore": 22, + "sendsAfter": 22 + } + ], + "sliceViolations": [], + "timeoutProbe": { + "outcome": "UNKNOWN", + "contractOutcome": "unknown", + "retry": "quarantine", + "elapsedMs": 805, + "quarantined": true + }, + "transportSends": 23, + "opResultSummary": { + "project.new#1": "COMPLETED", + "project.save#2": "COMPLETED", + "read.projectSummary#3": "COMPLETED", + "item.addComp#4": "COMPLETED", + "read.projectSummary#5": "COMPLETED", + "read.projectSummary#6": "COMPLETED", + "item.addComp#7": "COMPLETED", + "item.remove#8": "COMPLETED", + "read.projectSummary#9": "COMPLETED", + "project.save#10": "COMPLETED" + }, + "evidenceLevel": "verified on real host", + "traceCopy": "/tmp/run-028/trace.jsonl", + "traceSha256": "f357a35905a5e4260605bae911d4a22511c13d4106a485464ee34d9c2672ad11", + "close": { + "quit": true + }, + "aeProcessesAfterClose": [ + { + "pid": 16586, + "args": "bash -c rm -rf /tmp/run-028 && mkdir -p /tmp/run-028 && cd /Users/rebui/work/ae-devtools.380/packages/ae-devtools-cli && node conformance/real-run.mjs --install-dir \"/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app\" --workdir /tmp/run-028 --out /tmp/run-028/conformance-run.json 2>&1" + }, + { + "pid": 16589, + "args": "node conformance/real-run.mjs --install-dir /Applications/Adobe After Effects 2026/Adobe After Effects 2026.app --workdir /tmp/run-028 --out /tmp/run-028/conformance-run.json" + }, + { + "pid": 17382, + "args": "/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app/Contents/MacOS/crashpad_handler --no-rate-limit --database=/Users/rebui/Library/Caches/Adobe/After Effects/26.0/SentryIO-db --metrics-dir=/Users/rebui/Library/Caches/Adobe/After Effects/26.0/SentryIO-db --attachment=/Users/rebui/Library/Caches/Adobe/After Effects/26.0/SentryIO-db/437595b4-e917-4eec-cb2d-76769121b7d7.run/__sentry-event --attachment=/Users/rebui/Library/Caches/Adobe/After Effects/26.0/SentryIO-db/437595b4-e917-4eec-cb2d-76769121b7d7.run/__sentry-breadcrumb1 --attachment=/Users/rebui/Library/Caches/Adobe/After Effects/26.0/SentryIO-db/437595b4-e917-4eec-cb2d-76769121b7d7.run/__sentry-breadcrumb2 --crash-reporter=/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app/Contents/AdobeCrashReport.app --crash-envelope=/Users/rebui/Library/Caches/Adobe/After Effects/26.0/SentryIO-db/external/4cfe4df3-c65e-4e57-26eb-50d9828c5640.envelope --report-id=4cfe4df3-c65e-4e57-26eb-50d9828c5640 --handshake-fd=5" + }, + { + "pid": 17388, + "args": "/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app/Contents/MacOS/dynamiclinkmanager --rogue" + }, + { + "pid": 17389, + "args": "/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app/Contents/TeamProjectsLocalHub.app/Contents/MacOS/TeamProjectsLocalHub" + } + ], + "finishedAt": "2026-11-20T19:19:29.347Z" +} diff --git a/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/trace.jsonl b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/trace.jsonl new file mode 100644 index 00000000..10798f13 --- /dev/null +++ b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-028/trace.jsonl @@ -0,0 +1,27 @@ +{"seq":0,"ts":"2026-11-20T19:18:25.817Z","op":"session.probe","status":"ok","durationMs":4838,"args":{"method":"app.info"},"result":{"version":"26.5.3x9","build":"9"}} +{"seq":1,"ts":"2026-11-20T19:18:28.015Z","op":"session.launch","status":"ok","durationMs":8009,"args":{"transport":"script-invocation"},"result":{"version":"26.5.3x9","build":"9","ownership":{"kind":"owned","evidence":"pid 17198 is still the only instance"}}} +{"seq":2,"ts":"2026-11-20T19:18:29.266Z","op":"session.authorization","status":"ok","durationMs":0,"result":{"ownership":"owned","granted":["extensionMethods","hostEnvironment","menuCommands"]}} +{"seq":3,"ts":"2026-11-20T19:18:34.593Z","op":"extension.call","status":"ok","durationMs":1830,"args":{"method":"aeDevtools.trustedEval","source":"(function(){var f=app.project.file;var d=(typeof app.project.dirty===\"boolean\")?String(app.project.dirty):\"unsupported\";return \"V:\"+String(app.version)+\"|F:\"+(f?encodeURIComponent(f.fsName):\"\")+\"|N:\"+String(app.project.numItems)+\"|D:\"+d;})()","requestId":"conf-eval-identity.before-mwpd3t3d"},"result":{"requestId":"conf-eval-identity.before-mwpd3t3d","ok":true,"resultJson":"\"V:26.5.3x9|F:|N:0|D:false\"","valueText":null,"valueType":"string"}} +{"seq":4,"ts":"2026-11-20T19:18:37.341Z","op":"extension.call","status":"ok","durationMs":1848,"args":{"method":"aeDevtools.trustedEval","source":"(function(){var f=app.project.file;var d=(typeof app.project.dirty===\"boolean\")?String(app.project.dirty):\"unsupported\";return \"V:\"+String(app.version)+\"|F:\"+(f?encodeURIComponent(f.fsName):\"\")+\"|N:\"+String(app.project.numItems)+\"|D:\"+d;})()","requestId":"conf-eval-identity.recheck-mwpd3v58"},"result":{"requestId":"conf-eval-identity.recheck-mwpd3v58","ok":true,"resultJson":"\"V:26.5.3x9|F:|N:0|D:false\"","valueText":null,"valueType":"string"}} +{"seq":5,"ts":"2026-11-20T19:18:40.435Z","op":"extension.call","status":"ok","durationMs":2145,"args":{"method":"aeDevtools.trustedEval","source":"(function(){\n\nfunction __adp_fail(msg) { throw new Error(\"adapter: \" + msg); }\nfunction __adp_items() { return app.project.items; }\n// Type discrimination uses instanceof (locale-independent). typeName\n// is localized and must NOT be used for branching (PR #46 review).\nfunction __adp_typeMatch(it, ctor) {\n if (ctor === null) return true;\n try { return it instanceof ctor; } catch (e) { return false; }\n}\nfunction __adp_findInColl(coll, name, ctor, scope) {\n var found = null;\n var sawName = false;\n for (v…(+9431)","requestId":"conf-op-project.new#1-mwpd3x9x"},"result":{"requestId":"conf-op-project.new#1-mwpd3x9x","ok":true,"resultJson":"\"{\\\"ok\\\":true}\"","valueText":null,"valueType":"string"}} +{"seq":6,"ts":"2026-11-20T19:18:42.838Z","op":"extension.call","status":"ok","durationMs":1647,"args":{"method":"aeDevtools.trustedEval","source":"(function(){\n\nfunction __adp_fail(msg) { throw new Error(\"adapter: \" + msg); }\nfunction __adp_items() { return app.project.items; }\n// Type discrimination uses instanceof (locale-independent). typeName\n// is localized and must NOT be used for branching (PR #46 review).\nfunction __adp_typeMatch(it, ctor) {\n if (ctor === null) return true;\n try { return it instanceof ctor; } catch (e) { return false; }\n}\nfunction __adp_findInColl(coll, name, ctor, scope) {\n var found = null;\n var sawName = false;\n for (v…(+9484)","requestId":"conf-op-project.save#2-mwpd3zne"},"result":{"requestId":"conf-op-project.save#2-mwpd3zne","ok":true,"resultJson":"\"{\\\"ok\\\":true}\"","valueText":null,"valueType":"string"}} +{"seq":7,"ts":"2026-11-20T19:18:44.949Z","op":"extension.call","status":"ok","durationMs":1703,"args":{"method":"aeDevtools.trustedEval","source":"(function(){var f=app.project.file;var d=(typeof app.project.dirty===\"boolean\")?String(app.project.dirty):\"unsupported\";return \"V:\"+String(app.version)+\"|F:\"+(f?encodeURIComponent(f.fsName):\"\")+\"|N:\"+String(app.project.numItems)+\"|D:\"+d;})()","requestId":"conf-eval-identity.fixture-mwpd41i4"},"result":{"requestId":"conf-eval-identity.fixture-mwpd41i4","ok":true,"resultJson":"\"V:26.5.3x9|F:%2Ftmp%2Frun-028%2FConformance-Disposable.aep|N:0|D:false\"","valueText":null,"valueType":"string"}} +{"seq":8,"ts":"2026-11-20T19:18:47.312Z","op":"extension.call","status":"ok","durationMs":1556,"args":{"method":"aeDevtools.trustedEval","source":"(function(){\n\nfunction __adp_fail(msg) { throw new Error(\"adapter: \" + msg); }\nfunction __adp_items() { return app.project.items; }\n// Type discrimination uses instanceof (locale-independent). typeName\n// is localized and must NOT be used for branching (PR #46 review).\nfunction __adp_typeMatch(it, ctor) {\n if (ctor === null) return true;\n try { return it instanceof ctor; } catch (e) { return false; }\n}\nfunction __adp_findInColl(coll, name, ctor, scope) {\n var found = null;\n var sawName = false;\n for (v…(+10130)","requestId":"conf-op-read.projectSummary#3-mwpd434s"},"result":{"requestId":"conf-op-read.projectSummary#3-mwpd434s","ok":true,"resultJson":"\"{\\\"ok\\\":true,\\\"count\\\":0,\\\"numItems\\\":0,\\\"items\\\":[],\\\"activeItem\\\":null,\\\"selection\\\":[]}\"","valueText":null,"valueType":"string"}} +{"seq":9,"ts":"2026-11-20T19:18:49.087Z","op":"extension.call","status":"ok","durationMs":1400,"args":{"method":"aeDevtools.trustedEval","source":"(function(){\n\nfunction __adp_fail(msg) { throw new Error(\"adapter: \" + msg); }\nfunction __adp_items() { return app.project.items; }\n// Type discrimination uses instanceof (locale-independent). typeName\n// is localized and must NOT be used for branching (PR #46 review).\nfunction __adp_typeMatch(it, ctor) {\n if (ctor === null) return true;\n try { return it instanceof ctor; } catch (e) { return false; }\n}\nfunction __adp_findInColl(coll, name, ctor, scope) {\n var found = null;\n var sawName = false;\n for (v…(+9673)","requestId":"conf-op-item.addComp#4-mwpd44yn"},"result":{"requestId":"conf-op-item.addComp#4-mwpd44yn","ok":true,"resultJson":"\"{\\\"ok\\\":true,\\\"id\\\":1,\\\"name\\\":\\\"Conformance QA Comp\\\",\\\"parent\\\":null}\"","valueText":null,"valueType":"string"}} +{"seq":10,"ts":"2026-11-20T19:18:51.057Z","op":"extension.call","status":"ok","durationMs":1458,"args":{"method":"aeDevtools.trustedEval","source":"(function(){\n\nfunction __adp_fail(msg) { throw new Error(\"adapter: \" + msg); }\nfunction __adp_items() { return app.project.items; }\n// Type discrimination uses instanceof (locale-independent). typeName\n// is localized and must NOT be used for branching (PR #46 review).\nfunction __adp_typeMatch(it, ctor) {\n if (ctor === null) return true;\n try { return it instanceof ctor; } catch (e) { return false; }\n}\nfunction __adp_findInColl(coll, name, ctor, scope) {\n var found = null;\n var sawName = false;\n for (v…(+10130)","requestId":"conf-op-read.projectSummary#5-mwpd46bw"},"result":{"requestId":"conf-op-read.projectSummary#5-mwpd46bw","ok":true,"resultJson":"\"{\\\"ok\\\":true,\\\"count\\\":1,\\\"numItems\\\":1,\\\"items\\\":[{\\\"name\\\":\\\"Conformance QA Comp\\\",\\\"typeName\\\":\\\"コンポジション\\\",\\\"id\\\":1,\\\"selected\\\":false,\\\"parent\\\":null}],\\\"activeItem\\\":null,\\\"selection\\\":[]}\"","valueText":null,"valueType":"string"}} +{"seq":11,"ts":"2026-11-20T19:18:52.975Z","op":"menu.execute","status":"ok","durationMs":1521,"args":{"method":"menu.execute","id":16},"result":{"id":16,"durationMs":22,"before":"{...}","after":"{...}"}} +{"seq":12,"ts":"2026-11-20T19:18:52.976Z","op":"menu.execute.scene","status":"ok","durationMs":0,"args":{"id":16,"name":"Undo"},"result":{"comp":null,"itemsBefore":1,"itemsAfter":0,"layersBefore":[],"layersAfter":[],"added":[],"removed":[]}} +{"seq":13,"ts":"2026-11-20T19:18:55.280Z","op":"extension.call","status":"ok","durationMs":1545,"args":{"method":"aeDevtools.trustedEval","source":"(function(){\n\nfunction __adp_fail(msg) { throw new Error(\"adapter: \" + msg); }\nfunction __adp_items() { return app.project.items; }\n// Type discrimination uses instanceof (locale-independent). typeName\n// is localized and must NOT be used for branching (PR #46 review).\nfunction __adp_typeMatch(it, ctor) {\n if (ctor === null) return true;\n try { return it instanceof ctor; } catch (e) { return false; }\n}\nfunction __adp_findInColl(coll, name, ctor, scope) {\n var found = null;\n var sawName = false;\n for (v…(+10130)","requestId":"conf-op-read.projectSummary#6-mwpd49bn"},"result":{"requestId":"conf-op-read.projectSummary#6-mwpd49bn","ok":true,"resultJson":"\"{\\\"ok\\\":true,\\\"count\\\":0,\\\"numItems\\\":0,\\\"items\\\":[],\\\"activeItem\\\":null,\\\"selection\\\":[]}\"","valueText":null,"valueType":"string"}} +{"seq":14,"ts":"2026-11-20T19:18:56.833Z","op":"extension.call","status":"ok","durationMs":1198,"args":{"method":"aeDevtools.trustedEval","source":"(function(){\n\nfunction __adp_fail(msg) { throw new Error(\"adapter: \" + msg); }\nfunction __adp_items() { return app.project.items; }\n// Type discrimination uses instanceof (locale-independent). typeName\n// is localized and must NOT be used for branching (PR #46 review).\nfunction __adp_typeMatch(it, ctor) {\n if (ctor === null) return true;\n try { return it instanceof ctor; } catch (e) { return false; }\n}\nfunction __adp_findInColl(coll, name, ctor, scope) {\n var found = null;\n var sawName = false;\n for (v…(+9673)","requestId":"conf-op-item.addComp#7-mwpd4b3q"},"result":{"requestId":"conf-op-item.addComp#7-mwpd4b3q","ok":true,"resultJson":"\"{\\\"ok\\\":true,\\\"id\\\":13,\\\"name\\\":\\\"Conformance Temp Comp\\\",\\\"parent\\\":null}\"","valueText":null,"valueType":"string"}} +{"seq":15,"ts":"2026-11-20T19:18:59.667Z","op":"extension.call","status":"ok","durationMs":1988,"args":{"method":"aeDevtools.trustedEval","source":"(function(){\n\nfunction __adp_fail(msg) { throw new Error(\"adapter: \" + msg); }\nfunction __adp_items() { return app.project.items; }\n// Type discrimination uses instanceof (locale-independent). typeName\n// is localized and must NOT be used for branching (PR #46 review).\nfunction __adp_typeMatch(it, ctor) {\n if (ctor === null) return true;\n try { return it instanceof ctor; } catch (e) { return false; }\n}\nfunction __adp_findInColl(coll, name, ctor, scope) {\n var found = null;\n var sawName = false;\n for (v…(+9520)","requestId":"conf-op-item.remove#8-mwpd4cb6"},"result":{"requestId":"conf-op-item.remove#8-mwpd4cb6","ok":true,"resultJson":"\"{\\\"ok\\\":true,\\\"removed\\\":\\\"Conformance Temp Comp\\\"}\"","valueText":null,"valueType":"string"}} +{"seq":16,"ts":"2026-11-20T19:19:02.101Z","op":"extension.call","status":"ok","durationMs":1599,"args":{"method":"aeDevtools.trustedEval","source":"(function(){\n\nfunction __adp_fail(msg) { throw new Error(\"adapter: \" + msg); }\nfunction __adp_items() { return app.project.items; }\n// Type discrimination uses instanceof (locale-independent). typeName\n// is localized and must NOT be used for branching (PR #46 review).\nfunction __adp_typeMatch(it, ctor) {\n if (ctor === null) return true;\n try { return it instanceof ctor; } catch (e) { return false; }\n}\nfunction __adp_findInColl(coll, name, ctor, scope) {\n var found = null;\n var sawName = false;\n for (v…(+10130)","requestId":"conf-op-read.projectSummary#9-mwpd4ehn"},"result":{"requestId":"conf-op-read.projectSummary#9-mwpd4ehn","ok":true,"resultJson":"\"{\\\"ok\\\":true,\\\"count\\\":0,\\\"numItems\\\":0,\\\"items\\\":[],\\\"activeItem\\\":null,\\\"selection\\\":[]}\"","valueText":null,"valueType":"string"}} +{"seq":17,"ts":"2026-11-20T19:19:04.474Z","op":"extension.call","status":"ok","durationMs":1634,"args":{"method":"aeDevtools.trustedEval","source":"(function(){\n\nfunction __adp_fail(msg) { throw new Error(\"adapter: \" + msg); }\nfunction __adp_items() { return app.project.items; }\n// Type discrimination uses instanceof (locale-independent). typeName\n// is localized and must NOT be used for branching (PR #46 review).\nfunction __adp_typeMatch(it, ctor) {\n if (ctor === null) return true;\n try { return it instanceof ctor; } catch (e) { return false; }\n}\nfunction __adp_findInColl(coll, name, ctor, scope) {\n var found = null;\n var sawName = false;\n for (v…(+9484)","requestId":"conf-op-project.save#10-mwpd4gdd"},"result":{"requestId":"conf-op-project.save#10-mwpd4gdd","ok":true,"resultJson":"\"{\\\"ok\\\":true}\"","valueText":null,"valueType":"string"}} +{"seq":18,"ts":"2026-11-20T19:19:07.310Z","op":"extension.call","status":"ok","durationMs":1556,"args":{"method":"aeDevtools.trustedEval","source":"// Minimal valid ExtendScript-bound script.\nfunction greet() {\n return \"hello ae \" + app.version;\n}\nvar msg = greet();\n$.global.__toolchainProbe = msg;\n//# sourceMappingURL=ok.js.map","requestId":"conf-jsx-ok-mwpd4imw"},"result":{"requestId":"conf-jsx-ok-mwpd4imw","ok":true,"resultJson":"\"hello ae 26.5.3x9\"","valueText":null,"valueType":"string"}} +{"seq":19,"ts":"2026-11-20T19:19:09.724Z","op":"extension.call","status":"ok","durationMs":1517,"args":{"method":"aeDevtools.trustedEval","source":"\"\" + $.global.__toolchainProbe","requestId":"conf-jsx-read-mwpd4kdt"},"result":{"requestId":"conf-jsx-read-mwpd4kdt","ok":true,"resultJson":"\"hello ae 26.5.3x9\"","valueText":null,"valueType":"string"}} +{"seq":20,"ts":"2026-11-20T19:19:12.259Z","op":"extension.call","status":"ok","durationMs":1900,"args":{"method":"aeDevtools.trustedEval","source":"// Deliberate runtime fault for real-host sourcemap verification.\nfunction boom() {\n var missing = __toolchainUndeclaredIdentifier;\n $.global.__toolchainBoom = missing;\n}\nboom();\n//# sourceMappingURL=runtime-error.js.map","requestId":"conf-jsx-bad-mwpd4m97"},"result":{"requestId":"conf-jsx-bad-mwpd4m97","ok":false,"evalError":"{...}"}} +{"seq":21,"ts":"2026-11-20T19:19:13.943Z","op":"extension.call","status":"ok","durationMs":1343,"args":{"method":"aeDevtools.trustedEval","source":"String(app.version)","requestId":"req-34a843cf1c1ba603"},"result":{"requestId":"req-34a843cf1c1ba603","ok":true,"resultJson":"\"26.5.3x9\"","valueText":null,"valueType":"string"}} +{"seq":22,"ts":"2026-11-20T19:19:16.219Z","op":"extension.call","status":"ok","durationMs":1678,"args":{"method":"aeDevtools.trustedEval","source":"String(app.project.numItems)","requestId":"req-a71bff4a4f3ef216"},"result":{"requestId":"req-a71bff4a4f3ef216","ok":true,"resultJson":"\"0\"","valueText":null,"valueType":"string"}} +{"seq":23,"ts":"2026-11-20T19:19:18.280Z","op":"extension.call","status":"ok","durationMs":1368,"args":{"method":"aeDevtools.trustedEval","source":"__a8nSliceUndeclaredIdentifier;","requestId":"req-30d568b2805af37a"},"result":{"requestId":"req-30d568b2805af37a","ok":false,"evalError":"{...}"}} +{"seq":24,"ts":"2026-11-20T19:19:19.912Z","op":"extension.call","status":"ok","durationMs":1225,"args":{"method":"aeDevtools.trustedEval","source":"String(app.project.numItems + 0)","requestId":"req-3d1ce8016ec7abfb"},"result":{"requestId":"req-3d1ce8016ec7abfb","ok":true,"resultJson":"\"0\"","valueText":null,"valueType":"string"}} +{"seq":25,"ts":"2026-11-20T19:19:21.707Z","op":"extension.call","status":"ok","durationMs":1324,"args":{"method":"aeDevtools.trustedEval","source":"$.global.__a8nSliceCounter = (typeof $.global.__a8nSliceCounter === 'undefined' ? 0 : $.global.__a8nSliceCounter) + 1; String($.global.__a8nSliceCounter);","requestId":"req-63b71c048cf4be26"},"result":{"requestId":"req-63b71c048cf4be26","ok":true,"resultJson":"\"1\"","valueText":null,"valueType":"string"}} +{"seq":26,"ts":"2026-11-20T19:19:23.629Z","op":"extension.call","status":"ok","durationMs":1380,"args":{"method":"aeDevtools.trustedEval","source":"$.global.__a8nSliceCounter = (typeof $.global.__a8nSliceCounter === 'undefined' ? 0 : $.global.__a8nSliceCounter) + 1; String($.global.__a8nSliceCounter);","requestId":"req-8a6c1369feaacedf"},"result":{"requestId":"req-8a6c1369feaacedf","ok":true,"resultJson":"\"2\"","valueText":null,"valueType":"string"}} diff --git a/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/Conformance-Disposable.aep b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/Conformance-Disposable.aep new file mode 100644 index 00000000..120a8de7 Binary files /dev/null and b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/Conformance-Disposable.aep differ diff --git a/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/Conformance-MCP-Disposable.aep b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/Conformance-MCP-Disposable.aep new file mode 100644 index 00000000..20880cf7 Binary files /dev/null and b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/Conformance-MCP-Disposable.aep differ diff --git a/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/a8n-host-ext.js b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/a8n-host-ext.js new file mode 100644 index 00000000..757c944b --- /dev/null +++ b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/a8n-host-ext.js @@ -0,0 +1,1618 @@ +/* ae-a8n-extensions {"contract":1,"methods":["aeDevtools.trustedEval","aeDevtools.evalProgram"],"registration":"4e39bf8055917b6e731938d97e50ba096ad89778ca4fb3aef107611d61276ab6"} */ +function __a8nRegisterExtensions() { + var context = this.__a8n; + if (context === undefined || context === null) { + throw new Error("extensions were declared without an __a8n host context"); + } + context.extensions = context.extensions || {}; + context.extensionsRegistration = "4e39bf8055917b6e731938d97e50ba096ad89778ca4fb3aef107611d61276ab6"; + context.extensions["aeDevtools.trustedEval"] = (function (params) { + var requestId = ""; + var source = ""; + if (params !== null && params !== undefined) { + if (params.requestId !== undefined && params.requestId !== null) { + requestId = String(params.requestId); + } + if (params.source !== undefined && params.source !== null) { + source = String(params.source); + } + } + + // Same codec the host protocol uses, loaded the same way a8n-host.js + // loads it: $.evalFile returns the file's completion value, and the file + // sits beside the generated host script ($.fileName's directory). + var codec = null; + try { + codec = $.evalFile(new File($.fileName).parent.fsName + "/a8n-json.js"); + } catch (codecError) { + codec = null; + } + if (codec === null || typeof codec.stringify !== "function") { + codec = null; + } + + // Exactly one evaluation, always as a program. A previous revision + // retried SyntaxError failures wrapped as a function body — but a + // SyntaxError can also be thrown at RUNTIME by the evaluated code + // itself (inner eval/new Function/RegExp), after partial side effects, + // so the retry could execute the source twice. There is no retry: + // parse failure and runtime failure are both reported, and callers + // that need function-body semantics wrap the source themselves. + var value; + var evalError = null; + var didThrow = false; + // Scope separation: the program must not reach this method's + // bookkeeping (didThrow/evalError/value/requestId/...). A direct + // eval here shares THIS function's variable environment, and any + // function nested inside it still resolves names through this + // scope — so the eval is delegated to the sibling method + // aeDevtools.evalProgram, whose lexical scope chain never includes + // this method's locals. Exactly one evaluation, always as a + // program; there is no retry (see above). + var runner = null; + try { + runner = __a8n.extensions["aeDevtools.evalProgram"]; + } catch (lookupError) { + runner = null; + } + if (typeof runner !== "function") { + return { + requestId: requestId, + ok: false, + evalError: { name: "EvalError", message: "aeDevtools.evalProgram runner unavailable", line: null, file: null } + }; + } + try { + value = runner({ source: source }); + } catch (firstError) { + didThrow = true; + evalError = firstError; + } + // didThrow (not evalError !== null) is the failure signal: a source + // that throws null or undefined leaves evalError nullish and must + // still classify as a failed evaluation, never as success. + if (didThrow) { + var name = "EvalError"; + var message = evalError === null ? "thrown null" + : evalError === undefined ? "thrown undefined" + : "unknown eval failure"; + var line = null; + var file = null; + if (evalError !== null && evalError !== undefined) { + try { if (evalError.name !== undefined) name = String(evalError.name); } catch (e1) {} + try { if (evalError.message !== undefined) message = String(evalError.message); } catch (e2) {} + try { if (evalError.line !== undefined) line = evalError.line; } catch (e3) {} + try { if (evalError.file !== undefined) file = String(evalError.file); } catch (e4) {} + } + return { + requestId: requestId, + ok: false, + evalError: { name: name, message: message, line: line, file: file } + }; + } + + // Result marshalling. Primitives pass through; objects/arrays are only + // JSON-serialized when the codec accepts them — an AE object graph is + // never handed to the serializer speculatively (hang/overflow risk), it + // degrades to text instead. undefined becomes null so the reply shape is + // stable. + var valueType = typeof value; + var resultJson = null; + var valueText = null; + var serialized = false; + if (value === undefined || value === null) { + serialized = true; + } else if (valueType === "string" || valueType === "number" || + valueType === "boolean") { + if (codec !== null) { + try { resultJson = codec.stringify(value); serialized = true; } catch (e5) {} + } + if (!serialized) { + try { valueText = String(value); } catch (e6) { valueText = null; } + serialized = valueText !== null; + } + } else if (codec !== null) { + // Objects and arrays: attempt codec serialization inside try/catch. + // ExtendScript objects expose few own enumerable properties, so this + // resolves quickly in practice; a stack overflow throws and is caught. + try { + resultJson = codec.stringify(value); + serialized = true; + } catch (e7) { + serialized = false; + } + } + if (!serialized) { + try { valueText = String(value); } catch (e8) { valueText = null; } + } + return { + requestId: requestId, + ok: true, + resultJson: serialized && resultJson !== null ? resultJson : null, + valueText: valueText, + valueType: valueType + }; +}); + context.extensions["aeDevtools.evalProgram"] = (function (params) { + return eval(String(params.source)); +}); +} +__a8nRegisterExtensions(); +/*! + * a8n-host.js — the part of ae-a8n that actually runs inside After Effects. + * + * Contract with the driver: the generated bootstrap sets a global `__a8n` + * with the request and result paths, then evals this file. This script reads + * the request, dispatches to a method, and publishes the result by rename. + * + * The identical file is evaluated against the in-repo fake host during tests — + * only the peer supplying `app` differs. Keep it that way: any logic that + * needs to differ per-peer belongs in the peer, not here. + * + * ES3 only. ExtendScript has no `let`/`const`, no arrow functions, no `JSON`, + * no `String.prototype.trim`, and no `Error.captureStackTrace`. + */ + +(function () { + // ---------------------------------------------------------------- codec -- + + function loadJson() { + // Always the bundled codec. AE's engine has no `JSON` of its own; one that + // is present was put there by another extension (observed on 26.5x89: a + // Babel-built polyfill, present once startup finished and absent on a cold + // start), so preferring it made the host behave differently cold and warm. + // + // The codec comes back as `$.evalFile`'s completion value. Looking it up + // on the global object does not work: called from inside a function, a + // real AE keeps the included file's `var`s in that function's scope. + var codec = $.evalFile(new File($.fileName).parent.fsName + "/a8n-json.js"); + if ( + codec === undefined || + codec === null || + typeof codec.parse !== "function" || + typeof codec.stringify !== "function" + ) { + throw new Error("a8n-json.js did not produce a JSON codec"); + } + return codec; + } + + // ------------------------------------------------------------------ fs --- + + function readTextFile(path) { + var file = new File(path); + file.encoding = "UTF-8"; + if (!file.exists) { + throw new Error("request file not found: " + path); + } + if (!file.open("r")) { + throw new Error("cannot open request file: " + path); + } + var text = file.read(); + file.close(); + return text; + } + + function writeTextFile(path, text) { + var file = new File(path); + file.encoding = "UTF-8"; + // ExtendScript cannot create intermediate directories, and the driver + // already created them. Opening for write truncates. + if (!file.open("w")) { + throw new Error("cannot open result file for writing: " + path); + } + file.write(text); + file.close(); + } + + function parentOf(path) { + var file = new File(path); + return file.parent.fsName; + } + + // -------------------------------------------------------------- errors --- + + function toErrorPayload(error) { + var payload = { + name: "Error", + message: "unknown host error" + }; + if (error === null || typeof error !== "object") { + payload.message = String(error); + return payload; + } + if (error.name !== undefined && error.name !== null) { + payload.name = String(error.name); + } + if (error.message !== undefined && error.message !== null) { + payload.message = String(error.message); + } else { + payload.message = String(error); + } + if (error.line !== undefined && typeof error.line === "number") { + payload.line = error.line; + } + // AE raises errors carrying `errorNumber` (e.g. 5023 for a missing effect). + if (error.errorNumber !== undefined && typeof error.errorNumber === "number") { + payload.aeError = error.errorNumber; + } + // Set by the host's own typed errors (NoValueError) for the API to branch on. + if (typeof error.kind === "string") { + payload.kind = error.kind; + } + if (error.matchName !== undefined && error.matchName !== null) { + payload.message = payload.message + " (matchName: " + String(error.matchName) + ")"; + } + return payload; + } + + // ------------------------------------------------------------- helpers --- + + // ExtendScript's Object.prototype has members a plain `object[key]` finds + // (functions named "+", "-", "*", "/", `toSource`, `watch`, ... observed on + // AE 26.5x89), so a key that came from a request is looked up as own only. + function has(object, key) { + return Object.prototype.hasOwnProperty.call(object, key); + } + + function requireParam(params, name) { + if (params === null || params === undefined || !has(params, name) || params[name] === undefined) { + throw new Error("missing required parameter: " + name); + } + return params[name]; + } + + function optionalParam(params, name, fallback) { + if (params === null || params === undefined || !has(params, name) || params[name] === undefined) { + return fallback; + } + return params[name]; + } + + function getProject() { + if (app.project === null || app.project === undefined) { + throw new Error("no project is open"); + } + return app.project; + } + + function findComp(name) { + // A real Project has no lookup by name (`itemByName` is undefined on AE + // 26.5x89), so walk the items. Names are not unique in AE; the first + // composition with the name wins, and a non-composition item that shares + // it is skipped. + var project = getProject(); + var sawOther = false; + for (var i = 1; i <= project.numItems; i++) { + var item = project.item(i); + if (item.name === name) { + if (item instanceof CompItem) { + return item; + } + sawOther = true; + } + } + if (sawOther) { + throw new Error("item is not a composition: " + name); + } + var missing = new Error("composition not found: " + name); + // The API turns exactly this into EntityNotFoundError; anything else a + // lookup raises is reported as itself. + missing.name = "NotFoundError"; + throw missing; + } + + function findLayer(comp, name) { + var layer = comp.layer(name); + if (layer === null || layer === undefined) { + throw new Error("layer not found in '" + comp.name + "': " + name); + } + return layer; + } + + function effectParade(layer) { + var parade = layer.property("ADBE Effect Parade"); + if (parade === null || parade === undefined) { + throw new Error("layer has no effect parade: " + layer.name); + } + return parade; + } + + /** + * Effects are addressed by match name internally, but callers know display + * names. Try the given identifier as a match name first (the documented, + * locale-independent path), then fall back to scanning by display name. + */ + function findEffect(layer, identifier) { + var parade = effectParade(layer); + var byName = parade.property(identifier); + if (byName !== null && byName !== undefined) { + return byName; + } + var count = parade.numProperties; + for (var i = 1; i <= count; i++) { + var candidate = parade.property(i); + if (candidate.name === identifier || candidate.matchName === identifier) { + return candidate; + } + } + return null; + } + + function applyEffect(layer, identifier) { + var parade = effectParade(layer); + var existing = findEffect(layer, identifier); + if (existing !== null && existing !== undefined) { + return { effect: existing, created: false }; + } + try { + // Match-name form: the deterministic path for third-party plugins. + var created = parade.addProperty(identifier); + if (created === null || created === undefined) { + throw new Error("addProperty returned nothing for: " + identifier); + } + return { effect: created, created: true }; + } catch (matchNameError) { + // Display-name form: some plugins register under their menu label. + var byLabel = parade.addProperty(identifier); + if (byLabel === null || byLabel === undefined) { + throw matchNameError; + } + return { effect: byLabel, created: true }; + } + } + + function findParameter(effect, identifier) { + var byName = effect.property(identifier); + if (byName !== null && byName !== undefined) { + return byName; + } + var count = effect.numProperties; + for (var i = 1; i <= count; i++) { + var candidate = effect.property(i); + if (candidate.name === identifier || candidate.matchName === identifier) { + return candidate; + } + } + return null; + } + + // PropertyValueType member names, in Adobe's order. Looked up on the live + // enum, so the numbers come from the host, not from here. + var VALUE_TYPE_NAMES = [ + "NO_VALUE", "ThreeD_SPATIAL", "ThreeD", "TwoD_SPATIAL", "TwoD", "OneD", + "COLOR", "CUSTOM_VALUE", "MARKER", "LAYER_INDEX", "MASK_INDEX", "SHAPE", + "TEXT_DOCUMENT" + ]; + + function valueTypeName(property) { + var type = property.propertyValueType; + for (var i = 0; i < VALUE_TYPE_NAMES.length; i++) { + // Constant keys, not request data: a plain lookup is safe here, and + // AE's enums are host objects that need not report own properties. + var member = PropertyValueType[VALUE_TYPE_NAMES[i]]; + if (member !== undefined && member === type) { + return VALUE_TYPE_NAMES[i]; + } + } + return String(type); + } + + /** + * The value shapes this API carries, by value type: `min`/`max` array + * lengths that `setValue` accepts on AE 26.5x89, or 0/0 for a single + * number. ThreeD takes 2 (z becomes 0) and COLOR 3 (alpha becomes 1). + * Anything else (MARKER, SHAPE, TEXT_DOCUMENT) is not carried. + */ + function valueShape(name) { + if (name === "OneD" || name === "LAYER_INDEX" || name === "MASK_INDEX") { + return { min: 0, max: 0, text: "a number" }; + } + if (name === "TwoD" || name === "TwoD_SPATIAL") { + return { min: 2, max: 2, text: "an array of 2 numbers" }; + } + if (name === "ThreeD" || name === "ThreeD_SPATIAL") { + return { min: 2, max: 3, text: "an array of 2 or 3 numbers" }; + } + if (name === "COLOR") { + return { min: 3, max: 4, text: "an array of 3 or 4 numbers" }; + } + return null; + } + + /** + * Whether a script can read this property's value, without reading it. + * On AE 26.5x89 reading `value` throws for PropertyValueType.NO_VALUE + * (e.g. ADBE Tint-0004, ADBE Ramp-0008) and CUSTOM_VALUE (Levels' + * histogram, Curves), and a group (Compositing Options) has no value. + * Value types this API does not carry count as "custom-value". + */ + function propertyKind(property) { + if (property.propertyType !== PropertyType.PROPERTY) { + return "group"; + } + var name = valueTypeName(property); + if (name === "NO_VALUE") { + return "no-value"; + } + return valueShape(name) === null ? "custom-value" : "value"; + } + + function describeProperty(property) { + var kind = propertyKind(property); + var out = { name: property.name, kind: kind }; + if (property.matchName !== undefined && property.matchName !== null) { + out.matchName = property.matchName; + } + if (kind !== "group") { + out.valueType = valueTypeName(property); + } + if (kind === "value") { + out.value = property.value; + } + return out; + } + + function isFiniteNumber(value) { + return typeof value === "number" && isFinite(value); + } + + // Not `instanceof Array`: request values come from the codec, which may run + // in another realm (as a8n-json.js notes for its own check). + function isArray(value) { + return Object.prototype.toString.call(value) === "[object Array]"; + } + + /** + * Refuses, before touching the property, a write it cannot take: a + * property without a value (NoValueError), or a value of the wrong shape + * for its type (ValueShapeError). AE itself would coerce some of these + * (observed: `[]` written to a OneD property becomes 0). + */ + function requireWritableValue(property, value) { + var kind = propertyKind(property); + var error; + if (kind !== "value") { + error = new Error( + "property has no value to write (" + kind + "): " + property.matchName + ); + error.name = "NoValueError"; + error.kind = kind; + throw error; + } + var name = valueTypeName(property); + var shape = valueShape(name); + var fits; + if (shape.max === 0) { + fits = isFiniteNumber(value); + } else { + fits = isArray(value) && value.length >= shape.min && value.length <= shape.max; + for (var i = 0; fits && i < value.length; i++) { + fits = isFiniteNumber(value[i]); + } + } + if (!fits) { + error = new Error( + property.matchName + " (" + name + ") takes " + shape.text + ); + error.name = "ValueShapeError"; + error.kind = name; + throw error; + } + } + + function zeroPad(value, width) { + var text = String(value); + while (text.length < width) { + text = "0" + text; + } + return text; + } + + // ------------------------------------------------------------- methods --- + + var methods = {}; + + methods["app.info"] = function () { + var info = { version: String(app.version) }; + // AE exposes the build as `app.buildNumber`; `app.build` is undefined on a + // real host (observed on 26.5x89). An absent value is left out rather than + // reported as the string "undefined". + try { + var build = app.buildNumber; + if (build !== undefined && build !== null && String(build) !== "") { + info.build = String(build); + } + } catch (e) { + // build is not guaranteed; version alone is enough for a readiness probe. + } + return info; + }; + + /** + * Refuses when the open project has unsaved changes, unless the caller + * explicitly allowed discarding them. Named, so the driver can tell a + * decision the caller must make from a failure. + */ + function guardUnsavedChanges(params, action) { + var project = app.project; + if (project === null || project === undefined || !project.dirty) { + return false; + } + if (optionalParam(params, "discardUnsavedChanges", false) !== true) { + var refused = new Error("the open project has unsaved changes; " + action + " would discard them"); + refused.name = "UnsavedChangesError"; + throw refused; + } + return true; + } + + /** + * Shows a modal dialog in After Effects and waits until it is closed. + * + * The dialog is native, not scripted: it is the one case an ExtendScript + * call cannot get out of on its own. It exists so the GUI fallback — the + * path that closes a dialog for a host that stopped answering — can be + * exercised against a dialog whose appearance and dismissal are known. + * + * `alert` blocks the script, so the result is written only after the + * dialog has been closed. A caller that gave up on the call must not send + * it again; the request is still running inside After Effects. + */ + methods["ui.alert"] = function (params) { + var message = String(requireParam(params, "message")); + // The GUI fallback may only press a window it has measured. Its one known + // class requires a static text beginning "ae-a8n:", so the marker is put + // on here, whatever the caller passed: a dialog this method raises has to + // be closable by the fallback it exists for. + var text = /^\s*ae-a8n:/.test(message) ? message : "ae-a8n: " + message; + alert(text); + return { dismissed: true, message: text }; + }; + + methods["app.quit"] = function (params) { + if (guardUnsavedChanges(params, "quitting")) { + // Closed first, untitled or not: a dirty project would otherwise put a + // save prompt in front of the quit. + app.project.close(CloseOptions.DO_NOT_SAVE_CHANGES); + } + app.quit(); + return { quitting: true }; + }; + + methods["project.open"] = function (params) { + var path = String(requireParam(params, "path")); + var file = new File(path); + if (!file.exists) { + throw new Error("project file not found: " + path); + } + // Opening replaces the open project; with unsaved changes AE would put a + // save prompt in front of the script, and the changes may be someone + // else's work. + if (guardUnsavedChanges(params, "opening another project")) { + app.project.close(CloseOptions.DO_NOT_SAVE_CHANGES); + } + var opened = app.open(file); + return { file: String(opened.fsName || opened.name) }; + }; + + methods["project.close"] = function (params) { + var save = optionalParam(params, "save", false); + if (save !== true) { + guardUnsavedChanges(params, "closing without saving"); + } + getProject().close( + save ? CloseOptions.SAVE_CHANGES : CloseOptions.DO_NOT_SAVE_CHANGES + ); + return { closed: true }; + }; + + methods["project.info"] = function () { + var project = getProject(); + return { + file: project.file === null ? null : String(project.file.fsName), + name: project.file === null ? null : String(project.file.name), + itemCount: project.numItems + }; + }; + + methods["project.comps"] = function () { + var project = getProject(); + var out = []; + for (var i = 1; i <= project.numItems; i++) { + var item = project.item(i); + if (item instanceof CompItem) { + out.push({ + name: item.name, + width: item.width, + height: item.height, + duration: item.duration, + frameRate: item.frameRate, + layerCount: item.numLayers + }); + } + } + return out; + }; + + methods["comp.info"] = function (params) { + return compInfo(findComp(String(requireParam(params, "name")))); + }; + + methods["comp.layers"] = function (params) { + var comp = findComp(String(requireParam(params, "name"))); + var out = []; + for (var i = 1; i <= comp.numLayers; i++) { + out.push(layerInfo(comp.layer(i))); + } + return out; + }; + + methods["comp.layer"] = function (params) { + var comp = findComp(String(requireParam(params, "comp"))); + var layer = findLayer(comp, String(requireParam(params, "layer"))); + return layerInfo(layer); + }; + + methods["layer.effects"] = function (params) { + var comp = findComp(String(requireParam(params, "comp"))); + var layer = findLayer(comp, String(requireParam(params, "layer"))); + var parade = effectParade(layer); + var out = []; + for (var i = 1; i <= parade.numProperties; i++) { + out.push({ name: parade.property(i).name, matchName: parade.property(i).matchName }); + } + return out; + }; + + methods["layer.applyEffect"] = function (params) { + var comp = findComp(String(requireParam(params, "comp"))); + var layer = findLayer(comp, String(requireParam(params, "layer"))); + var identifier = String(requireParam(params, "effect")); + var result = applyEffect(layer, identifier); + return { + name: result.effect.name, + matchName: result.effect.matchName, + created: result.created + }; + }; + + methods["effect.parameters"] = function (params) { + var effect = resolveEffect(params); + var out = []; + for (var i = 1; i <= effect.numProperties; i++) { + out.push(describeProperty(effect.property(i))); + } + return out; + }; + + methods["effect.getParameter"] = function (params) { + var effect = resolveEffect(params); + var property = requireProperty(effect, String(requireParam(params, "parameter"))); + return describeProperty(property); + }; + + methods["effect.setParameter"] = function (params) { + var effect = resolveEffect(params); + var property = requireProperty(effect, String(requireParam(params, "parameter"))); + var value = requireParam(params, "value"); + requireWritableValue(property, value); + property.setValue(value); + return describeProperty(property); + }; + + function resolveEffect(params) { + var comp = findComp(String(requireParam(params, "comp"))); + var layer = findLayer(comp, String(requireParam(params, "layer"))); + var effect = findEffect(layer, String(requireParam(params, "effect"))); + if (effect === null || effect === undefined) { + throw new Error("effect not found on layer '" + layer.name + "': " + params.effect); + } + return effect; + } + + function requireProperty(effect, identifier) { + var property = findParameter(effect, identifier); + if (property === null || property === undefined) { + throw new Error("parameter not found on effect '" + effect.name + "': " + identifier); + } + return property; + } + + methods["comp.renderFrame"] = function (params) { + var comp = findComp(String(requireParam(params, "comp"))); + var frame = Number(requireParam(params, "frame")); + var outputDir = String(requireParam(params, "outputDir")); + var namePrefix = String(optionalParam(params, "prefix", comp.name)); + + var folder = new Folder(outputDir); + if (!folder.exists && !folder.create()) { + throw new Error("cannot create output directory: " + outputDir); + } + var target = new File(folder.fsName + "/" + namePrefix + "." + zeroPad(frame, 5) + ".png"); + if (target.exists) { + target.remove(); + } + + // `saveFrameToPng`, not the render queue: a localised AE has no output + // module template named "PNG Sequence" (ja 26.5x89 lists none) and an + // output module's "Format" is read-only to setSettings, so the queue + // cannot be told to write PNG. `saveFrameToPng` renders at the viewer's + // resolution, so full resolution is forced for the frame and restored. + var previousResolution = comp.resolutionFactor; + comp.resolutionFactor = [1, 1]; + try { + var pending = comp.saveFrameToPng(frame * comp.frameDuration, target); + // It returns before the file is written (observed: 0 bytes at first); + // `wait()` blocks until it is, and throws if it failed. + try { + pending.wait(); + } catch (waitError) { + var cause = pending._exception !== undefined && pending._exception !== null + ? String(pending._exception) + : String(waitError.message); + throw new Error("frame " + frame + " of '" + comp.name + "' was not rendered: " + cause); + } + } finally { + comp.resolutionFactor = previousResolution; + } + + var size = readPngSize(target); + return { + path: String(target.fsName), + frame: frame, + width: size.width, + height: size.height + }; + }; + + /** Width and height from a PNG's IHDR: what was written, not what was asked for. */ + function readPngSize(file) { + if (!file.exists) { + throw new Error("rendered frame is missing: " + file.fsName); + } + file.encoding = "BINARY"; + if (!file.open("r")) { + throw new Error("cannot open rendered frame: " + file.fsName); + } + var head = file.read(24); + file.close(); + if (head.length < 24 || head.substring(12, 16) !== "IHDR") { + throw new Error("rendered frame is not a PNG: " + file.fsName); + } + function u32(offset) { + return head.charCodeAt(offset) * 16777216 + + head.charCodeAt(offset + 1) * 65536 + + head.charCodeAt(offset + 2) * 256 + + head.charCodeAt(offset + 3); + } + return { width: u32(16), height: u32(20) }; + } + + + // -------------------------------------------------- scene construction --- + + function layerType(layer) { + // Most specific first: a ShapeLayer and a TextLayer are also AVLayers. + if (typeof TextLayer !== "undefined" && layer instanceof TextLayer) { + return "text"; + } + if (typeof ShapeLayer !== "undefined" && layer instanceof ShapeLayer) { + return "shape"; + } + if (typeof AVLayer !== "undefined" && layer instanceof AVLayer) { + return "av"; + } + return "other"; + } + + function layerInfo(layer) { + return { + id: layer.id, + name: layer.name, + index: layer.index, + enabled: layer.enabled, + selected: layer.selected, + type: layerType(layer) + }; + } + + function compInfo(comp) { + return { + name: comp.name, + width: comp.width, + height: comp.height, + duration: comp.duration, + frameRate: comp.frameRate, + layerCount: comp.numLayers + }; + } + + function requireNumber(params, name, min) { + var value = requireParam(params, name); + if (!isFiniteNumber(value) || value < min) { + throw new Error(name + " must be a number >= " + min); + } + return value; + } + + function requireNumbers(value, name, length) { + if (!isArray(value) || value.length !== length) { + throw new Error(name + " must be an array of " + length + " numbers"); + } + for (var i = 0; i < value.length; i++) { + if (!isFiniteNumber(value[i])) { + throw new Error(name + " must be an array of " + length + " numbers"); + } + } + return value; + } + + methods["project.createComp"] = function (params) { + var project = getProject(); + var name = String(requireParam(params, "name")); + // Comps are addressed by name, so a second comp with the name could never + // be reached; refuse instead of creating it. + for (var i = 1; i <= project.numItems; i++) { + if (project.item(i).name === name) { + throw new Error("an item named '" + name + "' already exists"); + } + } + var comp = project.items.addComp( + name, + requireNumber(params, "width", 4), + requireNumber(params, "height", 4), + optionalParam(params, "pixelAspect", 1), + requireNumber(params, "duration", 0.001), + requireNumber(params, "frameRate", 1) + ); + return compInfo(comp); + }; + + methods["comp.openInViewer"] = function (params) { + var comp = findComp(String(requireParam(params, "name"))); + comp.openInViewer(); + return { name: comp.name, active: app.project.activeItem === comp }; + }; + + methods["comp.addText"] = function (params) { + var comp = findComp(String(requireParam(params, "comp"))); + var text = String(requireParam(params, "text")); + var layer = comp.layers.addText(text); + var name = optionalParam(params, "name", null); + if (name !== null) { + layer.name = String(name); + } + var source = layer.property("ADBE Text Properties").property("ADBE Text Document"); + var doc = source.value; + var font = optionalParam(params, "font", null); + if (font !== null) { + doc.font = String(font); + } + var fontSize = optionalParam(params, "fontSize", null); + if (fontSize !== null) { + doc.fontSize = requireNumber(params, "fontSize", 1); + } + var fillColor = optionalParam(params, "fillColor", null); + if (fillColor !== null) { + doc.applyFill = true; + doc.fillColor = requireNumbers(fillColor, "fillColor", 3); + } + doc.applyStroke = false; + source.setValue(doc); + var position = optionalParam(params, "position", null); + if (position !== null) { + layer.property("ADBE Transform Group").property("ADBE Position") + .setValue(requireNumbers(position, "position", 2)); + } + var applied = source.value; + var info = layerInfo(layer); + // What AE settled on, not what was asked for: an unknown font falls back. + info.font = String(applied.font); + info.fontSize = applied.fontSize; + return info; + }; + + methods["comp.selectLayers"] = function (params) { + var comp = findComp(String(requireParam(params, "comp"))); + var names = requireParam(params, "layers"); + if (!isArray(names)) { + throw new Error("layers must be an array of layer names"); + } + var wanted = []; + for (var i = 0; i < names.length; i++) { + wanted.push(findLayer(comp, String(names[i]))); + } + // Exactly the named layers: deselect everything else first. + for (var j = 1; j <= comp.numLayers; j++) { + comp.layer(j).selected = false; + } + for (var k = 0; k < wanted.length; k++) { + wanted[k].selected = true; + } + var selected = []; + for (var n = 1; n <= comp.numLayers; n++) { + if (comp.layer(n).selected) { + selected.push(comp.layer(n).name); + } + } + return { selected: selected }; + }; + + methods["layer.setEnabled"] = function (params) { + var comp = findComp(String(requireParam(params, "comp"))); + var layer = findLayer(comp, String(requireParam(params, "layer"))); + var enabled = requireParam(params, "enabled"); + if (enabled !== true && enabled !== false) { + throw new Error("enabled must be a boolean"); + } + layer.enabled = enabled; + return layerInfo(layer); + }; + + methods["layer.transform"] = function (params) { + var comp = findComp(String(requireParam(params, "comp"))); + var layer = findLayer(comp, String(requireParam(params, "layer"))); + var group = layer.property("ADBE Transform Group"); + return { + anchorPoint: group.property("ADBE Anchor Point").value, + position: group.property("ADBE Position").value, + scale: group.property("ADBE Scale").value, + rotation: group.property("ADBE Rotate Z").value, + opacity: group.property("ADBE Opacity").value + }; + }; + + function collectShapePaths(group, groups, out) { + for (var i = 1; i <= group.numProperties; i++) { + var child = group.property(i); + if (child.matchName === "ADBE Vector Group") { + var nested = groups.slice(0); + nested.push(child.name); + collectShapePaths(child.property("ADBE Vectors Group"), nested, out); + } else if (child.matchName === "ADBE Vector Shape - Group") { + var shape = child.property("ADBE Vector Shape").value; + out.push({ + groups: groups, + name: child.name, + closed: shape.closed, + vertices: shape.vertices, + inTangents: shape.inTangents, + outTangents: shape.outTangents + }); + } + } + } + + methods["layer.shapePaths"] = function (params) { + var comp = findComp(String(requireParam(params, "comp"))); + var layer = findLayer(comp, String(requireParam(params, "layer"))); + if (layerType(layer) !== "shape") { + throw new Error("not a shape layer: " + layer.name); + } + var out = []; + collectShapePaths(layer.property("ADBE Root Vectors Group"), [], out); + return out; + }; + + // ------------------------------------------------------- menu commands --- + + methods["app.setEnvironment"] = function (params) { + var variables = requireParam(params, "variables"); + var names = []; + for (var key in variables) { + if (has(variables, key)) { + // Process-scoped: the variable lives in this AE process only and is + // gone when it exits. Nothing is persisted to preferences. + $.setenv(key, String(variables[key])); + names.push(key); + } + } + return { names: names }; + }; + + methods["menu.find"] = function (params) { + var name = String(requireParam(params, "name")); + var id = app.findMenuCommandId(name); + if (!isFiniteNumber(id) || id <= 0) { + var missing = new Error("menu command not found: " + name); + missing.name = "NotFoundError"; + throw missing; + } + return { id: id, name: name }; + }; + + function sceneSnapshot() { + var project = app.project; + var active = project === null || project === undefined ? null : project.activeItem; + var snapshot = { + itemCount: project === null || project === undefined ? 0 : project.numItems, + comp: null, + layers: [] + }; + if (active !== null && active !== undefined && active instanceof CompItem) { + snapshot.comp = active.name; + for (var i = 1; i <= active.numLayers; i++) { + snapshot.layers.push(layerInfo(active.layer(i))); + } + } + return snapshot; + } + + methods["menu.execute"] = function (params) { + var id = requireParam(params, "id"); + if (!isFiniteNumber(id) || id <= 0 || Math.floor(id) !== id) { + throw new Error("menu command id must be a positive integer"); + } + var before = sceneSnapshot(); + var started = new Date().getTime(); + // Synchronous on AE 26.5x89, including commands an AEGP plugin registers: + // the plugin's command hook has returned when this does. + app.executeCommand(id); + var durationMs = new Date().getTime() - started; + return { + id: id, + durationMs: durationMs, + before: before, + after: sceneSnapshot() + }; + }; + + // ----------------------------------------------------------- dispatch --- + + /** + * Which sessions this engine has answered, by id. A plain object of booleans: + * the engine outlives every script, so nothing from After Effects (no item, + * comp or layer) may be kept here, or a later project switch invalidates it. + */ + function sessionStore() { + var store = $.global.__a8nSessions; + if (store === undefined || store === null) { + store = {}; + $.global.__a8nSessions = store; + } + return store; + } + + /** Refuses before doing anything when the request requires a session this engine never answered. */ + function checkSession(request) { + var session = request.session; + if (session === undefined || session === null || session.require !== true) { + return; + } + if (sessionStore()[String(session.id)] !== true) { + var mismatch = new Error( + "this After Effects instance did not answer the probe of this session, so " + String(request.method) + " was not run" + ); + mismatch.name = "SessionMismatch"; + throw mismatch; + } + } + + function rememberSession(request) { + var session = request.session; + if (session !== undefined && session !== null && session.adopt === true) { + sessionStore()[String(session.id)] = true; + } + } + + function extensionTable() { + var context = this.__a8n; + if (context === undefined || context === null || context.extensions === undefined) { + return {}; + } + return context.extensions; + } + + /** + * The extension method names actually registered in this After Effects, + * sorted. Read once at dispatcher activation: the table does not grow + * afterwards, so the heartbeat reports a fixed set (#146). + */ + function registeredExtensionNames() { + var table = extensionTable(); + var names = []; + for (var key in table) { + if (has(table, key) && typeof table[key] === "function") { + names.push(key); + } + } + names.sort(); + return names; + } + + /** + * A shallow copy of the registered extension functions, taken once at + * dispatcher activation. Dispatch resolves against this snapshot so the + * set the heartbeat reports is the set that actually answers (#146). + */ + function snapshotExtensionFunctions() { + var table = extensionTable(); + var copy = {}; + for (var key in table) { + if (has(table, key) && typeof table[key] === "function") { + copy[key] = table[key]; + } + } + return copy; + } + + /** + * The registration fingerprint the build prelude left on `__a8n`, or null + * when the running script was not built by `ae-a8n extension build`. It is + * copied into the heartbeat verbatim — the host never recomputes it. + */ + function extensionRegistration() { + var context = this.__a8n; + if (context === undefined || context === null) { + return null; + } + var value = context.extensionsRegistration; + return typeof value === "string" && value.length > 0 ? value : null; + } + + function dispatch(request, extensionOverride) { + if (request === null || typeof request !== "object") { + throw new Error("request envelope is not an object"); + } + // Extension methods are registered before this file loads and live in + // their own table: a built-in name always wins, because the build refuses + // a collision but the table must still not be able to replace one. + // + // Statements, not one nested conditional: measured on AE 26.5x89, + // ExtendScript evaluates `a ? x : b ? y : undefined` with the second test + // deciding the whole expression, so a name found in `methods` returned + // `extensions[name]` — undefined — and every call failed with "unknown + // method". An explicitly grouped conditional and plain `if` both evaluate + // correctly; this form is also correct in Node, so the fake host agrees. + // `extensionOverride` is the dispatcher path's activation-time snapshot + // (#146): the heartbeat reports that fixed set, so dispatch must resolve + // against the same fixed set — a later mutation of `__a8n.extensions` + // cannot widen what the dispatcher answers for. + var extensions = extensionOverride === undefined ? extensionTable() : extensionOverride; + var method; + if (has(methods, request.method)) { + method = methods[request.method]; + } else if (has(extensions, request.method)) { + method = extensions[request.method]; + } else { + method = undefined; + } + if (method === undefined) { + throw new Error("unknown method: " + String(request.method)); + } + if (typeof method !== "function") { + throw new Error("the method " + String(request.method) + " is not a function"); + } + checkSession(request); + var result = method(request.params); + rememberSession(request); + return result; + } + + function main() { + var codec = loadJson(); + var context = this.__a8n; + if (context === undefined || context === null) { + throw new Error("a8n host invoked without a __a8n context"); + } + + var started = new Date().getTime(); + var request; + var envelope; + + try { + request = codec.parse(readTextFile(context.request)); + var result = dispatch(request); + envelope = { + v: request.v, + id: request.id, + ok: true, + durationMs: new Date().getTime() - started, + result: result === undefined ? null : result + }; + } catch (error) { + var id = "unknown"; + if (request !== undefined && request !== null && request.id !== undefined) { + id = String(request.id); + } + envelope = { + v: 1, + id: id, + ok: false, + durationMs: new Date().getTime() - started, + error: toErrorPayload(error) + }; + } + + // Publish by rename so the driver never reads a partial envelope. A + // rename on the same directory is atomic; a direct write is not, and the + // driver can only tell the difference by refusing to read a half-written + // file. So the atomic path is worth retrying before giving it up — on + // Windows a transient handle (antivirus, AE itself) is the usual cause. + publishResult(String(context.result), codec.stringify(envelope)); + } + + var PUBLISH_ATTEMPTS = 3; + var PUBLISH_RETRY_MS = 50; + + /** The last path segment, taken from the string so nothing is URI-encoded. */ + function fileNameOf(path) { + var slash = Math.max(path.lastIndexOf("/"), path.lastIndexOf("\\")); + return slash < 0 ? path : path.substring(slash + 1); + } + + /** + * Publishes `text` at `resultPath` and says how: "rename" or "direct". + * + * "rename": the result appeared whole, by renaming a fully written staging + * file in the same directory. A reader can never observe part of it. + * + * "direct": every rename failed and the result was written in place. A + * reader *can* observe a partial file; the driver re-reads until the + * envelope parses, so this costs latency, not correctness. + * + * Either way no staging file is left behind. + */ + function publishResult(resultPath, text) { + var staging = resultPath + ".part"; + writeTextFile(staging, text); + var finalFile = new File(resultPath); + // ExtendScript's `File.rename` takes a new *name* and keeps the file in + // its directory; given a full path it returns false (observed on AE + // 26.5x89). Passing a path would make every publication non-atomic. + var finalName = fileNameOf(resultPath); + + for (var attempt = 0; attempt < PUBLISH_ATTEMPTS; attempt++) { + var stagingFile = new File(staging); + // ExtendScript's rename refuses an existing destination. + if (finalFile.exists) { + finalFile.remove(); + } + if (stagingFile.rename(finalName)) { + return "rename"; + } + if (attempt + 1 < PUBLISH_ATTEMPTS) { + $.sleep(PUBLISH_RETRY_MS); + } + } + + // Every atomic attempt failed. Write anyway rather than lose a computed + // result, then drop the staging copy so it does not accumulate. + writeTextFile(resultPath, text); + var leftover = new File(staging); + if (leftover.exists) { + leftover.remove(); + } + return "direct"; + } + + // -------------------------------------------------------- dispatcher --- + // + // Opt-in in-AE transport (#127). Instead of answering one request file per + // script run, this mode keeps an `app.scheduleTask` polling a private + // channel directory and answers the *same* named operations from the same + // `methods` table — there is no second dispatch table and no eval of + // caller-supplied code. + // + // Activation is deliberate and human: File > Scripts > Run Script File on + // the generated `activate.jsx`, or a per-user `Scripts/Startup` entry the + // user installed. This file never installs itself, never opens a socket, + // and never quits After Effects. + // + // Channel contract (mirrors the one-shot path): + // /inbox/.request.json claimed by rename before it runs + // /outbox/.result.json published by rename + // /state.json heartbeat the Node side reads + // A request that cannot be answered still gets a failure envelope when it + // can be published; when it cannot, the caller reports UNKNOWN and never + // resends — a claimed request is never replayed. + + var DISPATCHER_POLL_MS = 250; + var DISPATCHER_MIN_POLL_MS = 50; + var DISPATCHER_MAX_POLL_MS = 5000; + /** Heartbeat refresh cadence, in ticks. */ + var DISPATCHER_STATE_EVERY = 8; + /** Outbox results older than this are deleted; they are deliveries nobody read. */ + var DISPATCHER_RESULT_MAX_AGE_MS = 60 * 60 * 1000; + + function dispatcherRefusal(reason) { + var error = new Error("request refused: " + reason); + error.name = "RequestRefusedError"; + return error; + } + + function dispatcherPaths(root) { + var base = String(root); + while (base.length > 1 && base.substring(base.length - 1) === "/") { + base = base.substring(0, base.length - 1); + } + return { + root: base, + inbox: base + "/inbox", + outbox: base + "/outbox", + state: base + "/state.json" + }; + } + + /** + * Validates a claimed request and runs it through the same `dispatch` the + * one-shot path uses. Throws — the caller turns that into a failure + * envelope — for anything that is not a live, authorized, named operation. + */ + function runDispatcherRequest(state, claimed, id) { + var started = new Date().getTime(); + var request; + try { + request = state.codec.parse(readTextFile(claimed.fsName)); + } catch (parseFailure) { + throw dispatcherRefusal("the request is not valid JSON"); + } + if (request === null || typeof request !== "object" || request.v !== 1) { + throw dispatcherRefusal("unsupported request envelope"); + } + if (String(request.id) !== id) { + // The id in the envelope must be the id in the file name: a mismatch + // means the file was not addressed to this request slot. + throw dispatcherRefusal("request id does not match its file name"); + } + if (request.token !== state.token) { + throw dispatcherRefusal("request token does not match this channel"); + } + // Defence in depth for the pre-claim filter in dispatcherTick: a request + // that names a different dispatcher instance must never run here, even + // if it was claimed before the filter could see it. + if (typeof request.target === "string" && request.target !== state.instance) { + throw dispatcherRefusal("request targets a different dispatcher instance"); + } + if (typeof request.method !== "string" || request.method.length === 0) { + throw dispatcherRefusal("request names no method"); + } + if (typeof request.timeoutMs !== "number" || !isFinite(request.timeoutMs)) { + throw dispatcherRefusal("request carries no usable deadline"); + } + var now = new Date().getTime(); + if (now > claimed.modified.getTime() + request.timeoutMs) { + // The caller's deadline already passed while the request waited + // unclaimed (AE busy, dispatcher not yet active). Refuse it: running + // it now would execute work nobody is still waiting for. + var stale = new Error("request expired before the dispatcher claimed it"); + stale.name = "StaleRequestError"; + throw stale; + } + var result = dispatch(request, state.extensionFunctions); + return { + v: request.v, + id: id, + ok: true, + durationMs: new Date().getTime() - started, + result: result === undefined ? null : result + }; + } + + function writeDispatcherState(state) { + var report = { + v: 1, + token: state.token, + instance: state.instance, + aeVersion: String(app.version), + activatedAt: state.activatedAt, + lastTick: new Date().getTime(), + pollMs: state.pollMs, + // The extension set this dispatcher actually registered (#146). + // Captured once at activation into `state`; the table cannot change + // afterwards, so the heartbeat keeps reporting the fixed set — not a + // claim that the staged file matches. + extensionMethods: state.extensionMethods, + extensionsRegistration: state.extensionsRegistration + }; + try { + publishResult(state.paths.state, state.codec.stringify(report)); + } catch (stateError) { + // A heartbeat that cannot be written is not worth a modal dialog; the + // Node side reads a stale file as "not answering" and says so. + } + } + + /** Removes outbox results too old for any caller to still be waiting on. */ + function sweepDispatcherOutbox(state) { + var outbox = new Folder(state.paths.outbox); + if (!outbox.exists) { + return; + } + var horizon = new Date().getTime() - DISPATCHER_RESULT_MAX_AGE_MS; + var files = outbox.getFiles("*.result.json"); + for (var i = 0; i < files.length; i++) { + var file = files[i]; + if (file instanceof File && file.modified.getTime() < horizon) { + file.remove(); + } + } + } + + function dispatcherTick(state) { + try { + var inbox = new Folder(state.paths.inbox); + if (!inbox.exists) { + return; + } + var files = inbox.getFiles("*.request.json"); + files.sort(function (a, b) { + if (a.name < b.name) { + return -1; + } + if (a.name > b.name) { + return 1; + } + return 0; + }); + // One request per tick: the channel contract is strictly serial, so a + // long operation can never overlap the next claim. Files that are not + // dispatcher requests (other writers, stale names) are skipped, never + // allowed to stall the queue. + for (var i = 0; i < files.length; i++) { + var file = files[i]; + if (!(file instanceof File)) { + continue; + } + var match = /^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\.request\.json$/.exec(file.name); + if (match === null) { + continue; + } + var id = match[1]; + // Target binding (#145): a request that names a dispatcher instance + // is claimed only by that instance. Two After Effects can share one + // channel; without this check the first poller would run — or refuse + // — work addressed to the other. The file is left in place for the + // dispatcher it names; an unreadable file falls through to the + // claim path, which reports it as a refusal. + try { + var peek = state.codec.parse(readTextFile(file.fsName)); + if ( + peek !== null && + typeof peek === "object" && + typeof peek.target === "string" && + peek.target !== state.instance + ) { + continue; + } + } catch (peekError) { + // Malformed JSON is the claim path's refusal to report, not ours. + } + // Claim before running: a host restart cannot replay a claimed + // operation, and a second dispatcher cannot take the same file. + if (!file.rename(id + ".claimed")) { + continue; + } + var claimed = new File(inbox.fsName + "/" + id + ".claimed"); + var began = new Date().getTime(); + var reply; + try { + reply = runDispatcherRequest(state, claimed, id); + } catch (failure) { + reply = { + v: 1, + id: id, + ok: false, + durationMs: new Date().getTime() - began, + error: toErrorPayload(failure) + }; + } + try { + publishResult( + state.paths.outbox + "/" + id + ".result.json", + state.codec.stringify(reply) + ); + } catch (publishError) { + // The caller times out UNKNOWN; do not retry a claimed request. + } + claimed.remove(); + break; + } + state.ticks += 1; + if (state.ticks % DISPATCHER_STATE_EVERY === 0) { + writeDispatcherState(state); + sweepDispatcherOutbox(state); + } + } catch (tickError) { + // A scheduled task must never raise a modal dialog while the user + // works. With no state update the Node side reports UNKNOWN. + } + } + + function startDispatcher(config) { + if ($.global.__a8nDispatcherTask !== undefined) { + throw new Error( + "ae-a8n dispatcher is already active in this After Effects; " + + "refusing a second dispatcher" + ); + } + var codec = loadJson(); + var root = new Folder(String(config.root)); + // ExtendScript's Folder has no `isDirectory` (observed on AE 26.5 — the + // fake Folder models one, which is why only the real host tripped this). + // `exists` plus the inbox/outbox checks below are the real contract: a + // plain file at the root fails there with a clearer error anyway. + if (!root.exists) { + throw new Error("ae-a8n dispatcher: channel root is not a directory: " + String(config.root)); + } + var paths = dispatcherPaths(root.fsName); + var inbox = new Folder(paths.inbox); + var outbox = new Folder(paths.outbox); + if (!inbox.exists || !outbox.exists) { + throw new Error("ae-a8n dispatcher: channel folders are missing; prepare the channel first"); + } + var token = String(config.token); + if (!/^[a-f0-9]{64}$/.test(token)) { + throw new Error("ae-a8n dispatcher: channel token is malformed"); + } + var pollMs = config.pollMs; + if (typeof pollMs !== "number" || !isFinite(pollMs)) { + pollMs = DISPATCHER_POLL_MS; + } + if (pollMs < DISPATCHER_MIN_POLL_MS) { + pollMs = DISPATCHER_MIN_POLL_MS; + } + if (pollMs > DISPATCHER_MAX_POLL_MS) { + pollMs = DISPATCHER_MAX_POLL_MS; + } + if (typeof app.scheduleTask !== "function") { + throw new Error("ae-a8n dispatcher: this After Effects has no app.scheduleTask"); + } + var state = { + codec: codec, + paths: paths, + token: token, + pollMs: pollMs, + instance: + "i" + + new Date().getTime().toString(16) + + Math.floor(Math.random() * 0xffffff).toString(16), + activatedAt: new Date().getTime(), + ticks: 0, + // Fixed here, once: whatever `__a8n.extensions` holds right now is + // what this dispatcher will answer for its whole life. A host script + // built without the extension prelude leaves both empty/null. + extensionMethods: registeredExtensionNames(), + extensionsRegistration: extensionRegistration(), + // The function snapshot dispatch actually resolves against (#146): + // the heartbeat's names and this table are captured together, so a + // later mutation of `__a8n.extensions` cannot widen the answer set. + extensionFunctions: snapshotExtensionFunctions() + }; + var tick = function () { + dispatcherTick(state); + }; + // The scheduled string names the global, so the function must be there + // before the first fire — pollMs later at the earliest. + $.global.__a8nDispatcherTick = tick; + $.global.__a8nDispatcherTask = app.scheduleTask( + "$.global.__a8nDispatcherTick()", + pollMs, + true + ); + writeDispatcherState(state); + } + + // The branch check must run inside a named function called plainly, not + // at the IIFE's top level: on real ExtendScript `this` inside + // `(function(){})()` is the function itself, not the global object + // (observed on AE 26.5/27.0 — the fake vm runtime cannot reproduce this). + // Inside a named function `this` is the global object, the same contract + // `main()` and the extension prelude already rely on. Evaluating + // `this.__a8n` here would always miss and silently fall into `main()`. + function boot() { + var __a8nEntry = this.__a8n; + if ( + __a8nEntry !== undefined && + __a8nEntry !== null && + __a8nEntry.dispatcher !== undefined && + __a8nEntry.dispatcher !== null + ) { + startDispatcher(__a8nEntry.dispatcher); + } else { + main(); + } + } + boot(); +})(); diff --git a/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/ae-a8n-0.2.0.tgz b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/ae-a8n-0.2.0.tgz new file mode 100644 index 00000000..e3f1dca1 Binary files /dev/null and b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/ae-a8n-0.2.0.tgz differ diff --git a/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/cli-doctor.json b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/cli-doctor.json new file mode 100644 index 00000000..5f56e062 --- /dev/null +++ b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/cli-doctor.json @@ -0,0 +1,271 @@ +{ + "schema": "ae-devtools.cli.doctor/v1", + "node": "v26.13.1", + "platform": "darwin/arm64", + "devloopSchema": "ae-devtools.dev-loop/v1", + "aeA8n": { + "resolvable": true, + "source": "npm:@ido-bata/ae-a8n", + "version": "0.2.0", + "contractOk": true, + "missing": [], + "checks": [ + { + "id": "negotiation.compatible", + "ok": true + }, + { + "id": "negotiation.client-older-minor", + "ok": true + }, + { + "id": "negotiation.incompatible-major", + "ok": true + }, + { + "id": "negotiation.unsupported-minor", + "ok": true + }, + { + "id": "negotiation.malformed-schema", + "ok": true + }, + { + "id": "negotiation.requested-capability-compatible", + "ok": true + }, + { + "id": "negotiation.unknown-capability", + "ok": true + }, + { + "id": "negotiation.capability-unassessed", + "ok": true + }, + { + "id": "negotiation.missing-permission", + "ok": true + }, + { + "id": "dispatch.pass-owned", + "ok": true + }, + { + "id": "dispatch.pass-explicitly-attached", + "ok": true + }, + { + "id": "dispatch.refuse-unknown-ownership", + "ok": true + }, + { + "id": "dispatch.refuse-contradictory-claim", + "ok": true + }, + { + "id": "dispatch.refuse-unverified", + "ok": true + }, + { + "id": "dispatch.refuse-not-implemented", + "ok": true + }, + { + "id": "dispatch.refuse-no-execution-path", + "ok": true + }, + { + "id": "dispatch.refuse-missing-permission", + "ok": true + }, + { + "id": "dispatch.refuse-no-permission-declared", + "ok": true + }, + { + "id": "dispatch.refuse-unknown-capability", + "ok": true + }, + { + "id": "dispatch.refuse-unassessed", + "ok": true + }, + { + "id": "dispatch.refuse-malformed", + "ok": true + } + ], + "required": "ae-a8n capability handshake (ae-a8n#102), which post-dates the ae-a8n#103 extension-prelude and ae-a8n#105 LaunchServices fixes" + }, + "aeInstalls": [ + "/Applications/Adobe After Effects 2026", + "/Applications/Adobe After Effects 2027" + ], + "a8nTransportPresent": true, + "runsDir": "/var/folders/1l/fmlzfnk57zndv1pxwwkw6xrc0000gn/T/ae-devtools-cli-runs", + "runs": [ + { + "runId": "run-2026-11-20T12-13-19-501Z-16437323", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T12-13-28-112Z-0c18551d", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T12-24-42-140Z-a7f95a54", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T15-05-42-702Z-0751884c", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T15-09-23-878Z-26656cd6", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T15-09-27-848Z-bd51d081", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T15-09-34-676Z-c35c8151", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T15-10-17-411Z-7978b47b", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T15-10-50-445Z-e549e3a8", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T15-12-08-740Z-5e49a39f", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T15-13-14-138Z-657e6ce0", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T16-37-11-846Z-0d05a36c", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T16-37-13-037Z-a30e1123", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T16-55-08-444Z-b8fd131f", + "status": "open", + "sessionKind": "a8n", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "NO_A8N_ATTESTATION", + "ownership": "owned" + }, + { + "runId": "run-2026-11-20T17-23-01-561Z-8a0af1d7", + "status": "open-failed", + "sessionKind": "a8n-attached", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T18-40-53-034Z-60c06fe2", + "status": "open-failed", + "sessionKind": "a8n", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T21-25-55-073Z-eacc0e31", + "status": "open-failed", + "sessionKind": "a8n", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + }, + { + "runId": "run-2026-11-20T21-31-23-157Z-bed75858", + "status": "open-failed", + "sessionKind": "a8n", + "runnerAlive": false, + "reapable": false, + "reapBlockReason": "OWNERSHIP_NOT_OWNED", + "ownership": null + } + ], + "evidenceLevel": "environment probe only — no AE was contacted" +} diff --git a/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/cli-project-open.json b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/cli-project-open.json new file mode 100644 index 00000000..b407caff --- /dev/null +++ b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/cli-project-open.json @@ -0,0 +1,42 @@ +{ + "schema": "ae-devtools.cli.run/v1", + "runId": "run-2026-11-20T21-42-47-080Z-404c11a1", + "command": "execute", + "sourceSha": "417c77fe08eadf4c961646196197757617faf02d", + "sourceDirty": true, + "opId": "project.open", + "requestId": "req-run-2026-11-20T21-42-47-080Z-404c11a1-project.open", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "at": "2026-11-20T21:42:56.435Z", + "result": { + "requestId": "req-run-2026-11-20T21-42-47-080Z-404c11a1-project.open", + "operationId": "project.open", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "project": "/tmp/run-029/Conformance-Disposable.aep" + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "project.open", + "mutating": true, + "destructive": true + }, + "outcome": "COMPLETED", + "evidenceFile": "../capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/cli-project-open.json", + "cleanup": { + "attempted": true, + "ok": true, + "error": null, + "quit": null + } +} \ No newline at end of file diff --git a/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/harness-mcp-real-run.mjs b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/harness-mcp-real-run.mjs new file mode 100644 index 00000000..afc33cfe --- /dev/null +++ b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/harness-mcp-real-run.mjs @@ -0,0 +1,281 @@ +#!/usr/bin/env node +/** + * mcp-real-run.mjs — Issue #177 REAL-AE conformance run, MCP stdio lane. + * + * node packages/ae-devtools-cli/conformance/mcp-real-run.mjs \ + * --session a8n \ + * --install-dir "/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app" \ + * --fixture --out + * + * Drives mcp-server/server.mjs over stdio (NDJSON) against an OWNED AE + * session and records every frame. Same disposable-project contract as + * conformance/real-run.mjs: + * + * ae_discover → ae_verify (pre-state read-back) → + * ae_execute project.new (confirmDestructive) → + * ae_execute project.save → + * ae_execute item.addComp → ae_verify (read-back shows the comp) → + * ae_execute item.remove (confirmDestructive) → ae_verify (empty) + * + * The project is saved to --fixture before any mutation, so the open + * project IS the disposable fixture; after item.remove the project is + * back at its saved state and session close (unsavedChanges:"refuse") + * must quit cleanly — a refusal is recorded, never counted as pass. + * + * --fixture may be a directory (a Conformance-MCP-Disposable.aep is + * created inside it) or a direct .aep path. + * + * Replay: the archived harness-*.mjs copies under evidence/ resolve + * their imports (mcp-server/server.mjs, devtools-cli/*.mjs) against the + * repository checkout — replay requires the tree at the run's recorded + * sourceSha, not the evidence directory alone. + */ +import { existsSync, mkdirSync, statSync, writeFileSync } from "node:fs"; +import { dirname, join } from "node:path"; +import { fileURLToPath } from "node:url"; + +import { arg } from "../devtools-cli/argv.mjs"; +import { spawnMcpStdio, withTimeout, isCleanServerShutdown } from "../devtools-cli/real-run-kit.mjs"; + +const HERE = dirname(fileURLToPath(import.meta.url)); +const CLI = join(HERE, ".."); + +const session = arg("--session") ?? "a8n"; +const fixtureArg = arg("--fixture"); +if (!fixtureArg) { + console.error("usage: mcp-real-run.mjs --fixture [--session a8n] [--install-dir ] [--out ]"); + process.exit(2); +} +const fixturePath = statSync(fixtureArg, { throwIfNoEntry: false })?.isDirectory() + ? join(fixtureArg, "Conformance-MCP-Disposable.aep") + : fixtureArg; +mkdirSync(dirname(fixturePath), { recursive: true }); + +const OUT = arg("--out") ?? join(process.cwd(), `mcp-conformance-${Date.now()}.jsonl`); +const log = []; +const rec = (o) => { + log.push({ t: new Date().toISOString(), ...o }); + writeFileSync(OUT, JSON.stringify(log, null, 2)); +}; + +const serverArgs = ["mcp-server/server.mjs", "--session", session]; +const installDir = arg("--install-dir"); +if (installDir) serverArgs.push("--install-dir", installDir); + +// NDJSON stdio client harness shared with mcp-server/real-run.mjs +// (Issue #197). +// A recorded `fatal` is a failed conformance run — exit nonzero so +// callers/CI cannot read it as success (same contract as +// mcp-server/real-run.mjs, Issue #234). The JSONL remains the +// verdict record either way. +let fatal = false; +const { child, send, notify, call } = spawnMcpStdio({ + scriptArgs: serverArgs, + cwd: CLI, + onRecord: rec, + onStderr: (d) => rec({ stderr: d.slice(0, 800) }), +}); + +const COMP_NAME = "MCP Conformance Comp"; +const results = {}; +const recordToolResult = (tag, msg) => { + const text = msg?.result?.content?.[0]?.text; + let parsed = null; + try { parsed = text ? JSON.parse(text) : null; } catch { /* keep raw */ } + results[tag] = { + isError: msg?.result?.isError === true || msg?.error !== undefined, + outcome: parsed?.outcome ?? parsed?.status ?? null, + session: parsed?.session ?? null, + result: parsed?.result ?? parsed ?? null, + }; + rec({ stepResult: tag, ...results[tag] }); +}; + +try { + rec({ step: "initialize", argv: serverArgs, fixturePath }); + const init = await withTimeout( + send("initialize", { + protocolVersion: "2024-11-05", + capabilities: {}, + clientInfo: { name: "ae-devtools-conformance", version: "0" }, + }), + 30000, + "init", + ); + notify("notifications/initialized"); + rec({ step: "initialized", serverInfo: init?.result?.serverInfo ?? null }); + + rec({ step: "ae_discover" }); + recordToolResult("ae_discover", await withTimeout(call("ae_discover", {}), 60000, "discover")); + + // Pre-state read-back: whatever project AE restored is observed, + // never mutated — project.new replaces it only if it is clean. When + // this read does not COMPLETE, the pre-mutation project identity is + // unknown and mutation must not proceed (same fail-closed rule as + // real-run.mjs's identity gate). + rec({ step: "ae_verify.pre-state" }); + recordToolResult("ae_verify.pre", await withTimeout(call("ae_verify", { consent: "grant" }), 300000, "verify-pre")); + const preRead = results["ae_verify.pre"]; + if (!preRead || preRead.isError || preRead.outcome !== "COMPLETED") { + throw new Error( + `pre-mutation identity read-back did not complete (isError=${preRead?.isError === true}, outcome=${preRead?.outcome ?? "missing"}); refusing to mutate`, + ); + } + + rec({ step: "ae_execute.project.new (launches owned AE)" }); + recordToolResult("project.new", await withTimeout( + call("ae_execute", { opId: "project.new", args: {}, consent: "grant", confirmDestructive: true }), + 300000, + "project.new", + )); + // A failed project.new/project.save leaves the pre-mutation project + // identity unverified — every later step would mutate an unknown + // project. Fail closed before the first content mutation. + const gateMutation = (tag) => { + const r = results[tag]; + if (!r || r.isError || r.outcome !== "COMPLETED") { + throw new Error( + `${tag} did not complete (isError=${r?.isError === true}, outcome=${r?.outcome ?? "missing"}); refusing to mutate`, + ); + } + }; + gateMutation("project.new"); + + rec({ step: "ae_execute.project.save" }); + recordToolResult("project.save", await withTimeout( + call("ae_execute", { opId: "project.save", args: { path: fixturePath }, consent: "grant" }), + 120000, + "project.save", + )); + gateMutation("project.save"); + + rec({ step: "ae_execute.item.addComp" }); + recordToolResult("item.addComp", await withTimeout( + call("ae_execute", { + opId: "item.addComp", + args: { name: COMP_NAME, width: 1920, height: 1080, pixelAspect: 1, duration: 5, frameRate: 30 }, + consent: "grant", + }), + 120000, + "addComp", + )); + + rec({ step: "ae_verify.readback" }); + recordToolResult("ae_verify.readback", await withTimeout(call("ae_verify", { consent: "grant" }), 120000, "verify")); + + rec({ step: "ae_execute.item.remove" }); + recordToolResult("item.remove", await withTimeout( + call("ae_execute", { + opId: "item.remove", + args: { name: COMP_NAME, type: "CompItem" }, + consent: "grant", + confirmDestructive: true, + }), + 120000, + "item.remove", + )); + + rec({ step: "ae_verify.final" }); + recordToolResult("ae_verify.final", await withTimeout(call("ae_verify", { consent: "grant" }), 120000, "verify-final")); + + // item.remove leaves AE's dirty flag set even though content matches + // the saved fixture — re-save so session close can quit cleanly. + rec({ step: "ae_execute.project.save.resave" }); + recordToolResult("project.save.resave", await withTimeout( + call("ae_execute", { opId: "project.save", args: { path: fixturePath }, consent: "grant" }), + 120000, + "project.save.resave", + )); +} catch (e) { + fatal = true; + rec({ fatal: String(e?.message ?? e) }); +} finally { + // SIGTERM runs the server's shutdown path: session.close() + // (unsavedChanges:"refuse") — a clean disposable project quits; a + // refusal is recorded on stderr, never hidden. Success requires a + // CONFIRMED exit — a still-running child after SIGKILL is a failed + // run, not a pass. + child.kill("SIGTERM"); + await new Promise((r) => setTimeout(r, 15000)); + let shutdownConfirmed = child.exitCode !== null || child.signalCode !== null; + let forcedKill = false; + if (!shutdownConfirmed) { + try { child.kill("SIGKILL"); forcedKill = true; } catch {} + await new Promise((r) => setTimeout(r, 3000)); + shutdownConfirmed = child.exitCode !== null || child.signalCode !== null; + } + // Clean shutdown means the server's OWN shutdown path completed: + // SIGTERM → shutdown(143) → session.close() → process.exit(143). + // Merely stopping is not proof — an exit code of 1 (e.g. an + // unhandled rejection during close) or death by signal means + // session.close() never confirmed the owned AE session closed + // (Issue #384). exitCode/signalCode are recorded either way. + const exitCode = child.exitCode; + const signalCode = child.signalCode; + const cleanShutdown = isCleanServerShutdown({ + shutdownConfirmed, forcedKill, exitCode, signalCode, + }); + rec({ + step: "server.stopped", fixturePath, shutdownConfirmed, cleanShutdown, + forcedKill, exitCode, signalCode, results, + }); + if (!cleanShutdown) { + fatal = true; + rec({ + fatal: !shutdownConfirmed + ? "MCP server child did not exit after SIGTERM+SIGKILL" + : forcedKill + ? "MCP server child required SIGKILL — unclean shutdown" + : `MCP server shutdown exit was not the clean SIGTERM path (exitCode=${exitCode} signalCode=${signalCode})`, + }); + } + + // Verdict: a recorded isError or a non-COMPLETED outcome is a failed + // conformance run — never a pass. Read-back lanes must also show the + // expected disposable-project state (comp present after addComp, + // absent after item.remove), not just a COMPLETED write outcome. + const failures = []; + const expectCompleted = [ + "ae_verify.pre", "project.new", "project.save", "item.addComp", + "ae_verify.readback", "item.remove", "ae_verify.final", + "project.save.resave", + ]; + for (const tag of expectCompleted) { + const r = results[tag]; + if (!r) { failures.push(`${tag}: missing result`); continue; } + if (r.isError) failures.push(`${tag}: isError=true`); + if (r.outcome !== "COMPLETED") failures.push(`${tag}: outcome=${r.outcome ?? "null"}`); + } + const discover = results.ae_discover; + if (!discover || discover.isError) failures.push("ae_discover: missing or isError"); + const itemsOf = (tag) => { + const r = results[tag]; + const payload = r?.result?.result ?? r?.result ?? null; + return Array.isArray(payload?.items) ? payload.items : null; + }; + const readbackItems = itemsOf("ae_verify.readback"); + if (readbackItems === null || + !readbackItems.some((i) => i && i.name === COMP_NAME)) { + failures.push("ae_verify.readback: comp not observed in project items"); + } + const finalItems = itemsOf("ae_verify.final"); + // The fixture was created EMPTY: a correct run must leave zero items. + // Checking only for COMP_NAME's absence would pass a project still + // holding unrelated leftovers (e.g. a stray "Other Comp"). + if (finalItems === null) { + failures.push("ae_verify.final: items unreadable after item.remove"); + } else if (finalItems.length !== 0) { + failures.push(`ae_verify.final: ${finalItems.length} item(s) remain (expected empty fixture)`); + } + // Verdict and exit status must share ONE failure state: an unconfirmed + // or SIGKILL-forced shutdown recorded above is a failed run, never a + // "pass" verdict with a nonzero exit. + if (!cleanShutdown) failures.push("server.stopped: shutdown was not a confirmed clean exit"); + if (failures.length > 0) { + fatal = true; + rec({ verdict: "fail", failures }); + } else { + rec({ verdict: "pass" }); + } + process.exit(fatal ? 1 : 0); +} diff --git a/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/harness-real-run.mjs b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/harness-real-run.mjs new file mode 100644 index 00000000..6c1f4755 --- /dev/null +++ b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/harness-real-run.mjs @@ -0,0 +1,579 @@ +#!/usr/bin/env node +/** + * real-run.mjs — Issue #177 minimal REAL-AE conformance run. + * + * node packages/ae-devtools-cli/conformance/real-run.mjs \ + * --install-dir "/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app" \ + * --workdir --out + * + * ONE owned AE session (registry @ido-bata/ae-a8n — never --ae-a8n-root) + * drives every lane so the disposable-project guarantee covers all of + * them: + * + * 0. provenance — sourceSha, ae-a8n source/version, AE install, + * generated host script copied out before close + * 1. identity — eval read of app.version / project.file / + * numItems / project.dirty BEFORE any mutation; + * dirty===true aborts (never discard user changes) + * 2. disposable — project.new → project.save(/fixture.aep) + * → identity re-read must show file==fixture and + * numItems==0, otherwise the run fails closed + * 3. cli-path — registry ops via dev-loop runOperation (the same + * dispatch path devtools-cli execute uses): + * read.projectSummary → item.addComp → + * read.projectSummary (read-back) → ae.undo → + * read.projectSummary → item.addComp#2 → + * item.remove → read.projectSummary + * 4. jsx lane — jsx-toolchain buildFile(ok.ts) dispatch + + * $.global read-back; runtime-error.ts dispatch → + * FAILED → sourcemap → TS source line + * 5. a8n slice — runVerticalSlice + assertSliceOutcomes (the + * Issue #49 read-only consent/transport scenario) + * 6. timeout — $.sleep dispatch under a short-deadline runner + * must classify UNKNOWN and never resend + * 7. close — session.close({unsavedChanges:"refuse"}) must + * quit:true; the project is provably back at its + * saved state, so a refusal is a FAILED run, not + * a pass. Main-AE process must be gone afterwards. + * + * Consent is a LOCAL POLICY (approve-all for this harness), identical + * in strength to a8n-transport/scenario.mjs — it exercises gate + * mechanics, not authenticated authorization (ae-a8n #97–#99). + */ +import { createHash } from "node:crypto"; +import { + copyFileSync, + existsSync, + mkdirSync, + mkdtempSync, + readFileSync, + writeFileSync, +} from "node:fs"; +import { tmpdir } from "node:os"; +import { dirname, join, resolve } from "node:path"; + +import { openRealRunSession } from "../dev-loop/real-run-session.mjs"; +import { runVerticalSlice, assertSliceOutcomes } from "../a8n-transport/scenario.mjs"; +import { createJsxRunner } from "../trusted-execution/runner.mjs"; +import { runOperation } from "../scripting-adapters/execute.mjs"; +import { buildFile } from "../jsx-toolchain/src/build.mjs"; +import { lookup } from "../jsx-toolchain/src/sourcemap.mjs"; +import { arg } from "../devtools-cli/argv.mjs"; +import { isMainEntry } from "../devtools-cli/is-main-entry.mjs"; +import { + MAIN_EXE, + aeProcessSnapshot, + createEvalDispatch, + gitHeadAndDirty, + isCleanTimeoutProbe, +} from "../devtools-cli/real-run-kit.mjs"; + +const HERE = dirname(new URL(import.meta.url).pathname); +const FIXTURES = join(HERE, "..", "jsx-toolchain", "fixtures"); + +const EVAL_OP = "op.a8n-transport.eval"; +const PROJECT_IDENTITY_PRE = "conformance-pre-disposable"; + +function sha256File(path) { + return createHash("sha256").update(readFileSync(path)).digest("hex"); +} + +export async function main() { + const installDir = arg("--install-dir"); + const out = arg("--out") ?? join(process.cwd(), `conformance-run-${Date.now()}.json`); + const workdir = arg("--workdir") ?? mkdtempSync(join(tmpdir(), "ae-conformance-")); + const fixturePath = join(workdir, "Conformance-Disposable.aep"); + const hostScriptCopy = join(workdir, "a8n-host-ext.js"); + const processFragment = installDir ?? "Adobe After Effects"; + const startedAt = new Date().toISOString(); + + const evidence = { + schema: "ae-devtools.conformance-run/v1", + issue: 177, + startedAt, + platform: `${process.platform}/${process.arch}`, + node: process.version, + installDir: installDir ?? null, + workdir, + fixturePath, + git: await gitHeadAndDirty(HERE), + consentModel: "local approve-all policy (gate mechanics only; not authenticated authorization)", + aeProcessesBeforeLaunch: await aeProcessSnapshot(processFragment), + steps: [], + ok: true, + }; + const step = (name, data = {}) => { + evidence.steps.push({ name, at: new Date().toISOString(), ...data }); + console.log(`${data.ok === false ? "FAIL" : "ok"} ${name}`); + if (data.ok === false) evidence.ok = false; + }; + + let session = null; + let guard = null; + const opResults = {}; + const evalResults = {}; + try { + // Canonical session open + run-guard marker (Issue #252): a killed + // driver leaves an attested, reap/recover-visible residue record. + // The raw slice handle stays available as `session` for internals. + const opened = await openRealRunSession({ + surface: "conformance-real-run", + argv: process.argv.slice(2), + sessionOptions: { + ...(installDir !== undefined ? { installDir } : {}), + workdir: join(workdir, "session"), + }, + }); + guard = opened.guard; + session = opened.slice; + step("session.launch", { + ok: true, + aeVersion: session.info?.version ?? null, + aeBuild: session.info?.build ?? null, + ownership: session.ownership?.kind ?? null, + aeA8nSource: session.aeA8nSource, + aeA8nHead: session.aeA8nHead, + }); + // Keep the generated host script + trace: session.close() deletes + // the session workdir, so copy them out first. + const wsHostScript = join(workdir, "session", "a8n-host-ext.js"); + if (existsSync(wsHostScript)) { + copyFileSync(wsHostScript, hostScriptCopy); + evidence.hostScriptSha256 = sha256File(hostScriptCopy); + evidence.hostScriptCopy = hostScriptCopy; + } + + // ---- eval dispatch helper (consent scope bound to exact source) ---- + // Shared wrapper (Issue #197): the consent scope and the runScript + // args shape are hashed together inside runner.mjs, so one builder + // keeps them from drifting. projectIdentity is read lazily — it is + // re-bound after project.new/project.save below. + let projectIdentity = PROJECT_IDENTITY_PRE; + const evalDispatchRaw = createEvalDispatch({ + runner: session.runner, + pin: session.pin, + projectIdentity: () => projectIdentity, + operationId: EVAL_OP, + scriptProvenance: "conformance-run", + }); + const evalDispatch = async (label, source) => { + const r = await evalDispatchRaw(source, `conf-eval-${label}-${Date.now().toString(36)}`); + evalResults[label] = r; + return r; + }; + + // ---- op dispatch helper (dev-loop runOperation = CLI path) ---- + const opSeq = { n: 0 }; + const op = async (opId, args = {}, extra = {}) => { + const label = `${opId}#${++opSeq.n}`; + const r = await runOperation({ + opId, + args, + runner: session.runner, + pin: session.pin, + projectIdentity, + consentProvider: async () => ({ approved: true }), + trustedScriptOptIn: true, + scriptProvenance: "conformance-run", + requestId: `conf-op-${label}-${Date.now().toString(36)}`, + ...extra, + }); + opResults[label] = r; + return r; + }; + + const IDENTITY_SOURCE = + "(function(){var f=app.project.file;var d=(typeof app.project.dirty===\"boolean\")?String(app.project.dirty):\"unsupported\";" + + // The file path is percent-encoded: a raw fsName may itself + // contain "|" or look like a "V:/N:/D:" field, which would make + // the delimiter parse ambiguous. encodeURIComponent output can + // never contain the "|" separator. + "return \"V:\"+String(app.version)+\"|F:\"+(f?encodeURIComponent(f.fsName):\"\")+\"|N:\"+String(app.project.numItems)+\"|D:\"+d;})()"; + const parseIdentity = (result) => { + const s = typeof result === "string" ? result : ""; + const get = (k) => { + const m = s.match(new RegExp(`${k}:([^|]*)`)); + return m ? m[1] : null; + }; + const rawFile = get("F"); + let file = null; + if (rawFile !== null) { + try { file = rawFile === "" ? "" : decodeURIComponent(rawFile); } + catch { file = null; } // undecodable path -> fail closed downstream + } + return { version: get("V"), file, items: get("N"), dirty: get("D"), raw: s }; + }; + + // ---- 1. project identity BEFORE any mutation ---- + const id1 = await evalDispatch("identity.before", IDENTITY_SOURCE); + const before = parseIdentity(id1.result); + // The disposable gate below is only as safe as this read: when the + // identity probe did not COMPLETE, before.* fields are null and the + // gate cannot prove the restored project is untouched — proceeding + // to project.new could destroy user state. Fail closed instead. + const identityReadOk = id1.outcome === "COMPLETED" && before.file !== null; + step("identity.before", { + ok: identityReadOk, + outcome: id1.outcome, + project: before, + }); + evidence.projectBefore = before; + if (!identityReadOk) { + throw new Error( + `project identity read did not complete (outcome=${id1.outcome}); refusing to proceed toward mutation`, + ); + } + + // ---- 2. disposable project gate ---- + // app.newProject() prompts to save when the current project was + // edited (Adobe Scripting Guide). dirty===true means the restored + // project carries unsaved state — abort rather than risk a modal or + // a discard. dirty unsupported is tolerated ONLY for an untouched + // untitled empty project (file=="" && items=="0"): nothing user-owned + // can be lost there. + const disposableDecision = + before.dirty === "true" + ? { proceed: false, reason: "restored project reports unsaved changes (dirty=true); refusing to touch it" } + : before.dirty === "unsupported" && !(before.file === "" && before.items === "0") + ? { proceed: false, reason: "project.dirty unsupported and project is not an empty untitled project; cannot prove safe" } + : { proceed: true, reason: `dirty=${before.dirty}, file='${before.file}', items=${before.items}` }; + step("disposable.gate", { ok: disposableDecision.proceed, decision: disposableDecision }); + evidence.disposableDecision = disposableDecision; + if (!disposableDecision.proceed) { + throw new Error(`disposable gate refused: ${disposableDecision.reason}`); + } + + // The dirty/file/items read above and the app.newProject() mutation + // below are separate dispatches — project state could in principle + // change in between. True atomicity is impossible without a + // host-side precondition inside the op itself, so re-read identity + // immediately before mutating and require it UNCHANGED; any drift + // aborts fail-closed. (Owned session: no user input can intervene, + // this guards harness/AE-side state transitions only.) + const idRecheck = await evalDispatch("identity.recheck", IDENTITY_SOURCE); + const recheck = parseIdentity(idRecheck.result); + const unchanged = + idRecheck.outcome === "COMPLETED" && + recheck.file === before.file && + recheck.items === before.items && + recheck.dirty === before.dirty; + step("identity.recheck", { + ok: unchanged, + outcome: idRecheck.outcome, + project: recheck, + }); + evidence.projectRecheck = recheck; + if (!unchanged) { + throw new Error( + `project identity changed between gate and mutation (before file='${before.file}' items=${before.items} dirty=${before.dirty}; recheck file='${recheck.file}' items=${recheck.items} dirty=${recheck.dirty}); refusing to mutate`, + ); + } + + const rNew = await op("project.new", {}, { confirmDestructive: true }); + step("op.project.new", { + ok: rNew.outcome === "COMPLETED", + outcome: rNew.outcome, + status: rNew.status ?? null, + result: rNew.result ?? null, + }); + if (rNew.outcome !== "COMPLETED") { + throw new Error(`project.new did not complete: ${JSON.stringify(rNew).slice(0, 400)}`); + } + + const rSave = await op("project.save", { path: fixturePath }); + step("op.project.save", { + ok: rSave.outcome === "COMPLETED", + outcome: rSave.outcome, + result: rSave.result ?? null, + fixturePath, + }); + if (rSave.outcome !== "COMPLETED") { + throw new Error(`project.save did not complete: ${JSON.stringify(rSave).slice(0, 400)}`); + } + + projectIdentity = `conformance-fixture:${fixturePath}`; + const id2 = await evalDispatch("identity.fixture", IDENTITY_SOURCE); + const fixtureIdent = parseIdentity(id2.result); + const disposableOk = + id2.outcome === "COMPLETED" && + fixtureIdent.file === fixturePath && + fixtureIdent.items === "0"; + step("identity.fixture", { + ok: disposableOk, + outcome: id2.outcome, + project: fixtureIdent, + expectedFile: fixturePath, + }); + evidence.projectFixture = fixtureIdent; + if (!disposableOk) { + throw new Error( + `disposable project not confirmed: file='${fixtureIdent.file}' items=${fixtureIdent.items} (expected '${fixturePath}' / 0)`, + ); + } + evidence.fixtureSha256 = existsSync(fixturePath) ? sha256File(fixturePath) : null; + + // ---- 3. cli-path registry ops (dev-loop runOperation) ---- + const baseline = await op("read.projectSummary"); + step("op.read.projectSummary.baseline", { + ok: baseline.outcome === "COMPLETED", + outcome: baseline.outcome, + result: baseline.result ?? null, + }); + + const add1 = await op("item.addComp", { + name: "Conformance QA Comp", + width: 320, height: 240, pixelAspect: 1, duration: 5, frameRate: 30, + }); + step("op.item.addComp", { + ok: add1.outcome === "COMPLETED", + outcome: add1.outcome, + result: add1.result ?? null, + }); + + const verify1 = await op("read.projectSummary"); + const verify1Items = verify1.result?.items ?? null; + const sawComp = Array.isArray(verify1Items) && + verify1Items.some((i) => i && i.name === "Conformance QA Comp"); + step("op.read.projectSummary.readback", { + ok: verify1.outcome === "COMPLETED" && sawComp === true, + outcome: verify1.outcome, + sawComp, + items: verify1Items, + }); + + // undo dimension: Edit > Undo must remove exactly the comp we added. + let undoOutcome = null; + try { + const u = await session.ae.undo(); + undoOutcome = { ok: true, result: u ?? null }; + } catch (error) { + undoOutcome = { ok: false, error: error instanceof Error ? error.message : String(error) }; + } + const afterUndo = await op("read.projectSummary"); + const undoClean = + afterUndo.outcome === "COMPLETED" && + Array.isArray(afterUndo.result?.items) && + afterUndo.result.items.length === 0; + step("ae.undo", { + ok: undoOutcome.ok === true && undoClean, + undo: undoOutcome, + outcome: afterUndo.outcome, + itemsAfter: afterUndo.result?.items ?? null, + }); + evidence.undo = { call: undoOutcome, readbackEmpty: undoClean }; + + // item.remove claim: second comp added then removed by name+type. + const add2 = await op("item.addComp", { + name: "Conformance Temp Comp", + width: 64, height: 64, pixelAspect: 1, duration: 1, frameRate: 30, + }); + step("op.item.addComp.second", { + ok: add2.outcome === "COMPLETED", + outcome: add2.outcome, + result: add2.result ?? null, + }); + const rem = await op("item.remove", { name: "Conformance Temp Comp", type: "CompItem" }, { confirmDestructive: true }); + step("op.item.remove", { + ok: rem.outcome === "COMPLETED", + outcome: rem.outcome, + result: rem.result ?? null, + }); + const finalSummary = await op("read.projectSummary"); + const finalClean = + finalSummary.outcome === "COMPLETED" && + Array.isArray(finalSummary.result?.items) && + finalSummary.result.items.length === 0; + step("op.read.projectSummary.final", { + ok: finalClean, + outcome: finalSummary.outcome, + items: finalSummary.result?.items ?? null, + }); + // Content is back at the saved state but AE's dirty flag stays set + // once the project was edited — re-save so close({unsavedChanges: + // "refuse"}) can quit. The fixture is disposable, so this is safe. + const rResave = await op("project.save", { path: fixturePath }); + step("op.project.save.resave", { + ok: rResave.outcome === "COMPLETED", + outcome: rResave.outcome, + result: rResave.result ?? null, + }); + evidence.projectOps = { + baseline: baseline.result ?? null, + addComp: add1.result ?? null, + readbackSawComp: sawComp, + undo: evidence.undo, + addComp2: add2.result ?? null, + remove: rem.result ?? null, + finalItems: finalSummary.result?.items ?? null, + }; + + // ---- 4. jsx toolchain lane ---- + const okBuild = buildFile(join(FIXTURES, "ok.ts")); + step("jsx.build.ok", { ok: okBuild.status === "ok", status: okBuild.status }); + if (okBuild.status === "ok") { + // Same consent-bound eval dispatch as the identity probes above — + // the shared wrapper (Issue #197) replaced the hand-built copy. + const jsxDispatch = evalDispatchRaw; + const j1 = await jsxDispatch(okBuild.output, `conf-jsx-ok-${Date.now().toString(36)}`); + step("jsx.dispatch.ok", { ok: j1.outcome === "COMPLETED", outcome: j1.outcome }); + const j2 = await jsxDispatch('"" + $.global.__toolchainProbe', `conf-jsx-read-${Date.now().toString(36)}`); + step("jsx.verify.global-write", { + ok: j2.outcome === "COMPLETED" && typeof j2.result === "string" && j2.result.includes("hello ae"), + observed: j2.result ?? null, + outcome: j2.outcome, + }); + + const badBuild = buildFile(join(FIXTURES, "runtime-error.ts")); + step("jsx.build.runtime-error", { ok: badBuild.status === "ok", status: badBuild.status }); + if (badBuild.status === "ok") { + const j3 = await jsxDispatch(badBuild.output, `conf-jsx-bad-${Date.now().toString(36)}`); + const hostLine = j3.error?.line ?? null; + const mapped = hostLine != null ? lookup(badBuild.map, hostLine, 1e9) : null; + step("jsx.dispatch.runtime-error", { + ok: j3.outcome === "FAILED", + outcome: j3.outcome, + hostError: j3.error?.message ?? null, + hostErrorName: j3.error?.name ?? null, + hostLine, + }); + step("jsx.sourcemap.to-source", { + ok: mapped != null && mapped.line === 3 && /runtime-error\.ts$/.test(mapped.source ?? ""), + mapped, + }); + evidence.jsx = { + okBuild: { status: okBuild.status, jsxBytes: okBuild.output?.length ?? 0 }, + dispatchOk: j1.outcome, + globalWrite: j2.result ?? null, + runtimeError: { + outcome: j3.outcome, + hostErrorName: j3.error?.name ?? null, + hostLine, + mapped, + }, + }; + } + } + + // ---- 5. a8n transport slice (Issue #49 scenario) ---- + const { steps: sliceSteps } = await runVerticalSlice({ + runner: session.runner, + pin: session.pin, + sendCount: session.transport.sendCount, + }); + evidence.sliceSteps = sliceSteps; + evidence.sliceViolations = assertSliceOutcomes(sliceSteps); + step("a8n.slice", { + ok: Array.isArray(evidence.sliceViolations) && evidence.sliceViolations.length === 0, + violations: evidence.sliceViolations, + outcomes: sliceSteps.map((s) => `${s.label}:${s.outcome}`), + }); + + // ---- 6. timeout dimension: deadline must yield UNKNOWN, no resend ---- + const shortRunner = createJsxRunner({ transport: session.transport, deadlineMs: 800 }); + const timeoutDispatch = createEvalDispatch({ + runner: shortRunner, + pin: session.pin, + projectIdentity: () => projectIdentity, + operationId: EVAL_OP, + scriptProvenance: "conformance-run", + }); + const t0 = Date.now(); + const timeoutRequestId = `conf-timeout-${Date.now().toString(36)}`; + // Exactly-one-send check (Issue #384): an UNKNOWN outcome alone does + // not prove the runner did not resend. No other probe dispatches in + // this window, so the transport send-count delta across the probe + + // late-completion wait must be exactly 1. + const sendsBeforeTimeout = session.transport.sendCount(); + const timeoutResult = await timeoutDispatch('$.sleep(2000); "slept"', timeoutRequestId); + // Let the sleeping host script finish before close. + await new Promise((r) => setTimeout(r, 2500)); + const sendsAfterTimeout = session.transport.sendCount(); + const timeoutSendDelta = sendsAfterTimeout - sendsBeforeTimeout; + + evidence.timeoutProbe = { + outcome: timeoutResult.outcome, + contractOutcome: timeoutResult.contractOutcome ?? null, + retry: timeoutResult.retry ?? null, + elapsedMs: Date.now() - t0, + quarantined: shortRunner.isQuarantined(timeoutRequestId), + sendsBefore: sendsBeforeTimeout, + sendsAfter: sendsAfterTimeout, + sendDelta: timeoutSendDelta, + }; + step("timeout.probe", { + ok: isCleanTimeoutProbe({ outcome: timeoutResult.outcome, sendDelta: timeoutSendDelta }), + ...evidence.timeoutProbe, + }); + + evidence.transportSends = session.transport.sendCount(); + evidence.opResultSummary = Object.fromEntries( + Object.entries(opResults).map(([k, v]) => [k, v.outcome ?? v.status ?? null]), + ); + evidence.evidenceLevel = "verified on real host"; + } catch (error) { + evidence.fatal = { + name: error instanceof Error ? error.name : "Error", + message: error instanceof Error ? error.message : String(error), + }; + step("fatal", { ok: false, message: evidence.fatal.message }); + evidence.ok = false; + } finally { + if (session) { + // Preserve the ae-a8n trace before close() removes the workdir. + try { + if (typeof session.tracePath === "string" && existsSync(session.tracePath)) { + const traceCopy = join(workdir, "trace.jsonl"); + copyFileSync(session.tracePath, traceCopy); + evidence.traceCopy = traceCopy; + evidence.traceSha256 = sha256File(traceCopy); + } + } catch { /* trace preservation is best-effort */ } + try { + await session.close(); + evidence.close = { quit: true }; + step("session.close", { ok: true }); + } catch (error) { + evidence.close = { + quit: false, + error: error instanceof Error ? error.message : String(error), + }; + step("session.close", { ok: false, message: evidence.close.error }); + evidence.ok = false; + } + // Settle the run marker with the CLI contract: "closed" removes + // it, "close-failed" keeps it as residue (Issue #252). + if (guard !== null) { + guard.end(evidence.close.quit === true ? "closed" : "close-failed"); + } + const after = await aeProcessSnapshot(processFragment); + evidence.aeProcessesAfterClose = after; + // aeProcessSnapshot returns {error} when `ps` itself fails — that + // is NOT proof of shutdown. An unverifiable snapshot must fail + // the run closed, never silently pass the quarantine check. + if (!Array.isArray(after)) { + evidence.sessionQuarantined = true; + evidence.quarantineReason = `AE process snapshot failed (${after?.error ?? "unknown"}); cannot prove session shutdown`; + evidence.ok = false; + } else { + const mainLeft = after.filter((p) => MAIN_EXE.test(p.args ?? "")); + if (mainLeft.length > 0) { + evidence.sessionQuarantined = true; + evidence.quarantineReason = `main AE process(es) survived close(): ${mainLeft.map((p) => p.pid).join(", ")}`; + evidence.ok = false; + } + } + } + evidence.finishedAt = new Date().toISOString(); + mkdirSync(dirname(out), { recursive: true }); + writeFileSync(out, JSON.stringify(evidence, null, 2) + "\n", "utf8"); + console.log(`evidence written: ${out}`); + } + if (evidence.ok === false) process.exitCode = 1; +} + +if (isMainEntry(import.meta.url)) { + main().catch((error) => { + console.error(`conformance real-run failed: ${error instanceof Error ? error.message : String(error)}`); + process.exitCode = 1; + }); +} diff --git a/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/mcp-stdio.jsonl b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/mcp-stdio.jsonl new file mode 100644 index 00000000..16187ae2 --- /dev/null +++ b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/mcp-stdio.jsonl @@ -0,0 +1,3291 @@ +[ + { + "t": "2026-11-20T21:29:36.293Z", + "step": "initialize", + "argv": [ + "mcp-server/server.mjs", + "--session", + "a8n", + "--install-dir", + "/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app" + ], + "fixturePath": "/tmp/run-029-mcp/Conformance-MCP-Disposable.aep" + }, + { + "t": "2026-11-20T21:29:36.556Z", + "stderr": "mcp-server: ae-devtools-mcp@0.6.0 schema=ae-devtools.mcp/v1 session=a8n (stdio NDJSON; fake session = fake/mock evidence only)\n" + }, + { + "t": "2026-11-20T21:29:36.562Z", + "rx": { + "jsonrpc": "2.0", + "id": 1, + "result": { + "protocolVersion": "2024-11-05", + "capabilities": { + "tools": { + "listChanged": false + } + }, + "serverInfo": { + "name": "ae-devtools-mcp", + "version": "0.6.0" + }, + "instructions": "ae-devtools dev-loop tools. ae_execute/ae_verify require arguments.consent:\"grant\"; destructive ops need confirmDestructive:true, render ops confirmRender:true. Default session is the codec-faithful fake host — results are fake/mock evidence, not real AE." + } + } + }, + { + "t": "2026-11-20T21:29:36.563Z", + "step": "initialized", + "serverInfo": { + "name": "ae-devtools-mcp", + "version": "0.6.0" + } + }, + { + "t": "2026-11-20T21:29:36.564Z", + "step": "ae_discover" + }, + { + "t": "2026-11-20T21:29:36.569Z", + "rx": { + "jsonrpc": "2.0", + "id": 2, + "result": { + "content": [ + { + "type": "text", + "text": "{\n \"schema\": \"ae-devtools.dev-loop/v1\",\n \"evidenceLevel\": \"registry metadata — no dispatch\",\n \"operationCount\": 97,\n \"evidence\": {\n \"implemented\": 97,\n \"automatedTest\": 97,\n \"fakeMockVerified\": 97,\n \"realHostVerified\": 0,\n \"level\": \"fake/mock only\"\n },\n \"operations\": [\n {\n \"id\": \"project.new\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": true,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 1\n },\n {\n \"id\": \"project.open\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": true,\n \"requiresConfirm\": null,\n \"args\": [\n \"path\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"project.save\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"path\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"project.close\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": true,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 1\n },\n {\n \"id\": \"item.addComp\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"width\",\n \"height\",\n \"pixelAspect\",\n \"duration\",\n \"frameRate\",\n \"parentFolder\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"item.addFolder\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"parentFolder\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"item.remove\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": true,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"type\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"item.setParentFolder\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"type\",\n \"parentFolder\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"item.setSelected\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"type\",\n \"selected\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"comp.addNullLayer\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"layer.setTransformPosition\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"x\",\n \"y\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.reorder\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"to\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.setParent\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"parentName\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"layer.duplicate\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"read.projectSummary\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 10\n },\n {\n \"id\": \"read.projectTree\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 10\n },\n {\n \"id\": \"read.itemById\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"id\"\n ],\n \"memberCount\": 6\n },\n {\n \"id\": \"anim.setValue\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"value\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"anim.setKeyframe\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"keyIndex\",\n \"value\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"anim.setValueAtTime\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"time\",\n \"value\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"anim.setExpression\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"expression\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"effect.add\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"effectMatchName\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"render.queueComp\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"render.renderQueued\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": \"render\",\n \"args\": [],\n \"memberCount\": 1\n },\n {\n \"id\": \"read.compLayers\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 15\n },\n {\n \"id\": \"read.layerDetail\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 12\n },\n {\n \"id\": \"read.propertyValue\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"read.keyframes\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"read.renderQueueStatus\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 11\n },\n {\n \"id\": \"read.itemDetail\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 10\n },\n {\n \"id\": \"item.import\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"path\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"comp.duplicate\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"item.setLabel\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"type\",\n \"label\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.setTiming\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"startTime\",\n \"stretch\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.setState\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"solo\",\n \"shy\",\n \"locked\",\n \"label\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"anim.removeKeyframe\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"keyIndex\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"read.valueAtTime\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"time\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"render.setTimeSpan\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"timeSpanStart\",\n \"timeSpanDuration\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"render.removeFromQueue\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"layer.setAvState\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"audioEnabled\",\n \"threeDLayer\",\n \"motionBlur\",\n \"guideLayer\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"read.propertyDetail\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\"\n ],\n \"memberCount\": 12\n },\n {\n \"id\": \"anim.setExpressionEnabled\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"enabled\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"render.getOutputSettings\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 6\n },\n {\n \"id\": \"render.setOutputSetting\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"setting\",\n \"value\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"render.listTemplates\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"render.applyTemplate\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"templateName\"\n ],\n \"memberCount\": 9\n },\n {\n \"id\": \"render.saveTemplate\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"templateName\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"render.listOutputModules\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 10\n },\n {\n \"id\": \"render.addOutputModule\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"render.applyOutputModuleTemplate\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"moduleIndex\",\n \"templateName\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"render.saveOutputModuleTemplate\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"moduleIndex\",\n \"templateName\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"render.setOutputModuleOptions\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"moduleIndex\",\n \"file\",\n \"includeSourceXMP\",\n \"postRenderAction\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"item.setComment\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"type\",\n \"comment\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"comp.setResolutionFactor\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"resolutionFactor\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.addSolid\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\",\n \"width\",\n \"height\",\n \"pixelAspect\",\n \"color\",\n \"duration\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"layer.addText\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\",\n \"text\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"layer.addCamera\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\",\n \"centerPoint\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"layer.addLight\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\",\n \"centerPoint\"\n ],\n \"memberCount\": 1\n },\n {\n \"id\": \"text.setText\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"text\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"text.setStyle\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"font\",\n \"fontSize\",\n \"justification\",\n \"fillColor\",\n \"tracking\",\n \"leading\"\n ],\n \"memberCount\": 8\n },\n {\n \"id\": \"text.readStyle\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 9\n },\n {\n \"id\": \"layer.addBoxText\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\",\n \"width\",\n \"height\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"text.setPaint\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"applyFill\",\n \"applyStroke\",\n \"strokeColor\",\n \"strokeWidth\",\n \"strokeOverFill\",\n \"autoLeading\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"text.setBoxMetrics\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"boxTextSize\",\n \"boxTextPos\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"text.setCharAttributes\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"baselineShift\",\n \"horizontalScale\",\n \"verticalScale\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"text.readDocument\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 31\n },\n {\n \"id\": \"layer.setLayerFlags\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"adjustmentLayer\",\n \"preserveTransparency\",\n \"collapseTransformation\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"layer.setInOutPoint\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"inPoint\",\n \"outPoint\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"read.footageDetail\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 15\n },\n {\n \"id\": \"item.setProxy\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"path\"\n ],\n \"memberCount\": 6\n },\n {\n \"id\": \"item.setProxyWithSequence\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"path\",\n \"forceAlphabetical\"\n ],\n \"memberCount\": 6\n },\n {\n \"id\": \"item.setProxyWithSolid\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"color\",\n \"solidName\",\n \"width\",\n \"height\",\n \"pixelAspect\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"item.setProxyWithPlaceholder\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"placeholderName\",\n \"width\",\n \"height\",\n \"frameRate\",\n \"duration\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"item.setProxyToNone\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"item.setUseProxy\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"useProxy\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"read.itemProxy\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 7\n },\n {\n \"id\": \"read.projectSettings\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 6\n },\n {\n \"id\": \"pref.get\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"section\",\n \"key\",\n \"type\",\n \"default\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"pref.set\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"section\",\n \"key\",\n \"type\",\n \"value\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"pref.delete\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": true,\n \"requiresConfirm\": null,\n \"args\": [\n \"section\",\n \"key\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"pref.saveToDisk\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 1\n },\n {\n \"id\": \"read.appInfo\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [],\n \"memberCount\": 6\n },\n {\n \"id\": \"anim.setInterpolation\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"keyIndex\",\n \"inType\",\n \"outType\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"anim.setTemporalEase\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"propertyPath\",\n \"keyIndex\",\n \"inEase\",\n \"outEase\"\n ],\n \"memberCount\": 4\n },\n {\n \"id\": \"layer.setTrackMatte\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"matteLayerName\",\n \"matteType\"\n ],\n \"memberCount\": 5\n },\n {\n \"id\": \"layer.setTimeRemap\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"enabled\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"comp.setSettings\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\",\n \"bgColor\",\n \"displayStartTime\",\n \"displayStartFrame\",\n \"shutterAngle\",\n \"shutterPhase\",\n \"motionBlur\",\n \"frameBlending\",\n \"draft3d\",\n \"hideShyLayers\",\n \"preserveNestedFrameRate\",\n \"dropFrame\"\n ],\n \"memberCount\": 11\n },\n {\n \"id\": \"read.compSettings\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"name\"\n ],\n \"memberCount\": 12\n },\n {\n \"id\": \"layer.replaceSource\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"footageName\",\n \"fixExpressions\"\n ],\n \"memberCount\": 2\n },\n {\n \"id\": \"render.duplicateQueueItem\",\n \"domain\": \"animation-effects-render\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"marker.setLayerMarker\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"time\",\n \"comment\",\n \"chapter\",\n \"url\",\n \"frameTarget\",\n \"cuePointName\",\n \"duration\",\n \"eventCuePoint\",\n \"params\"\n ],\n \"memberCount\": 15\n },\n {\n \"id\": \"marker.setCompMarker\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"time\",\n \"comment\",\n \"chapter\",\n \"url\",\n \"frameTarget\",\n \"cuePointName\",\n \"duration\",\n \"eventCuePoint\",\n \"params\"\n ],\n \"memberCount\": 15\n },\n {\n \"id\": \"marker.readLayerMarkers\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 12\n },\n {\n \"id\": \"marker.readCompMarkers\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\"\n ],\n \"memberCount\": 12\n },\n {\n \"id\": \"layer.addShape\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"name\"\n ],\n \"memberCount\": 3\n },\n {\n \"id\": \"shape.readContents\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": false,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\"\n ],\n \"memberCount\": 8\n },\n {\n \"id\": \"shape.addPath\",\n \"domain\": \"project-items-comps-layers\",\n \"mutating\": true,\n \"destructive\": false,\n \"requiresConfirm\": null,\n \"args\": [\n \"compName\",\n \"layerName\",\n \"vertices\",\n \"inTangents\",\n \"outTangents\",\n \"closed\"\n ],\n \"memberCount\": 13\n }\n ]\n}" + } + ] + } + } + }, + { + "t": "2026-11-20T21:29:36.570Z", + "stepResult": "ae_discover", + "isError": false, + "outcome": null, + "session": null, + "result": { + "schema": "ae-devtools.dev-loop/v1", + "evidenceLevel": "registry metadata — no dispatch", + "operationCount": 97, + "evidence": { + "implemented": 97, + "automatedTest": 97, + "fakeMockVerified": 97, + "realHostVerified": 0, + "level": "fake/mock only" + }, + "operations": [ + { + "id": "project.new", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": true, + "requiresConfirm": null, + "args": [], + "memberCount": 1 + }, + { + "id": "project.open", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": true, + "requiresConfirm": null, + "args": [ + "path" + ], + "memberCount": 1 + }, + { + "id": "project.save", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "path" + ], + "memberCount": 1 + }, + { + "id": "project.close", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": true, + "requiresConfirm": null, + "args": [], + "memberCount": 1 + }, + { + "id": "item.addComp", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "width", + "height", + "pixelAspect", + "duration", + "frameRate", + "parentFolder" + ], + "memberCount": 3 + }, + { + "id": "item.addFolder", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "parentFolder" + ], + "memberCount": 3 + }, + { + "id": "item.remove", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": true, + "requiresConfirm": null, + "args": [ + "name", + "type" + ], + "memberCount": 1 + }, + { + "id": "item.setParentFolder", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "type", + "parentFolder" + ], + "memberCount": 4 + }, + { + "id": "item.setSelected", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "type", + "selected" + ], + "memberCount": 4 + }, + { + "id": "comp.addNullLayer", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 1 + }, + { + "id": "layer.setTransformPosition", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "x", + "y" + ], + "memberCount": 2 + }, + { + "id": "layer.reorder", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "to" + ], + "memberCount": 2 + }, + { + "id": "layer.setParent", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "parentName" + ], + "memberCount": 1 + }, + { + "id": "layer.duplicate", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 1 + }, + { + "id": "read.projectSummary", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [], + "memberCount": 10 + }, + { + "id": "read.projectTree", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [], + "memberCount": 10 + }, + { + "id": "read.itemById", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "id" + ], + "memberCount": 6 + }, + { + "id": "anim.setValue", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "value" + ], + "memberCount": 1 + }, + { + "id": "anim.setKeyframe", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "keyIndex", + "value" + ], + "memberCount": 1 + }, + { + "id": "anim.setValueAtTime", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "time", + "value" + ], + "memberCount": 1 + }, + { + "id": "anim.setExpression", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "expression" + ], + "memberCount": 4 + }, + { + "id": "effect.add", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "effectMatchName" + ], + "memberCount": 2 + }, + { + "id": "render.queueComp", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 2 + }, + { + "id": "render.renderQueued", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": "render", + "args": [], + "memberCount": 1 + }, + { + "id": "read.compLayers", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 15 + }, + { + "id": "read.layerDetail", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 12 + }, + { + "id": "read.propertyValue", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath" + ], + "memberCount": 4 + }, + { + "id": "read.keyframes", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath" + ], + "memberCount": 4 + }, + { + "id": "read.renderQueueStatus", + "domain": "animation-effects-render", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [], + "memberCount": 11 + }, + { + "id": "read.itemDetail", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name" + ], + "memberCount": 10 + }, + { + "id": "item.import", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "path" + ], + "memberCount": 2 + }, + { + "id": "comp.duplicate", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name" + ], + "memberCount": 3 + }, + { + "id": "item.setLabel", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "type", + "label" + ], + "memberCount": 2 + }, + { + "id": "layer.setTiming", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "startTime", + "stretch" + ], + "memberCount": 2 + }, + { + "id": "layer.setState", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "solo", + "shy", + "locked", + "label" + ], + "memberCount": 4 + }, + { + "id": "anim.removeKeyframe", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "keyIndex" + ], + "memberCount": 2 + }, + { + "id": "read.valueAtTime", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "time" + ], + "memberCount": 3 + }, + { + "id": "render.setTimeSpan", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "timeSpanStart", + "timeSpanDuration" + ], + "memberCount": 5 + }, + { + "id": "render.removeFromQueue", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 4 + }, + { + "id": "layer.setAvState", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "audioEnabled", + "threeDLayer", + "motionBlur", + "guideLayer" + ], + "memberCount": 4 + }, + { + "id": "read.propertyDetail", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath" + ], + "memberCount": 12 + }, + { + "id": "anim.setExpressionEnabled", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "enabled" + ], + "memberCount": 3 + }, + { + "id": "render.getOutputSettings", + "domain": "animation-effects-render", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 6 + }, + { + "id": "render.setOutputSetting", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "setting", + "value" + ], + "memberCount": 5 + }, + { + "id": "render.listTemplates", + "domain": "animation-effects-render", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 4 + }, + { + "id": "render.applyTemplate", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "templateName" + ], + "memberCount": 9 + }, + { + "id": "render.saveTemplate", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "templateName" + ], + "memberCount": 5 + }, + { + "id": "render.listOutputModules", + "domain": "animation-effects-render", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 10 + }, + { + "id": "render.addOutputModule", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 7 + }, + { + "id": "render.applyOutputModuleTemplate", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "moduleIndex", + "templateName" + ], + "memberCount": 7 + }, + { + "id": "render.saveOutputModuleTemplate", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "moduleIndex", + "templateName" + ], + "memberCount": 7 + }, + { + "id": "render.setOutputModuleOptions", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "moduleIndex", + "file", + "includeSourceXMP", + "postRenderAction" + ], + "memberCount": 7 + }, + { + "id": "item.setComment", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "type", + "comment" + ], + "memberCount": 2 + }, + { + "id": "comp.setResolutionFactor", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "resolutionFactor" + ], + "memberCount": 2 + }, + { + "id": "layer.addSolid", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "name", + "width", + "height", + "pixelAspect", + "color", + "duration" + ], + "memberCount": 1 + }, + { + "id": "layer.addText", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "name", + "text" + ], + "memberCount": 2 + }, + { + "id": "layer.addCamera", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "name", + "centerPoint" + ], + "memberCount": 1 + }, + { + "id": "layer.addLight", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "name", + "centerPoint" + ], + "memberCount": 1 + }, + { + "id": "text.setText", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "text" + ], + "memberCount": 2 + }, + { + "id": "text.setStyle", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "font", + "fontSize", + "justification", + "fillColor", + "tracking", + "leading" + ], + "memberCount": 8 + }, + { + "id": "text.readStyle", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 9 + }, + { + "id": "layer.addBoxText", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "name", + "width", + "height" + ], + "memberCount": 5 + }, + { + "id": "text.setPaint", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "applyFill", + "applyStroke", + "strokeColor", + "strokeWidth", + "strokeOverFill", + "autoLeading" + ], + "memberCount": 7 + }, + { + "id": "text.setBoxMetrics", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "boxTextSize", + "boxTextPos" + ], + "memberCount": 4 + }, + { + "id": "text.setCharAttributes", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "baselineShift", + "horizontalScale", + "verticalScale" + ], + "memberCount": 4 + }, + { + "id": "text.readDocument", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 31 + }, + { + "id": "layer.setLayerFlags", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "adjustmentLayer", + "preserveTransparency", + "collapseTransformation" + ], + "memberCount": 4 + }, + { + "id": "layer.setInOutPoint", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "inPoint", + "outPoint" + ], + "memberCount": 2 + }, + { + "id": "read.footageDetail", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name" + ], + "memberCount": 15 + }, + { + "id": "item.setProxy", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "path" + ], + "memberCount": 6 + }, + { + "id": "item.setProxyWithSequence", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "path", + "forceAlphabetical" + ], + "memberCount": 6 + }, + { + "id": "item.setProxyWithSolid", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "color", + "solidName", + "width", + "height", + "pixelAspect" + ], + "memberCount": 4 + }, + { + "id": "item.setProxyWithPlaceholder", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "placeholderName", + "width", + "height", + "frameRate", + "duration" + ], + "memberCount": 3 + }, + { + "id": "item.setProxyToNone", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name" + ], + "memberCount": 3 + }, + { + "id": "item.setUseProxy", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "useProxy" + ], + "memberCount": 2 + }, + { + "id": "read.itemProxy", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name" + ], + "memberCount": 7 + }, + { + "id": "read.projectSettings", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [], + "memberCount": 6 + }, + { + "id": "pref.get", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "section", + "key", + "type", + "default" + ], + "memberCount": 5 + }, + { + "id": "pref.set", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "section", + "key", + "type", + "value" + ], + "memberCount": 4 + }, + { + "id": "pref.delete", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": true, + "requiresConfirm": null, + "args": [ + "section", + "key" + ], + "memberCount": 2 + }, + { + "id": "pref.saveToDisk", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [], + "memberCount": 1 + }, + { + "id": "read.appInfo", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [], + "memberCount": 6 + }, + { + "id": "anim.setInterpolation", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "keyIndex", + "inType", + "outType" + ], + "memberCount": 5 + }, + { + "id": "anim.setTemporalEase", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "keyIndex", + "inEase", + "outEase" + ], + "memberCount": 4 + }, + { + "id": "layer.setTrackMatte", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "matteLayerName", + "matteType" + ], + "memberCount": 5 + }, + { + "id": "layer.setTimeRemap", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "enabled" + ], + "memberCount": 2 + }, + { + "id": "comp.setSettings", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "bgColor", + "displayStartTime", + "displayStartFrame", + "shutterAngle", + "shutterPhase", + "motionBlur", + "frameBlending", + "draft3d", + "hideShyLayers", + "preserveNestedFrameRate", + "dropFrame" + ], + "memberCount": 11 + }, + { + "id": "read.compSettings", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name" + ], + "memberCount": 12 + }, + { + "id": "layer.replaceSource", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "footageName", + "fixExpressions" + ], + "memberCount": 2 + }, + { + "id": "render.duplicateQueueItem", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 3 + }, + { + "id": "marker.setLayerMarker", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "time", + "comment", + "chapter", + "url", + "frameTarget", + "cuePointName", + "duration", + "eventCuePoint", + "params" + ], + "memberCount": 15 + }, + { + "id": "marker.setCompMarker", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "time", + "comment", + "chapter", + "url", + "frameTarget", + "cuePointName", + "duration", + "eventCuePoint", + "params" + ], + "memberCount": 15 + }, + { + "id": "marker.readLayerMarkers", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 12 + }, + { + "id": "marker.readCompMarkers", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 12 + }, + { + "id": "layer.addShape", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "name" + ], + "memberCount": 3 + }, + { + "id": "shape.readContents", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 8 + }, + { + "id": "shape.addPath", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "vertices", + "inTangents", + "outTangents", + "closed" + ], + "memberCount": 13 + } + ] + } + }, + { + "t": "2026-11-20T21:29:36.573Z", + "step": "ae_verify.pre-state" + }, + { + "t": "2026-11-20T21:29:42.209Z", + "rx": { + "jsonrpc": "2.0", + "id": 3, + "result": { + "content": [ + { + "type": "text", + "text": "{\n \"schema\": \"ae-devtools.mcp/v1\",\n \"session\": {\n \"aeVersion\": \"26.5.3x9\",\n \"ownership\": \"owned\",\n \"aeA8nHead\": \"0.2.0\",\n \"kind\": \"a8n\",\n \"evidenceLevel\": \"verified on real host (macOS)\",\n \"policy\": null\n },\n \"outcome\": \"COMPLETED\",\n \"result\": {\n \"requestId\": \"req-mcp-1\",\n \"operationId\": \"read.projectSummary\",\n \"outcome\": \"COMPLETED\",\n \"requestState\": \"ACKED\",\n \"mayHaveMutated\": true,\n \"result\": {\n \"ok\": true,\n \"count\": 0,\n \"numItems\": 0,\n \"items\": [],\n \"activeItem\": null,\n \"selection\": []\n },\n \"contractOutcome\": \"completed\",\n \"retry\": \"quarantine\",\n \"opId\": \"read.projectSummary\",\n \"mutating\": false,\n \"destructive\": false\n }\n}" + } + ] + } + } + }, + { + "t": "2026-11-20T21:29:42.211Z", + "stepResult": "ae_verify.pre", + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-1", + "operationId": "read.projectSummary", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "count": 0, + "numItems": 0, + "items": [], + "activeItem": null, + "selection": [] + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "read.projectSummary", + "mutating": false, + "destructive": false + } + }, + { + "t": "2026-11-20T21:29:42.212Z", + "step": "ae_execute.project.new (launches owned AE)" + }, + { + "t": "2026-11-20T21:29:43.255Z", + "rx": { + "jsonrpc": "2.0", + "id": 4, + "result": { + "content": [ + { + "type": "text", + "text": "{\n \"schema\": \"ae-devtools.mcp/v1\",\n \"session\": {\n \"aeVersion\": \"26.5.3x9\",\n \"ownership\": \"owned\",\n \"aeA8nHead\": \"0.2.0\",\n \"kind\": \"a8n\",\n \"evidenceLevel\": \"verified on real host (macOS)\",\n \"policy\": null\n },\n \"outcome\": \"COMPLETED\",\n \"result\": {\n \"requestId\": \"req-mcp-2\",\n \"operationId\": \"project.new\",\n \"outcome\": \"COMPLETED\",\n \"requestState\": \"ACKED\",\n \"mayHaveMutated\": true,\n \"result\": {\n \"ok\": true\n },\n \"contractOutcome\": \"completed\",\n \"retry\": \"quarantine\",\n \"opId\": \"project.new\",\n \"mutating\": true,\n \"destructive\": true\n }\n}" + } + ] + } + } + }, + { + "t": "2026-11-20T21:29:43.255Z", + "stepResult": "project.new", + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-2", + "operationId": "project.new", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "project.new", + "mutating": true, + "destructive": true + } + }, + { + "t": "2026-11-20T21:29:43.257Z", + "step": "ae_execute.project.save" + }, + { + "t": "2026-11-20T21:29:44.219Z", + "rx": { + "jsonrpc": "2.0", + "id": 5, + "result": { + "content": [ + { + "type": "text", + "text": "{\n \"schema\": \"ae-devtools.mcp/v1\",\n \"session\": {\n \"aeVersion\": \"26.5.3x9\",\n \"ownership\": \"owned\",\n \"aeA8nHead\": \"0.2.0\",\n \"kind\": \"a8n\",\n \"evidenceLevel\": \"verified on real host (macOS)\",\n \"policy\": null\n },\n \"outcome\": \"COMPLETED\",\n \"result\": {\n \"requestId\": \"req-mcp-3\",\n \"operationId\": \"project.save\",\n \"outcome\": \"COMPLETED\",\n \"requestState\": \"ACKED\",\n \"mayHaveMutated\": true,\n \"result\": {\n \"ok\": true\n },\n \"contractOutcome\": \"completed\",\n \"retry\": \"quarantine\",\n \"opId\": \"project.save\",\n \"mutating\": true,\n \"destructive\": false\n }\n}" + } + ] + } + } + }, + { + "t": "2026-11-20T21:29:44.220Z", + "stepResult": "project.save", + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-3", + "operationId": "project.save", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "project.save", + "mutating": true, + "destructive": false + } + }, + { + "t": "2026-11-20T21:29:44.221Z", + "step": "ae_execute.item.addComp" + }, + { + "t": "2026-11-20T21:29:45.093Z", + "rx": { + "jsonrpc": "2.0", + "id": 6, + "result": { + "content": [ + { + "type": "text", + "text": "{\n \"schema\": \"ae-devtools.mcp/v1\",\n \"session\": {\n \"aeVersion\": \"26.5.3x9\",\n \"ownership\": \"owned\",\n \"aeA8nHead\": \"0.2.0\",\n \"kind\": \"a8n\",\n \"evidenceLevel\": \"verified on real host (macOS)\",\n \"policy\": null\n },\n \"outcome\": \"COMPLETED\",\n \"result\": {\n \"requestId\": \"req-mcp-4\",\n \"operationId\": \"item.addComp\",\n \"outcome\": \"COMPLETED\",\n \"requestState\": \"ACKED\",\n \"mayHaveMutated\": true,\n \"result\": {\n \"ok\": true,\n \"id\": 1,\n \"name\": \"MCP Conformance Comp\",\n \"parent\": null\n },\n \"contractOutcome\": \"completed\",\n \"retry\": \"quarantine\",\n \"opId\": \"item.addComp\",\n \"mutating\": true,\n \"destructive\": false\n }\n}" + } + ] + } + } + }, + { + "t": "2026-11-20T21:29:45.094Z", + "stepResult": "item.addComp", + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-4", + "operationId": "item.addComp", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "id": 1, + "name": "MCP Conformance Comp", + "parent": null + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "item.addComp", + "mutating": true, + "destructive": false + } + }, + { + "t": "2026-11-20T21:29:45.094Z", + "step": "ae_verify.readback" + }, + { + "t": "2026-11-20T21:29:46.035Z", + "rx": { + "jsonrpc": "2.0", + "id": 7, + "result": { + "content": [ + { + "type": "text", + "text": "{\n \"schema\": \"ae-devtools.mcp/v1\",\n \"session\": {\n \"aeVersion\": \"26.5.3x9\",\n \"ownership\": \"owned\",\n \"aeA8nHead\": \"0.2.0\",\n \"kind\": \"a8n\",\n \"evidenceLevel\": \"verified on real host (macOS)\",\n \"policy\": null\n },\n \"outcome\": \"COMPLETED\",\n \"result\": {\n \"requestId\": \"req-mcp-5\",\n \"operationId\": \"read.projectSummary\",\n \"outcome\": \"COMPLETED\",\n \"requestState\": \"ACKED\",\n \"mayHaveMutated\": true,\n \"result\": {\n \"ok\": true,\n \"count\": 1,\n \"numItems\": 1,\n \"items\": [\n {\n \"name\": \"MCP Conformance Comp\",\n \"typeName\": \"コンポジション\",\n \"id\": 1,\n \"selected\": false,\n \"parent\": null\n }\n ],\n \"activeItem\": null,\n \"selection\": []\n },\n \"contractOutcome\": \"completed\",\n \"retry\": \"quarantine\",\n \"opId\": \"read.projectSummary\",\n \"mutating\": false,\n \"destructive\": false\n }\n}" + } + ] + } + } + }, + { + "t": "2026-11-20T21:29:46.036Z", + "stepResult": "ae_verify.readback", + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-5", + "operationId": "read.projectSummary", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "count": 1, + "numItems": 1, + "items": [ + { + "name": "MCP Conformance Comp", + "typeName": "コンポジション", + "id": 1, + "selected": false, + "parent": null + } + ], + "activeItem": null, + "selection": [] + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "read.projectSummary", + "mutating": false, + "destructive": false + } + }, + { + "t": "2026-11-20T21:29:46.037Z", + "step": "ae_execute.item.remove" + }, + { + "t": "2026-11-20T21:29:46.628Z", + "rx": { + "jsonrpc": "2.0", + "id": 8, + "result": { + "content": [ + { + "type": "text", + "text": "{\n \"schema\": \"ae-devtools.mcp/v1\",\n \"session\": {\n \"aeVersion\": \"26.5.3x9\",\n \"ownership\": \"owned\",\n \"aeA8nHead\": \"0.2.0\",\n \"kind\": \"a8n\",\n \"evidenceLevel\": \"verified on real host (macOS)\",\n \"policy\": null\n },\n \"outcome\": \"COMPLETED\",\n \"result\": {\n \"requestId\": \"req-mcp-6\",\n \"operationId\": \"item.remove\",\n \"outcome\": \"COMPLETED\",\n \"requestState\": \"ACKED\",\n \"mayHaveMutated\": true,\n \"result\": {\n \"ok\": true,\n \"removed\": \"MCP Conformance Comp\"\n },\n \"contractOutcome\": \"completed\",\n \"retry\": \"quarantine\",\n \"opId\": \"item.remove\",\n \"mutating\": true,\n \"destructive\": true\n }\n}" + } + ] + } + } + }, + { + "t": "2026-11-20T21:29:46.630Z", + "stepResult": "item.remove", + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-6", + "operationId": "item.remove", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "removed": "MCP Conformance Comp" + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "item.remove", + "mutating": true, + "destructive": true + } + }, + { + "t": "2026-11-20T21:29:46.630Z", + "step": "ae_verify.final" + }, + { + "t": "2026-11-20T21:29:47.735Z", + "rx": { + "jsonrpc": "2.0", + "id": 9, + "result": { + "content": [ + { + "type": "text", + "text": "{\n \"schema\": \"ae-devtools.mcp/v1\",\n \"session\": {\n \"aeVersion\": \"26.5.3x9\",\n \"ownership\": \"owned\",\n \"aeA8nHead\": \"0.2.0\",\n \"kind\": \"a8n\",\n \"evidenceLevel\": \"verified on real host (macOS)\",\n \"policy\": null\n },\n \"outcome\": \"COMPLETED\",\n \"result\": {\n \"requestId\": \"req-mcp-7\",\n \"operationId\": \"read.projectSummary\",\n \"outcome\": \"COMPLETED\",\n \"requestState\": \"ACKED\",\n \"mayHaveMutated\": true,\n \"result\": {\n \"ok\": true,\n \"count\": 0,\n \"numItems\": 0,\n \"items\": [],\n \"activeItem\": null,\n \"selection\": []\n },\n \"contractOutcome\": \"completed\",\n \"retry\": \"quarantine\",\n \"opId\": \"read.projectSummary\",\n \"mutating\": false,\n \"destructive\": false\n }\n}" + } + ] + } + } + }, + { + "t": "2026-11-20T21:29:47.737Z", + "stepResult": "ae_verify.final", + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-7", + "operationId": "read.projectSummary", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "count": 0, + "numItems": 0, + "items": [], + "activeItem": null, + "selection": [] + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "read.projectSummary", + "mutating": false, + "destructive": false + } + }, + { + "t": "2026-11-20T21:29:47.739Z", + "step": "ae_execute.project.save.resave" + }, + { + "t": "2026-11-20T21:29:48.803Z", + "rx": { + "jsonrpc": "2.0", + "id": 10, + "result": { + "content": [ + { + "type": "text", + "text": "{\n \"schema\": \"ae-devtools.mcp/v1\",\n \"session\": {\n \"aeVersion\": \"26.5.3x9\",\n \"ownership\": \"owned\",\n \"aeA8nHead\": \"0.2.0\",\n \"kind\": \"a8n\",\n \"evidenceLevel\": \"verified on real host (macOS)\",\n \"policy\": null\n },\n \"outcome\": \"COMPLETED\",\n \"result\": {\n \"requestId\": \"req-mcp-8\",\n \"operationId\": \"project.save\",\n \"outcome\": \"COMPLETED\",\n \"requestState\": \"ACKED\",\n \"mayHaveMutated\": true,\n \"result\": {\n \"ok\": true\n },\n \"contractOutcome\": \"completed\",\n \"retry\": \"quarantine\",\n \"opId\": \"project.save\",\n \"mutating\": true,\n \"destructive\": false\n }\n}" + } + ] + } + } + }, + { + "t": "2026-11-20T21:29:48.804Z", + "stepResult": "project.save.resave", + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-8", + "operationId": "project.save", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "project.save", + "mutating": true, + "destructive": false + } + }, + { + "t": "2026-11-20T21:30:03.808Z", + "step": "server.stopped", + "fixturePath": "/tmp/run-029-mcp/Conformance-MCP-Disposable.aep", + "shutdownConfirmed": true, + "cleanShutdown": true, + "forcedKill": false, + "exitCode": 143, + "signalCode": null, + "results": { + "ae_discover": { + "isError": false, + "outcome": null, + "session": null, + "result": { + "schema": "ae-devtools.dev-loop/v1", + "evidenceLevel": "registry metadata — no dispatch", + "operationCount": 97, + "evidence": { + "implemented": 97, + "automatedTest": 97, + "fakeMockVerified": 97, + "realHostVerified": 0, + "level": "fake/mock only" + }, + "operations": [ + { + "id": "project.new", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": true, + "requiresConfirm": null, + "args": [], + "memberCount": 1 + }, + { + "id": "project.open", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": true, + "requiresConfirm": null, + "args": [ + "path" + ], + "memberCount": 1 + }, + { + "id": "project.save", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "path" + ], + "memberCount": 1 + }, + { + "id": "project.close", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": true, + "requiresConfirm": null, + "args": [], + "memberCount": 1 + }, + { + "id": "item.addComp", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "width", + "height", + "pixelAspect", + "duration", + "frameRate", + "parentFolder" + ], + "memberCount": 3 + }, + { + "id": "item.addFolder", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "parentFolder" + ], + "memberCount": 3 + }, + { + "id": "item.remove", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": true, + "requiresConfirm": null, + "args": [ + "name", + "type" + ], + "memberCount": 1 + }, + { + "id": "item.setParentFolder", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "type", + "parentFolder" + ], + "memberCount": 4 + }, + { + "id": "item.setSelected", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "type", + "selected" + ], + "memberCount": 4 + }, + { + "id": "comp.addNullLayer", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 1 + }, + { + "id": "layer.setTransformPosition", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "x", + "y" + ], + "memberCount": 2 + }, + { + "id": "layer.reorder", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "to" + ], + "memberCount": 2 + }, + { + "id": "layer.setParent", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "parentName" + ], + "memberCount": 1 + }, + { + "id": "layer.duplicate", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 1 + }, + { + "id": "read.projectSummary", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [], + "memberCount": 10 + }, + { + "id": "read.projectTree", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [], + "memberCount": 10 + }, + { + "id": "read.itemById", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "id" + ], + "memberCount": 6 + }, + { + "id": "anim.setValue", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "value" + ], + "memberCount": 1 + }, + { + "id": "anim.setKeyframe", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "keyIndex", + "value" + ], + "memberCount": 1 + }, + { + "id": "anim.setValueAtTime", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "time", + "value" + ], + "memberCount": 1 + }, + { + "id": "anim.setExpression", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "expression" + ], + "memberCount": 4 + }, + { + "id": "effect.add", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "effectMatchName" + ], + "memberCount": 2 + }, + { + "id": "render.queueComp", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 2 + }, + { + "id": "render.renderQueued", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": "render", + "args": [], + "memberCount": 1 + }, + { + "id": "read.compLayers", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 15 + }, + { + "id": "read.layerDetail", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 12 + }, + { + "id": "read.propertyValue", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath" + ], + "memberCount": 4 + }, + { + "id": "read.keyframes", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath" + ], + "memberCount": 4 + }, + { + "id": "read.renderQueueStatus", + "domain": "animation-effects-render", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [], + "memberCount": 11 + }, + { + "id": "read.itemDetail", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name" + ], + "memberCount": 10 + }, + { + "id": "item.import", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "path" + ], + "memberCount": 2 + }, + { + "id": "comp.duplicate", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name" + ], + "memberCount": 3 + }, + { + "id": "item.setLabel", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "type", + "label" + ], + "memberCount": 2 + }, + { + "id": "layer.setTiming", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "startTime", + "stretch" + ], + "memberCount": 2 + }, + { + "id": "layer.setState", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "solo", + "shy", + "locked", + "label" + ], + "memberCount": 4 + }, + { + "id": "anim.removeKeyframe", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "keyIndex" + ], + "memberCount": 2 + }, + { + "id": "read.valueAtTime", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "time" + ], + "memberCount": 3 + }, + { + "id": "render.setTimeSpan", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "timeSpanStart", + "timeSpanDuration" + ], + "memberCount": 5 + }, + { + "id": "render.removeFromQueue", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 4 + }, + { + "id": "layer.setAvState", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "audioEnabled", + "threeDLayer", + "motionBlur", + "guideLayer" + ], + "memberCount": 4 + }, + { + "id": "read.propertyDetail", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath" + ], + "memberCount": 12 + }, + { + "id": "anim.setExpressionEnabled", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "enabled" + ], + "memberCount": 3 + }, + { + "id": "render.getOutputSettings", + "domain": "animation-effects-render", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 6 + }, + { + "id": "render.setOutputSetting", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "setting", + "value" + ], + "memberCount": 5 + }, + { + "id": "render.listTemplates", + "domain": "animation-effects-render", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 4 + }, + { + "id": "render.applyTemplate", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "templateName" + ], + "memberCount": 9 + }, + { + "id": "render.saveTemplate", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "templateName" + ], + "memberCount": 5 + }, + { + "id": "render.listOutputModules", + "domain": "animation-effects-render", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 10 + }, + { + "id": "render.addOutputModule", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 7 + }, + { + "id": "render.applyOutputModuleTemplate", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "moduleIndex", + "templateName" + ], + "memberCount": 7 + }, + { + "id": "render.saveOutputModuleTemplate", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "moduleIndex", + "templateName" + ], + "memberCount": 7 + }, + { + "id": "render.setOutputModuleOptions", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "moduleIndex", + "file", + "includeSourceXMP", + "postRenderAction" + ], + "memberCount": 7 + }, + { + "id": "item.setComment", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "type", + "comment" + ], + "memberCount": 2 + }, + { + "id": "comp.setResolutionFactor", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "resolutionFactor" + ], + "memberCount": 2 + }, + { + "id": "layer.addSolid", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "name", + "width", + "height", + "pixelAspect", + "color", + "duration" + ], + "memberCount": 1 + }, + { + "id": "layer.addText", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "name", + "text" + ], + "memberCount": 2 + }, + { + "id": "layer.addCamera", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "name", + "centerPoint" + ], + "memberCount": 1 + }, + { + "id": "layer.addLight", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "name", + "centerPoint" + ], + "memberCount": 1 + }, + { + "id": "text.setText", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "text" + ], + "memberCount": 2 + }, + { + "id": "text.setStyle", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "font", + "fontSize", + "justification", + "fillColor", + "tracking", + "leading" + ], + "memberCount": 8 + }, + { + "id": "text.readStyle", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 9 + }, + { + "id": "layer.addBoxText", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "name", + "width", + "height" + ], + "memberCount": 5 + }, + { + "id": "text.setPaint", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "applyFill", + "applyStroke", + "strokeColor", + "strokeWidth", + "strokeOverFill", + "autoLeading" + ], + "memberCount": 7 + }, + { + "id": "text.setBoxMetrics", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "boxTextSize", + "boxTextPos" + ], + "memberCount": 4 + }, + { + "id": "text.setCharAttributes", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "baselineShift", + "horizontalScale", + "verticalScale" + ], + "memberCount": 4 + }, + { + "id": "text.readDocument", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 31 + }, + { + "id": "layer.setLayerFlags", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "adjustmentLayer", + "preserveTransparency", + "collapseTransformation" + ], + "memberCount": 4 + }, + { + "id": "layer.setInOutPoint", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "inPoint", + "outPoint" + ], + "memberCount": 2 + }, + { + "id": "read.footageDetail", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name" + ], + "memberCount": 15 + }, + { + "id": "item.setProxy", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "path" + ], + "memberCount": 6 + }, + { + "id": "item.setProxyWithSequence", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "path", + "forceAlphabetical" + ], + "memberCount": 6 + }, + { + "id": "item.setProxyWithSolid", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "color", + "solidName", + "width", + "height", + "pixelAspect" + ], + "memberCount": 4 + }, + { + "id": "item.setProxyWithPlaceholder", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "placeholderName", + "width", + "height", + "frameRate", + "duration" + ], + "memberCount": 3 + }, + { + "id": "item.setProxyToNone", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name" + ], + "memberCount": 3 + }, + { + "id": "item.setUseProxy", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "useProxy" + ], + "memberCount": 2 + }, + { + "id": "read.itemProxy", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name" + ], + "memberCount": 7 + }, + { + "id": "read.projectSettings", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [], + "memberCount": 6 + }, + { + "id": "pref.get", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "section", + "key", + "type", + "default" + ], + "memberCount": 5 + }, + { + "id": "pref.set", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "section", + "key", + "type", + "value" + ], + "memberCount": 4 + }, + { + "id": "pref.delete", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": true, + "requiresConfirm": null, + "args": [ + "section", + "key" + ], + "memberCount": 2 + }, + { + "id": "pref.saveToDisk", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [], + "memberCount": 1 + }, + { + "id": "read.appInfo", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [], + "memberCount": 6 + }, + { + "id": "anim.setInterpolation", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "keyIndex", + "inType", + "outType" + ], + "memberCount": 5 + }, + { + "id": "anim.setTemporalEase", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "propertyPath", + "keyIndex", + "inEase", + "outEase" + ], + "memberCount": 4 + }, + { + "id": "layer.setTrackMatte", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "matteLayerName", + "matteType" + ], + "memberCount": 5 + }, + { + "id": "layer.setTimeRemap", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "enabled" + ], + "memberCount": 2 + }, + { + "id": "comp.setSettings", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name", + "bgColor", + "displayStartTime", + "displayStartFrame", + "shutterAngle", + "shutterPhase", + "motionBlur", + "frameBlending", + "draft3d", + "hideShyLayers", + "preserveNestedFrameRate", + "dropFrame" + ], + "memberCount": 11 + }, + { + "id": "read.compSettings", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "name" + ], + "memberCount": 12 + }, + { + "id": "layer.replaceSource", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "footageName", + "fixExpressions" + ], + "memberCount": 2 + }, + { + "id": "render.duplicateQueueItem", + "domain": "animation-effects-render", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 3 + }, + { + "id": "marker.setLayerMarker", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "time", + "comment", + "chapter", + "url", + "frameTarget", + "cuePointName", + "duration", + "eventCuePoint", + "params" + ], + "memberCount": 15 + }, + { + "id": "marker.setCompMarker", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "time", + "comment", + "chapter", + "url", + "frameTarget", + "cuePointName", + "duration", + "eventCuePoint", + "params" + ], + "memberCount": 15 + }, + { + "id": "marker.readLayerMarkers", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 12 + }, + { + "id": "marker.readCompMarkers", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName" + ], + "memberCount": 12 + }, + { + "id": "layer.addShape", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "name" + ], + "memberCount": 3 + }, + { + "id": "shape.readContents", + "domain": "project-items-comps-layers", + "mutating": false, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName" + ], + "memberCount": 8 + }, + { + "id": "shape.addPath", + "domain": "project-items-comps-layers", + "mutating": true, + "destructive": false, + "requiresConfirm": null, + "args": [ + "compName", + "layerName", + "vertices", + "inTangents", + "outTangents", + "closed" + ], + "memberCount": 13 + } + ] + } + }, + "ae_verify.pre": { + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-1", + "operationId": "read.projectSummary", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "count": 0, + "numItems": 0, + "items": [], + "activeItem": null, + "selection": [] + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "read.projectSummary", + "mutating": false, + "destructive": false + } + }, + "project.new": { + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-2", + "operationId": "project.new", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "project.new", + "mutating": true, + "destructive": true + } + }, + "project.save": { + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-3", + "operationId": "project.save", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "project.save", + "mutating": true, + "destructive": false + } + }, + "item.addComp": { + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-4", + "operationId": "item.addComp", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "id": 1, + "name": "MCP Conformance Comp", + "parent": null + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "item.addComp", + "mutating": true, + "destructive": false + } + }, + "ae_verify.readback": { + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-5", + "operationId": "read.projectSummary", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "count": 1, + "numItems": 1, + "items": [ + { + "name": "MCP Conformance Comp", + "typeName": "コンポジション", + "id": 1, + "selected": false, + "parent": null + } + ], + "activeItem": null, + "selection": [] + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "read.projectSummary", + "mutating": false, + "destructive": false + } + }, + "item.remove": { + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-6", + "operationId": "item.remove", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "removed": "MCP Conformance Comp" + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "item.remove", + "mutating": true, + "destructive": true + } + }, + "ae_verify.final": { + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-7", + "operationId": "read.projectSummary", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true, + "count": 0, + "numItems": 0, + "items": [], + "activeItem": null, + "selection": [] + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "read.projectSummary", + "mutating": false, + "destructive": false + } + }, + "project.save.resave": { + "isError": false, + "outcome": "COMPLETED", + "session": { + "aeVersion": "26.5.3x9", + "ownership": "owned", + "aeA8nHead": "0.2.0", + "kind": "a8n", + "evidenceLevel": "verified on real host (macOS)", + "policy": null + }, + "result": { + "requestId": "req-mcp-8", + "operationId": "project.save", + "outcome": "COMPLETED", + "requestState": "ACKED", + "mayHaveMutated": true, + "result": { + "ok": true + }, + "contractOutcome": "completed", + "retry": "quarantine", + "opId": "project.save", + "mutating": true, + "destructive": false + } + } + } + }, + { + "t": "2026-11-20T21:30:03.814Z", + "verdict": "pass" + } +] \ No newline at end of file diff --git a/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/provenance.json b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/provenance.json new file mode 100644 index 00000000..07f5339e --- /dev/null +++ b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/provenance.json @@ -0,0 +1,51 @@ +{ + "schema": "ae-devtools.conformance-provenance/v1", + "recordedAt": "2026-11-20T21:43:53.000Z", + "git": { + "head": "417c77fe08eadf4c961646196197757617faf02d", + "dirty": true, + "note": "lanes executed at 417c77fe08eadf4c961646196197757617faf02d on release-0-6-0 (v0.6.0 release candidate, PR #379 head); the only uncommitted paths during the run were this in-progress evidence directory — no tracked file differed from head. sourceDirty:true appears in cli-project-open.json for the same reason." + }, + "aeA8n": { + "name": "@ido-bata/ae-a8n", + "version": "0.2.0", + "distTag": "pinned-dependency", + "distTagsAtRun": { + "latest": "0.3.0", + "next": "0.4.0" + }, + "tarball": "https://registry.npmjs.org/@ido-bata/ae-a8n/-/ae-a8n-0.2.0.tgz", + "fileCount": 164 + }, + "aeDevtools": { + "package": "ae-devtools-cli", + "sourceSha": "417c77fe08eadf4c961646196197757617faf02d", + "invocation": "node conformance/real-run.mjs + node conformance/mcp-real-run.mjs + node devtools-cli/cli.mjs (execute project.open/doctor)" + }, + "host": { + "installDir": "/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app", + "aeVersion": "26.5.3x9", + "aeBuild": "9", + "os": "macOS 27.2.1", + "arch": "arm64", + "node": "v26.13.1" + }, + "fixtures": { + "primary": "Conformance-Disposable.aep", + "mcp": "Conformance-MCP-Disposable.aep", + "note": "both created fresh inside owned sessions via project.new + project.save" + }, + "artifactHashes": { + "Conformance-Disposable.aep": "493f5d9fb157c36a845fa83e374199f60312616883d32e5e5a855ddac339339d", + "Conformance-MCP-Disposable.aep": "3fbda5cc5ffaa5265611cd2756077cd3bf49562d6df7a4962f6ae883855d7373", + "a8n-host-ext.js": "825a5e63ebd6afb08ff7dd83a6fd6aa732fcef59e522355760815954c3bdd401", + "ae-a8n-0.2.0.tgz": "3c63588bb618106f4ee89716f840787b9da601977f01cca92547ba5700bda372", + "cli-doctor.json": "a021c15345bef438499363d75d21ae426e8dc49dced2add8bb982f311e6c322e", + "cli-project-open.json": "ea219938af93e6f1ba2e7ca520d18b4a277ed48eaa75530dab8575fa893657a0", + "harness-mcp-real-run.mjs": "3422d44f83d5eac66be5f1f3a16ca0df24fb57a6236791d9ea710f55fef8441e", + "harness-real-run.mjs": "2f02ffd3bd01791c880b45f543e2f97d82e5d6a30b0c2684e980e429980dd00d", + "mcp-stdio.jsonl": "9c467d06509c7bbba5ed1f6b8cd2a4f8e2c482a7f09d089a4374ca7d24e9d757", + "session-a8n-jsx.json": "eca6e1bf0ecc66a3368c1978025f4f6db9ddd903da08e5972f53ced70eed5942", + "trace.jsonl": "ff617372b5164c9a927a3e9f1a9d0c2914444bee3abd02b276b7e2ba02bf0112" + } +} diff --git a/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/record.json b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/record.json new file mode 100644 index 00000000..4bc818a0 --- /dev/null +++ b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/record.json @@ -0,0 +1,62 @@ +{ + "schema": "ae-devtools.conformance-record/v1", + "recordVersion": 1, + "capabilityIds": [ + "ae.scripting.app.newProject", + "ae.scripting.app.open", + "ae.scripting.Project.save", + "ae.scripting.ItemCollection.addComp", + "ae.scripting.Item.remove", + "ae.scripting.Project.activeItem", + "ae.scripting.Item.name", + "ae.scripting.Item.id", + "ae.scripting.Item.typeName" + ], + "platform": { + "os": "darwin", + "osVersion": "27.2.1", + "arch": "arm64" + }, + "aeVersion": { + "version": "26.5.3x9", + "build": "9" + }, + "sdkBuild": null, + "sdkBuildStatus": "not-applicable", + "verification": "verified-real-host", + "result": "PASS", + "catalogBinding": { + "kind": "real-host", + "ref": "packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029", + "platform": "darwin" + }, + "sourceSha": "417c77fe08eadf4c961646196197757617faf02d", + "runId": "run-2026-11-21-ae2026-a8n-029", + "artifactHashes": { + "Conformance-Disposable.aep": "493f5d9fb157c36a845fa83e374199f60312616883d32e5e5a855ddac339339d", + "Conformance-MCP-Disposable.aep": "3fbda5cc5ffaa5265611cd2756077cd3bf49562d6df7a4962f6ae883855d7373", + "a8n-host-ext.js": "825a5e63ebd6afb08ff7dd83a6fd6aa732fcef59e522355760815954c3bdd401", + "ae-a8n-0.2.0.tgz": "3c63588bb618106f4ee89716f840787b9da601977f01cca92547ba5700bda372", + "cli-doctor.json": "a021c15345bef438499363d75d21ae426e8dc49dced2add8bb982f311e6c322e", + "cli-project-open.json": "ea219938af93e6f1ba2e7ca520d18b4a277ed48eaa75530dab8575fa893657a0", + "harness-mcp-real-run.mjs": "3422d44f83d5eac66be5f1f3a16ca0df24fb57a6236791d9ea710f55fef8441e", + "harness-real-run.mjs": "2f02ffd3bd01791c880b45f543e2f97d82e5d6a30b0c2684e980e429980dd00d", + "mcp-stdio.jsonl": "9c467d06509c7bbba5ed1f6b8cd2a4f8e2c482a7f09d089a4374ca7d24e9d757", + "session-a8n-jsx.json": "eca6e1bf0ecc66a3368c1978025f4f6db9ddd903da08e5972f53ced70eed5942", + "trace.jsonl": "ff617372b5164c9a927a3e9f1a9d0c2914444bee3abd02b276b7e2ba02bf0112", + "provenance.json": "0764a9f4d63e3c278b5a7da9f3384ff9f231a6adfc12a039d238c3ae529ef2cd" + }, + "environment": { + "disposableProject": true, + "sideEffects": "none-observed", + "sessionRef": "owned ae-a8n sessions only: conformance/real-run.mjs, conformance/mcp-real-run.mjs, devtools-cli execute project.open; each launched its own AE instance and closed with unsavedChanges=refuse after restoring saved state; no pre-existing AE instance or user project was touched" + }, + "dimensions": { + "script": "PASS", + "transport": "PASS", + "ownership": "PASS", + "timeout": "PASS", + "undo": "PASS" + }, + "recordedAt": "2026-11-20T21:43:53.000Z" +} diff --git a/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/session-a8n-jsx.json b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/session-a8n-jsx.json new file mode 100644 index 00000000..1c52194a --- /dev/null +++ b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/session-a8n-jsx.json @@ -0,0 +1,571 @@ +{ + "schema": "ae-devtools.conformance-run/v1", + "issue": 177, + "startedAt": "2026-11-20T21:28:53.702Z", + "platform": "darwin/arm64", + "node": "v26.13.1", + "installDir": "/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app", + "workdir": "/tmp/run-029", + "fixturePath": "/tmp/run-029/Conformance-Disposable.aep", + "git": { + "head": "417c77fe08eadf4c961646196197757617faf02d", + "dirty": false + }, + "consentModel": "local approve-all policy (gate mechanics only; not authenticated authorization)", + "aeProcessesBeforeLaunch": [ + { + "pid": 81720, + "args": "bash -c cd /Users/rebui/work/ae-devtools.380 && mkdir -p packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029 /tmp/run-029 /tmp/run-029-mcp && cd packages/ae-devtools-cli && node conformance/real-run.mjs --install-dir \"/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app\" --workdir /tmp/run-029 --out ../capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/session-a8n-jsx.json" + }, + { + "pid": 81722, + "args": "node conformance/real-run.mjs --install-dir /Applications/Adobe After Effects 2026/Adobe After Effects 2026.app --workdir /tmp/run-029 --out ../capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/session-a8n-jsx.json" + } + ], + "steps": [ + { + "name": "session.launch", + "at": "2026-11-20T21:28:59.739Z", + "ok": true, + "aeVersion": "26.5.3x9", + "aeBuild": "9", + "ownership": "owned", + "aeA8nSource": "npm:@ido-bata/ae-a8n", + "aeA8nHead": "0.2.0" + }, + { + "name": "identity.before", + "at": "2026-11-20T21:29:01.076Z", + "ok": true, + "outcome": "COMPLETED", + "project": { + "version": "26.5.3x9", + "file": "", + "items": "0", + "dirty": "false", + "raw": "V:26.5.3x9|F:|N:0|D:false" + } + }, + { + "name": "disposable.gate", + "at": "2026-11-20T21:29:01.076Z", + "ok": true, + "decision": { + "proceed": true, + "reason": "dirty=false, file='', items=0" + } + }, + { + "name": "identity.recheck", + "at": "2026-11-20T21:29:02.384Z", + "ok": true, + "outcome": "COMPLETED", + "project": { + "version": "26.5.3x9", + "file": "", + "items": "0", + "dirty": "false", + "raw": "V:26.5.3x9|F:|N:0|D:false" + } + }, + { + "name": "op.project.new", + "at": "2026-11-20T21:29:03.738Z", + "ok": true, + "outcome": "COMPLETED", + "status": null, + "result": { + "ok": true + } + }, + { + "name": "op.project.save", + "at": "2026-11-20T21:29:04.730Z", + "ok": true, + "outcome": "COMPLETED", + "result": { + "ok": true + }, + "fixturePath": "/tmp/run-029/Conformance-Disposable.aep" + }, + { + "name": "identity.fixture", + "at": "2026-11-20T21:29:06.130Z", + "ok": true, + "outcome": "COMPLETED", + "project": { + "version": "26.5.3x9", + "file": "/tmp/run-029/Conformance-Disposable.aep", + "items": "0", + "dirty": "false", + "raw": "V:26.5.3x9|F:%2Ftmp%2Frun-029%2FConformance-Disposable.aep|N:0|D:false" + }, + "expectedFile": "/tmp/run-029/Conformance-Disposable.aep" + }, + { + "name": "op.read.projectSummary.baseline", + "at": "2026-11-20T21:29:07.540Z", + "ok": true, + "outcome": "COMPLETED", + "result": { + "ok": true, + "count": 0, + "numItems": 0, + "items": [], + "activeItem": null, + "selection": [] + } + }, + { + "name": "op.item.addComp", + "at": "2026-11-20T21:29:08.597Z", + "ok": true, + "outcome": "COMPLETED", + "result": { + "ok": true, + "id": 1, + "name": "Conformance QA Comp", + "parent": null + } + }, + { + "name": "op.read.projectSummary.readback", + "at": "2026-11-20T21:29:09.854Z", + "ok": true, + "outcome": "COMPLETED", + "sawComp": true, + "items": [ + { + "name": "Conformance QA Comp", + "typeName": "コンポジション", + "id": 1, + "selected": false, + "parent": null + } + ] + }, + { + "name": "ae.undo", + "at": "2026-11-20T21:29:12.289Z", + "ok": true, + "undo": { + "ok": true, + "result": { + "id": 16, + "durationMs": 7, + "before": { + "itemCount": 1, + "comp": null, + "layers": [] + }, + "after": { + "itemCount": 0, + "comp": null, + "layers": [] + }, + "name": "Undo", + "added": [], + "removed": [] + } + }, + "outcome": "COMPLETED", + "itemsAfter": [] + }, + { + "name": "op.item.addComp.second", + "at": "2026-11-20T21:29:13.937Z", + "ok": true, + "outcome": "COMPLETED", + "result": { + "ok": true, + "id": 13, + "name": "Conformance Temp Comp", + "parent": null + } + }, + { + "name": "op.item.remove", + "at": "2026-11-20T21:29:14.939Z", + "ok": true, + "outcome": "COMPLETED", + "result": { + "ok": true, + "removed": "Conformance Temp Comp" + } + }, + { + "name": "op.read.projectSummary.final", + "at": "2026-11-20T21:29:16.007Z", + "ok": true, + "outcome": "COMPLETED", + "items": [] + }, + { + "name": "op.project.save.resave", + "at": "2026-11-20T21:29:17.128Z", + "ok": true, + "outcome": "COMPLETED", + "result": { + "ok": true + } + }, + { + "name": "jsx.build.ok", + "at": "2026-11-20T21:29:17.264Z", + "ok": true, + "status": "ok" + }, + { + "name": "jsx.dispatch.ok", + "at": "2026-11-20T21:29:18.535Z", + "ok": true, + "outcome": "COMPLETED" + }, + { + "name": "jsx.verify.global-write", + "at": "2026-11-20T21:29:19.379Z", + "ok": true, + "observed": "hello ae 26.5.3x9", + "outcome": "COMPLETED" + }, + { + "name": "jsx.build.runtime-error", + "at": "2026-11-20T21:29:19.390Z", + "ok": true, + "status": "ok" + }, + { + "name": "jsx.dispatch.runtime-error", + "at": "2026-11-20T21:29:20.498Z", + "ok": true, + "outcome": "FAILED", + "hostError": "__toolchainUndeclaredIdentifierは未定義です。", + "hostErrorName": "ReferenceError", + "hostLine": 3 + }, + { + "name": "jsx.sourcemap.to-source", + "at": "2026-11-20T21:29:20.498Z", + "ok": true, + "mapped": { + "source": "runtime-error.ts", + "line": 3, + "column": 48, + "name": null, + "content": "// Deliberate runtime fault for real-host sourcemap verification.\nfunction boom(): void {\n var missing = __toolchainUndeclaredIdentifier;\n $.global.__toolchainBoom = missing;\n}\nboom();\n" + } + }, + { + "name": "a8n.slice", + "at": "2026-11-20T21:29:27.344Z", + "ok": true, + "violations": [], + "outcomes": [ + "connect.state:COMPLETED", + "project.state:COMPLETED", + "error.capture:FAILED", + "fix.rerun:COMPLETED", + "verify.counter.1:COMPLETED", + "verify.counter.2:COMPLETED", + "consent.tampered:BLOCKED", + "consent.denied:REFUSED-BEFORE-SEND" + ] + }, + { + "name": "timeout.probe", + "at": "2026-11-20T21:29:30.656Z", + "ok": true, + "outcome": "UNKNOWN", + "contractOutcome": "unknown", + "retry": "quarantine", + "elapsedMs": 3308, + "quarantined": true, + "sendsBefore": 22, + "sendsAfter": 23, + "sendDelta": 1 + }, + { + "name": "session.close", + "at": "2026-11-20T21:29:32.264Z", + "ok": true + } + ], + "ok": true, + "hostScriptSha256": "825a5e63ebd6afb08ff7dd83a6fd6aa732fcef59e522355760815954c3bdd401", + "hostScriptCopy": "/tmp/run-029/a8n-host-ext.js", + "projectBefore": { + "version": "26.5.3x9", + "file": "", + "items": "0", + "dirty": "false", + "raw": "V:26.5.3x9|F:|N:0|D:false" + }, + "disposableDecision": { + "proceed": true, + "reason": "dirty=false, file='', items=0" + }, + "projectRecheck": { + "version": "26.5.3x9", + "file": "", + "items": "0", + "dirty": "false", + "raw": "V:26.5.3x9|F:|N:0|D:false" + }, + "projectFixture": { + "version": "26.5.3x9", + "file": "/tmp/run-029/Conformance-Disposable.aep", + "items": "0", + "dirty": "false", + "raw": "V:26.5.3x9|F:%2Ftmp%2Frun-029%2FConformance-Disposable.aep|N:0|D:false" + }, + "fixtureSha256": "74ed0f2f87caad4de2761d9e4b20c6be2a0cdfcec97dd34d70169c6cbb3a223e", + "undo": { + "call": { + "ok": true, + "result": { + "id": 16, + "durationMs": 7, + "before": { + "itemCount": 1, + "comp": null, + "layers": [] + }, + "after": { + "itemCount": 0, + "comp": null, + "layers": [] + }, + "name": "Undo", + "added": [], + "removed": [] + } + }, + "readbackEmpty": true + }, + "projectOps": { + "baseline": { + "ok": true, + "count": 0, + "numItems": 0, + "items": [], + "activeItem": null, + "selection": [] + }, + "addComp": { + "ok": true, + "id": 1, + "name": "Conformance QA Comp", + "parent": null + }, + "readbackSawComp": true, + "undo": { + "call": { + "ok": true, + "result": { + "id": 16, + "durationMs": 7, + "before": { + "itemCount": 1, + "comp": null, + "layers": [] + }, + "after": { + "itemCount": 0, + "comp": null, + "layers": [] + }, + "name": "Undo", + "added": [], + "removed": [] + } + }, + "readbackEmpty": true + }, + "addComp2": { + "ok": true, + "id": 13, + "name": "Conformance Temp Comp", + "parent": null + }, + "remove": { + "ok": true, + "removed": "Conformance Temp Comp" + }, + "finalItems": [] + }, + "jsx": { + "okBuild": { + "status": "ok", + "jsxBytes": 185 + }, + "dispatchOk": "COMPLETED", + "globalWrite": "hello ae 26.5.3x9", + "runtimeError": { + "outcome": "FAILED", + "hostErrorName": "ReferenceError", + "hostLine": 3, + "mapped": { + "source": "runtime-error.ts", + "line": 3, + "column": 48, + "name": null, + "content": "// Deliberate runtime fault for real-host sourcemap verification.\nfunction boom(): void {\n var missing = __toolchainUndeclaredIdentifier;\n $.global.__toolchainBoom = missing;\n}\nboom();\n" + } + } + }, + "sliceSteps": [ + { + "label": "connect.state", + "source": "String(app.version)", + "outcome": "COMPLETED", + "contractOutcome": "completed", + "requestState": "ACKED", + "result": "26.5.3x9", + "error": null, + "refusal": null, + "sendsBefore": 16, + "sendsAfter": 17 + }, + { + "label": "project.state", + "source": "String(app.project.numItems)", + "outcome": "COMPLETED", + "contractOutcome": "completed", + "requestState": "ACKED", + "result": "0", + "error": null, + "refusal": null, + "sendsBefore": 17, + "sendsAfter": 18 + }, + { + "label": "error.capture", + "source": "__a8nSliceUndeclaredIdentifier;", + "outcome": "FAILED", + "contractOutcome": "failed", + "requestState": "ACKED", + "result": null, + "error": { + "name": "ReferenceError", + "message": "__a8nSliceUndeclaredIdentifierは未定義です。", + "line": 1, + "hostReported": true + }, + "refusal": null, + "sendsBefore": 18, + "sendsAfter": 19 + }, + { + "label": "fix.rerun", + "source": "String(app.project.numItems + 0)", + "outcome": "COMPLETED", + "contractOutcome": "completed", + "requestState": "ACKED", + "result": "0", + "error": null, + "refusal": null, + "sendsBefore": 19, + "sendsAfter": 20 + }, + { + "label": "verify.counter.1", + "source": "$.global.__a8nSliceCounter = (typeof $.global.__a8nSliceCounter === 'undefined' ? 0 : $.global.__a8nSliceCounter) + 1; String($.global.__a8nSliceCounter);", + "outcome": "COMPLETED", + "contractOutcome": "completed", + "requestState": "ACKED", + "result": "1", + "error": null, + "refusal": null, + "sendsBefore": 20, + "sendsAfter": 21 + }, + { + "label": "verify.counter.2", + "source": "$.global.__a8nSliceCounter = (typeof $.global.__a8nSliceCounter === 'undefined' ? 0 : $.global.__a8nSliceCounter) + 1; String($.global.__a8nSliceCounter);", + "outcome": "COMPLETED", + "contractOutcome": "completed", + "requestState": "ACKED", + "result": "2", + "error": null, + "refusal": null, + "sendsBefore": 21, + "sendsAfter": 22 + }, + { + "label": "consent.tampered", + "source": "String(app.version)", + "outcome": "BLOCKED", + "contractOutcome": "not-sent", + "requestState": "NOT_SENT", + "result": null, + "error": null, + "refusal": { + "code": "CONSENT_SCOPE_MISMATCH", + "message": "consent scope does not match this dispatch (session/operation/args/project)" + }, + "sendsBefore": 22, + "sendsAfter": 22 + }, + { + "label": "consent.denied", + "source": "__DENY__ String(app.version)", + "outcome": "REFUSED-BEFORE-SEND", + "reason": "policy denied: source carries __DENY__ marker", + "sendsBefore": 22, + "sendsAfter": 22 + } + ], + "sliceViolations": [], + "timeoutProbe": { + "outcome": "UNKNOWN", + "contractOutcome": "unknown", + "retry": "quarantine", + "elapsedMs": 3308, + "quarantined": true, + "sendsBefore": 22, + "sendsAfter": 23, + "sendDelta": 1 + }, + "transportSends": 23, + "opResultSummary": { + "project.new#1": "COMPLETED", + "project.save#2": "COMPLETED", + "read.projectSummary#3": "COMPLETED", + "item.addComp#4": "COMPLETED", + "read.projectSummary#5": "COMPLETED", + "read.projectSummary#6": "COMPLETED", + "item.addComp#7": "COMPLETED", + "item.remove#8": "COMPLETED", + "read.projectSummary#9": "COMPLETED", + "project.save#10": "COMPLETED" + }, + "evidenceLevel": "verified on real host", + "traceCopy": "/tmp/run-029/trace.jsonl", + "traceSha256": "ff617372b5164c9a927a3e9f1a9d0c2914444bee3abd02b276b7e2ba02bf0112", + "close": { + "quit": true + }, + "aeProcessesAfterClose": [ + { + "pid": 81720, + "args": "bash -c cd /Users/rebui/work/ae-devtools.380 && mkdir -p packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029 /tmp/run-029 /tmp/run-029-mcp && cd packages/ae-devtools-cli && node conformance/real-run.mjs --install-dir \"/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app\" --workdir /tmp/run-029 --out ../capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/session-a8n-jsx.json" + }, + { + "pid": 81722, + "args": "node conformance/real-run.mjs --install-dir /Applications/Adobe After Effects 2026/Adobe After Effects 2026.app --workdir /tmp/run-029 --out ../capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/session-a8n-jsx.json" + }, + { + "pid": 82421, + "args": "/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app/Contents/MacOS/crashpad_handler --no-rate-limit --database=/Users/rebui/Library/Caches/Adobe/After Effects/26.0/SentryIO-db --metrics-dir=/Users/rebui/Library/Caches/Adobe/After Effects/26.0/SentryIO-db --attachment=/Users/rebui/Library/Caches/Adobe/After Effects/26.0/SentryIO-db/aeec8ef9-7749-401a-9800-3aabbe3741fb.run/__sentry-event --attachment=/Users/rebui/Library/Caches/Adobe/After Effects/26.0/SentryIO-db/aeec8ef9-7749-401a-9800-3aabbe3741fb.run/__sentry-breadcrumb1 --attachment=/Users/rebui/Library/Caches/Adobe/After Effects/26.0/SentryIO-db/aeec8ef9-7749-401a-9800-3aabbe3741fb.run/__sentry-breadcrumb2 --crash-reporter=/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app/Contents/AdobeCrashReport.app --crash-envelope=/Users/rebui/Library/Caches/Adobe/After Effects/26.0/SentryIO-db/external/0e63e78f-0bef-442b-3b72-0a27c8a3db9e.envelope --report-id=0e63e78f-0bef-442b-3b72-0a27c8a3db9e --handshake-fd=5" + }, + { + "pid": 82426, + "args": "/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app/Contents/MacOS/dynamiclinkmanager --rogue" + }, + { + "pid": 82431, + "args": "/Applications/Adobe After Effects 2026/Adobe After Effects 2026.app/Contents/TeamProjectsLocalHub.app/Contents/MacOS/TeamProjectsLocalHub" + } + ], + "finishedAt": "2026-11-20T21:29:32.532Z" +} diff --git a/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/trace.jsonl b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/trace.jsonl new file mode 100644 index 00000000..a13e0634 --- /dev/null +++ b/packages/capability-catalog/evidence/conformance/run-2026-11-21-ae2026-a8n-029/trace.jsonl @@ -0,0 +1,28 @@ +{"seq":0,"ts":"2026-11-20T21:28:58.117Z","op":"session.probe","status":"ok","durationMs":2878,"args":{"method":"app.info"},"result":{"version":"26.5.3x9","build":"9"}} +{"seq":1,"ts":"2026-11-20T21:28:58.659Z","op":"session.launch","status":"ok","durationMs":3796,"args":{"transport":"script-invocation"},"result":{"version":"26.5.3x9","build":"9","ownership":{"kind":"owned","evidence":"pid 82086 is still the only instance"}}} +{"seq":2,"ts":"2026-11-20T21:28:58.900Z","op":"session.authorization","status":"ok","durationMs":0,"result":{"ownership":"owned","granted":["extensionMethods","hostEnvironment","menuCommands"]}} +{"seq":3,"ts":"2026-11-20T21:29:01.071Z","op":"extension.call","status":"ok","durationMs":1105,"args":{"method":"aeDevtools.trustedEval","source":"(function(){var f=app.project.file;var d=(typeof app.project.dirty===\"boolean\")?String(app.project.dirty):\"unsupported\";return \"V:\"+String(app.version)+\"|F:\"+(f?encodeURIComponent(f.fsName):\"\")+\"|N:\"+String(app.project.numItems)+\"|D:\"+d;})()","requestId":"conf-eval-identity.before-mwphrl29"},"result":{"requestId":"conf-eval-identity.before-mwphrl29","ok":true,"resultJson":"\"V:26.5.3x9|F:|N:0|D:false\"","valueText":null,"valueType":"string"}} +{"seq":4,"ts":"2026-11-20T21:29:02.378Z","op":"extension.call","status":"ok","durationMs":1059,"args":{"method":"aeDevtools.trustedEval","source":"(function(){var f=app.project.file;var d=(typeof app.project.dirty===\"boolean\")?String(app.project.dirty):\"unsupported\";return \"V:\"+String(app.version)+\"|F:\"+(f?encodeURIComponent(f.fsName):\"\")+\"|N:\"+String(app.project.numItems)+\"|D:\"+d;})()","requestId":"conf-eval-identity.recheck-mwphrm38"},"result":{"requestId":"conf-eval-identity.recheck-mwphrm38","ok":true,"resultJson":"\"V:26.5.3x9|F:|N:0|D:false\"","valueText":null,"valueType":"string"}} +{"seq":5,"ts":"2026-11-20T21:29:03.733Z","op":"extension.call","status":"ok","durationMs":925,"args":{"method":"aeDevtools.trustedEval","source":"(function(){\n\nfunction __adp_fail(msg) { throw new Error(\"adapter: \" + msg); }\nfunction __adp_items() { return app.project.items; }\n// Type discrimination uses instanceof (locale-independent). typeName\n// is localized and must NOT be used for branching (PR #46 review).\nfunction __adp_typeMatch(it, ctor) {\n if (ctor === null) return true;\n try { return it instanceof ctor; } catch (e) { return false; }\n}\nfunction __adp_findInColl(coll, name, ctor, scope) {\n var found = null;\n var sawName = false;\n for (v…(+9431)","requestId":"conf-op-project.new#1-mwphrn3k"},"result":{"requestId":"conf-op-project.new#1-mwphrn3k","ok":true,"resultJson":"\"{\\\"ok\\\":true}\"","valueText":null,"valueType":"string"}} +{"seq":6,"ts":"2026-11-20T21:29:04.727Z","op":"extension.call","status":"ok","durationMs":848,"args":{"method":"aeDevtools.trustedEval","source":"(function(){\n\nfunction __adp_fail(msg) { throw new Error(\"adapter: \" + msg); }\nfunction __adp_items() { return app.project.items; }\n// Type discrimination uses instanceof (locale-independent). typeName\n// is localized and must NOT be used for branching (PR #46 review).\nfunction __adp_typeMatch(it, ctor) {\n if (ctor === null) return true;\n try { return it instanceof ctor; } catch (e) { return false; }\n}\nfunction __adp_findInColl(coll, name, ctor, scope) {\n var found = null;\n var sawName = false;\n for (v…(+9484)","requestId":"conf-op-project.save#2-mwphro56"},"result":{"requestId":"conf-op-project.save#2-mwphro56","ok":true,"resultJson":"\"{\\\"ok\\\":true}\"","valueText":null,"valueType":"string"}} +{"seq":7,"ts":"2026-11-20T21:29:06.126Z","op":"extension.call","status":"ok","durationMs":1088,"args":{"method":"aeDevtools.trustedEval","source":"(function(){var f=app.project.file;var d=(typeof app.project.dirty===\"boolean\")?String(app.project.dirty):\"unsupported\";return \"V:\"+String(app.version)+\"|F:\"+(f?encodeURIComponent(f.fsName):\"\")+\"|N:\"+String(app.project.numItems)+\"|D:\"+d;})()","requestId":"conf-eval-identity.fixture-mwphrowq"},"result":{"requestId":"conf-eval-identity.fixture-mwphrowq","ok":true,"resultJson":"\"V:26.5.3x9|F:%2Ftmp%2Frun-029%2FConformance-Disposable.aep|N:0|D:false\"","valueText":null,"valueType":"string"}} +{"seq":8,"ts":"2026-11-20T21:29:07.538Z","op":"extension.call","status":"ok","durationMs":1096,"args":{"method":"aeDevtools.trustedEval","source":"(function(){\n\nfunction __adp_fail(msg) { throw new Error(\"adapter: \" + msg); }\nfunction __adp_items() { return app.project.items; }\n// Type discrimination uses instanceof (locale-independent). typeName\n// is localized and must NOT be used for branching (PR #46 review).\nfunction __adp_typeMatch(it, ctor) {\n if (ctor === null) return true;\n try { return it instanceof ctor; } catch (e) { return false; }\n}\nfunction __adp_findInColl(coll, name, ctor, scope) {\n var found = null;\n var sawName = false;\n for (v…(+10130)","requestId":"conf-op-read.projectSummary#3-mwphrpzn"},"result":{"requestId":"conf-op-read.projectSummary#3-mwphrpzn","ok":true,"resultJson":"\"{\\\"ok\\\":true,\\\"count\\\":0,\\\"numItems\\\":0,\\\"items\\\":[],\\\"activeItem\\\":null,\\\"selection\\\":[]}\"","valueText":null,"valueType":"string"}} +{"seq":9,"ts":"2026-11-20T21:29:08.593Z","op":"extension.call","status":"ok","durationMs":841,"args":{"method":"aeDevtools.trustedEval","source":"(function(){\n\nfunction __adp_fail(msg) { throw new Error(\"adapter: \" + msg); }\nfunction __adp_items() { return app.project.items; }\n// Type discrimination uses instanceof (locale-independent). typeName\n// is localized and must NOT be used for branching (PR #46 review).\nfunction __adp_typeMatch(it, ctor) {\n if (ctor === null) return true;\n try { return it instanceof ctor; } catch (e) { return false; }\n}\nfunction __adp_findInColl(coll, name, ctor, scope) {\n var found = null;\n var sawName = false;\n for (v…(+9673)","requestId":"conf-op-item.addComp#4-mwphrr2t"},"result":{"requestId":"conf-op-item.addComp#4-mwphrr2t","ok":true,"resultJson":"\"{\\\"ok\\\":true,\\\"id\\\":1,\\\"name\\\":\\\"Conformance QA Comp\\\",\\\"parent\\\":null}\"","valueText":null,"valueType":"string"}} +{"seq":10,"ts":"2026-11-20T21:29:09.851Z","op":"extension.call","status":"ok","durationMs":997,"args":{"method":"aeDevtools.trustedEval","source":"(function(){\n\nfunction __adp_fail(msg) { throw new Error(\"adapter: \" + msg); }\nfunction __adp_items() { return app.project.items; }\n// Type discrimination uses instanceof (locale-independent). typeName\n// is localized and must NOT be used for branching (PR #46 review).\nfunction __adp_typeMatch(it, ctor) {\n if (ctor === null) return true;\n try { return it instanceof ctor; } catch (e) { return false; }\n}\nfunction __adp_findInColl(coll, name, ctor, scope) {\n var found = null;\n var sawName = false;\n for (v…(+10130)","requestId":"conf-op-read.projectSummary#5-mwphrrw5"},"result":{"requestId":"conf-op-read.projectSummary#5-mwphrrw5","ok":true,"resultJson":"\"{\\\"ok\\\":true,\\\"count\\\":1,\\\"numItems\\\":1,\\\"items\\\":[{\\\"name\\\":\\\"Conformance QA Comp\\\",\\\"typeName\\\":\\\"コンポジション\\\",\\\"id\\\":1,\\\"selected\\\":false,\\\"parent\\\":null}],\\\"activeItem\\\":null,\\\"selection\\\":[]}\"","valueText":null,"valueType":"string"}} +{"seq":11,"ts":"2026-11-20T21:29:11.037Z","op":"menu.execute","status":"ok","durationMs":916,"args":{"method":"menu.execute","id":16},"result":{"id":16,"durationMs":7,"before":"{...}","after":"{...}"}} +{"seq":12,"ts":"2026-11-20T21:29:11.037Z","op":"menu.execute.scene","status":"ok","durationMs":0,"args":{"id":16,"name":"Undo"},"result":{"comp":null,"itemsBefore":1,"itemsAfter":0,"layersBefore":[],"layersAfter":[],"added":[],"removed":[]}} +{"seq":13,"ts":"2026-11-20T21:29:12.288Z","op":"extension.call","status":"ok","durationMs":991,"args":{"method":"aeDevtools.trustedEval","source":"(function(){\n\nfunction __adp_fail(msg) { throw new Error(\"adapter: \" + msg); }\nfunction __adp_items() { return app.project.items; }\n// Type discrimination uses instanceof (locale-independent). typeName\n// is localized and must NOT be used for branching (PR #46 review).\nfunction __adp_typeMatch(it, ctor) {\n if (ctor === null) return true;\n try { return it instanceof ctor; } catch (e) { return false; }\n}\nfunction __adp_findInColl(coll, name, ctor, scope) {\n var found = null;\n var sawName = false;\n for (v…(+10130)","requestId":"conf-op-read.projectSummary#6-mwphrtry"},"result":{"requestId":"conf-op-read.projectSummary#6-mwphrtry","ok":true,"resultJson":"\"{\\\"ok\\\":true,\\\"count\\\":0,\\\"numItems\\\":0,\\\"items\\\":[],\\\"activeItem\\\":null,\\\"selection\\\":[]}\"","valueText":null,"valueType":"string"}} +{"seq":14,"ts":"2026-11-20T21:29:13.934Z","op":"extension.call","status":"ok","durationMs":1319,"args":{"method":"aeDevtools.trustedEval","source":"(function(){\n\nfunction __adp_fail(msg) { throw new Error(\"adapter: \" + msg); }\nfunction __adp_items() { return app.project.items; }\n// Type discrimination uses instanceof (locale-independent). typeName\n// is localized and must NOT be used for branching (PR #46 review).\nfunction __adp_typeMatch(it, ctor) {\n if (ctor === null) return true;\n try { return it instanceof ctor; } catch (e) { return false; }\n}\nfunction __adp_findInColl(coll, name, ctor, scope) {\n var found = null;\n var sawName = false;\n for (v…(+9673)","requestId":"conf-op-item.addComp#7-mwphruqr"},"result":{"requestId":"conf-op-item.addComp#7-mwphruqr","ok":true,"resultJson":"\"{\\\"ok\\\":true,\\\"id\\\":13,\\\"name\\\":\\\"Conformance Temp Comp\\\",\\\"parent\\\":null}\"","valueText":null,"valueType":"string"}} +{"seq":15,"ts":"2026-11-20T21:29:14.938Z","op":"extension.call","status":"ok","durationMs":661,"args":{"method":"aeDevtools.trustedEval","source":"(function(){\n\nfunction __adp_fail(msg) { throw new Error(\"adapter: \" + msg); }\nfunction __adp_items() { return app.project.items; }\n// Type discrimination uses instanceof (locale-independent). typeName\n// is localized and must NOT be used for branching (PR #46 review).\nfunction __adp_typeMatch(it, ctor) {\n if (ctor === null) return true;\n try { return it instanceof ctor; } catch (e) { return false; }\n}\nfunction __adp_findInColl(coll, name, ctor, scope) {\n var found = null;\n var sawName = false;\n for (v…(+9520)","requestId":"conf-op-item.remove#8-mwphrw0h"},"result":{"requestId":"conf-op-item.remove#8-mwphrw0h","ok":true,"resultJson":"\"{\\\"ok\\\":true,\\\"removed\\\":\\\"Conformance Temp Comp\\\"}\"","valueText":null,"valueType":"string"}} +{"seq":16,"ts":"2026-11-20T21:29:16.004Z","op":"extension.call","status":"ok","durationMs":796,"args":{"method":"aeDevtools.trustedEval","source":"(function(){\n\nfunction __adp_fail(msg) { throw new Error(\"adapter: \" + msg); }\nfunction __adp_items() { return app.project.items; }\n// Type discrimination uses instanceof (locale-independent). typeName\n// is localized and must NOT be used for branching (PR #46 review).\nfunction __adp_typeMatch(it, ctor) {\n if (ctor === null) return true;\n try { return it instanceof ctor; } catch (e) { return false; }\n}\nfunction __adp_findInColl(coll, name, ctor, scope) {\n var found = null;\n var sawName = false;\n for (v…(+10130)","requestId":"conf-op-read.projectSummary#9-mwphrwsb"},"result":{"requestId":"conf-op-read.projectSummary#9-mwphrwsb","ok":true,"resultJson":"\"{\\\"ok\\\":true,\\\"count\\\":0,\\\"numItems\\\":0,\\\"items\\\":[],\\\"activeItem\\\":null,\\\"selection\\\":[]}\"","valueText":null,"valueType":"string"}} +{"seq":17,"ts":"2026-11-20T21:29:17.127Z","op":"extension.call","status":"ok","durationMs":797,"args":{"method":"aeDevtools.trustedEval","source":"(function(){\n\nfunction __adp_fail(msg) { throw new Error(\"adapter: \" + msg); }\nfunction __adp_items() { return app.project.items; }\n// Type discrimination uses instanceof (locale-independent). typeName\n// is localized and must NOT be used for branching (PR #46 review).\nfunction __adp_typeMatch(it, ctor) {\n if (ctor === null) return true;\n try { return it instanceof ctor; } catch (e) { return false; }\n}\nfunction __adp_findInColl(coll, name, ctor, scope) {\n var found = null;\n var sawName = false;\n for (v…(+9484)","requestId":"conf-op-project.save#10-mwphrxlz"},"result":{"requestId":"conf-op-project.save#10-mwphrxlz","ok":true,"resultJson":"\"{\\\"ok\\\":true}\"","valueText":null,"valueType":"string"}} +{"seq":18,"ts":"2026-11-20T21:29:18.534Z","op":"extension.call","status":"ok","durationMs":1012,"args":{"method":"aeDevtools.trustedEval","source":"// Minimal valid ExtendScript-bound script.\nfunction greet() {\n return \"hello ae \" + app.version;\n}\nvar msg = greet();\n$.global.__toolchainProbe = msg;\n//# sourceMappingURL=ok.js.map","requestId":"conf-jsx-ok-mwphrykw"},"result":{"requestId":"conf-jsx-ok-mwphrykw","ok":true,"resultJson":"\"hello ae 26.5.3x9\"","valueText":null,"valueType":"string"}} +{"seq":19,"ts":"2026-11-20T21:29:19.376Z","op":"extension.call","status":"ok","durationMs":673,"args":{"method":"aeDevtools.trustedEval","source":"\"\" + $.global.__toolchainProbe","requestId":"conf-jsx-read-mwphrzk7"},"result":{"requestId":"conf-jsx-read-mwphrzk7","ok":true,"resultJson":"\"hello ae 26.5.3x9\"","valueText":null,"valueType":"string"}} +{"seq":20,"ts":"2026-11-20T21:29:20.491Z","op":"extension.call","status":"ok","durationMs":864,"args":{"method":"aeDevtools.trustedEval","source":"// Deliberate runtime fault for real-host sourcemap verification.\nfunction boom() {\n var missing = __toolchainUndeclaredIdentifier;\n $.global.__toolchainBoom = missing;\n}\nboom();\n//# sourceMappingURL=runtime-error.js.map","requestId":"conf-jsx-bad-mwphs07y"},"result":{"requestId":"conf-jsx-bad-mwphs07y","ok":false,"evalError":"{...}"}} +{"seq":21,"ts":"2026-11-20T21:29:21.572Z","op":"extension.call","status":"ok","durationMs":716,"args":{"method":"aeDevtools.trustedEval","source":"String(app.version)","requestId":"req-4983f1fb72cb5c51"},"result":{"requestId":"req-4983f1fb72cb5c51","ok":true,"resultJson":"\"26.5.3x9\"","valueText":null,"valueType":"string"}} +{"seq":22,"ts":"2026-11-20T21:29:22.882Z","op":"extension.call","status":"ok","durationMs":969,"args":{"method":"aeDevtools.trustedEval","source":"String(app.project.numItems)","requestId":"req-5532f7f02744bf02"},"result":{"requestId":"req-5532f7f02744bf02","ok":true,"resultJson":"\"0\"","valueText":null,"valueType":"string"}} +{"seq":23,"ts":"2026-11-20T21:29:23.850Z","op":"extension.call","status":"ok","durationMs":769,"args":{"method":"aeDevtools.trustedEval","source":"__a8nSliceUndeclaredIdentifier;","requestId":"req-210f46a122b887bd"},"result":{"requestId":"req-210f46a122b887bd","ok":false,"evalError":"{...}"}} +{"seq":24,"ts":"2026-11-20T21:29:25.063Z","op":"extension.call","status":"ok","durationMs":932,"args":{"method":"aeDevtools.trustedEval","source":"String(app.project.numItems + 0)","requestId":"req-5a7498b4b6a125b0"},"result":{"requestId":"req-5a7498b4b6a125b0","ok":true,"resultJson":"\"0\"","valueText":null,"valueType":"string"}} +{"seq":25,"ts":"2026-11-20T21:29:26.095Z","op":"extension.call","status":"ok","durationMs":791,"args":{"method":"aeDevtools.trustedEval","source":"$.global.__a8nSliceCounter = (typeof $.global.__a8nSliceCounter === 'undefined' ? 0 : $.global.__a8nSliceCounter) + 1; String($.global.__a8nSliceCounter);","requestId":"req-050a326b56ef87fa"},"result":{"requestId":"req-050a326b56ef87fa","ok":true,"resultJson":"\"1\"","valueText":null,"valueType":"string"}} +{"seq":26,"ts":"2026-11-20T21:29:27.339Z","op":"extension.call","status":"ok","durationMs":784,"args":{"method":"aeDevtools.trustedEval","source":"$.global.__a8nSliceCounter = (typeof $.global.__a8nSliceCounter === 'undefined' ? 0 : $.global.__a8nSliceCounter) + 1; String($.global.__a8nSliceCounter);","requestId":"req-6687d3a3f4e4f477"},"result":{"requestId":"req-6687d3a3f4e4f477","ok":true,"resultJson":"\"2\"","valueText":null,"valueType":"string"}} +{"seq":27,"ts":"2026-11-20T21:29:30.281Z","op":"extension.call","status":"ok","durationMs":2737,"args":{"method":"aeDevtools.trustedEval","source":"$.sleep(2000); \"slept\"","requestId":"conf-timeout-mwphs6cz"},"result":{"requestId":"conf-timeout-mwphs6cz","ok":true,"resultJson":"\"slept\"","valueText":null,"valueType":"string"}} diff --git a/packages/capability-catalog/release-scope.json b/packages/capability-catalog/release-scope.json index 8cc543c4..8279637f 100644 --- a/packages/capability-catalog/release-scope.json +++ b/packages/capability-catalog/release-scope.json @@ -1,6 +1,6 @@ { "schema": "ae-devtools.release-scope/v1", - "release": "0.5.0", + "release": "0.6.0", "supportedRelease": { "state": "recorded", "releases": ["26.5"], diff --git a/specs/ae-capability-coverage/tasks.md b/specs/ae-capability-coverage/tasks.md index 8c3ef2a9..008a5eed 100644 --- a/specs/ae-capability-coverage/tasks.md +++ b/specs/ae-capability-coverage/tasks.md @@ -139,7 +139,7 @@ CAP047 is left **unchecked**: the decomposition exists and is tracked, but the c Dependencies: #11–#15. Status: **open — dev-loop core + MCP tools merged** (`dev-loop/`, `mcp-server/`; automated test + fake/mock, packaged in `@ido-bata/ae-devtools-cli`). VSCode extension scaffold + diagnostics surface + debugger-attach commands merged (`vscode-extension/`; PRs #159–#161, fake level; `vsce package` produces an installable VSIX), plus the `vscode-debugger/` attach-config generator and preflight checks (fake level). Real-editor acceptance and a8n-session acceptance remain release-candidate items. -- [ ] **CAP049** Expose shared discovery/session/API metadata. ([Issue #20](https://github.com/ido-bata/ae-devtools/issues/20)) +- [x] **CAP049** Expose shared discovery/session/API metadata. ([Issue #20](https://github.com/ido-bata/ae-devtools/issues/20)) — `ae_discover`/`ae_inspect`/`ae_session`(sessionStatus) shared by CLI/MCP/VSCode; sessionStatus now reports `api.devLoop` contract version + opener-attested `host` metadata (aeVersion/ownership/attached/target pid+projectFile+attachApi) for open sessions only — fake-level verified; real-host session metadata evidenced via #366 attached runs - [x] **CAP050** Implement VSCode run/inspect/diagnostic vertical slice. ([Issue #20](https://github.com/ido-bata/ae-devtools/issues/20)) — fake-level verified; real-editor acceptance pending - [x] **CAP051** Define minimal MCP inspect/execute/verify interface. ([Issue #20](https://github.com/ido-bata/ae-devtools/issues/20)) - [x] **CAP052** Audit explicit consent and privileged SDK/script operations. ([Issue #20](https://github.com/ido-bata/ae-devtools/issues/20))