diff --git a/AGENTS.md b/AGENTS.md index 673247f..e899734 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -37,7 +37,7 @@ The layering rule: `ae-test → ae-a8n → After Effects`. Do not reach past `ae ## Delivery -- `main` = released state. The current integration line is the open `release/*` branch (currently `release/1.2.0`); independent ticket PRs target that release branch while it is unfrozen. Once a release branch is frozen at a candidate SHA, only release-blocking fixes land — non-blocking tickets wait for the next release line. `release/* -> main` PRs are release-class. +- `main` = released state. The current integration line is the open `release/*` branch (currently `release/1.2.1`); independent ticket PRs target that release branch while it is unfrozen. Once a release branch is frozen at a candidate SHA, only release-blocking fixes land — non-blocking tickets wait for the next release line. `release/* -> main` PRs are release-class. - 1 top-level Issue = 1 number-only branch = 1 ticket PR. - Publish the branch and open a **Draft PR** immediately after the first meaningful commit. - PR landing is **merge commit only** (squash/rebase disabled at the repository level). diff --git a/CHANGELOG.md b/CHANGELOG.md index 05d68d1..112a3f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## 1.2.1 + +Patch-level dependency update on the 1.x contract: the +`@ido-bata/ae-a8n` pin moves `0.2.0` → `0.5.0` exactly (#134). No +`ae-test` API or runner behavior changes; the bump picks up ae-a8n +0.5.0's `AfterEffects.attach` hardening and host script fixes +(ae-a8n #265/#269/#272/#274), which matter on paths that meet a foreign +After Effects. The owned-session lane remains the primary path. + +### Verification + +- `fake/mock only` locally against the packed `ae-a8n@0.5.0` tarball + (tree-verified against ae-a8n `origin/main` `444665c`): `npm run + check` 245/245 green. `npm ci` against the registry pin and + `check-packed-package.js` are blocked until `0.5.0` is published. + ## 1.2.0 Patch-level content on the 1.x contract: runner correctness fixes from diff --git a/CLAUDE.md b/CLAUDE.md index 673247f..e899734 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -37,7 +37,7 @@ The layering rule: `ae-test → ae-a8n → After Effects`. Do not reach past `ae ## Delivery -- `main` = released state. The current integration line is the open `release/*` branch (currently `release/1.2.0`); independent ticket PRs target that release branch while it is unfrozen. Once a release branch is frozen at a candidate SHA, only release-blocking fixes land — non-blocking tickets wait for the next release line. `release/* -> main` PRs are release-class. +- `main` = released state. The current integration line is the open `release/*` branch (currently `release/1.2.1`); independent ticket PRs target that release branch while it is unfrozen. Once a release branch is frozen at a candidate SHA, only release-blocking fixes land — non-blocking tickets wait for the next release line. `release/* -> main` PRs are release-class. - 1 top-level Issue = 1 number-only branch = 1 ticket PR. - Publish the branch and open a **Draft PR** immediately after the first meaningful commit. - PR landing is **merge commit only** (squash/rebase disabled at the repository level). diff --git a/docs/dependency-on-ae-a8n.md b/docs/dependency-on-ae-a8n.md index 7a31eb8..eb7667f 100644 --- a/docs/dependency-on-ae-a8n.md +++ b/docs/dependency-on-ae-a8n.md @@ -3,7 +3,7 @@ From npm, as one exact published version: ```json -"@ido-bata/ae-a8n": "0.2.0" +"@ido-bata/ae-a8n": "0.5.0" ``` - **Exact, not a range.** It is an early-development `0.x` release, and a @@ -44,7 +44,12 @@ ended. ## History -- `0.2.0` (this pin) is the `release-0-2-0` train: the static host extension +- `0.5.0` (this pin) is the `release-0-5-0` train: `AfterEffects.attach` + (attach-only API, ae-a8n #269), host script hardening (#265) and the + attach-path review fixes (#272/#274). ae-test keeps its owned-session + lane as the primary path; the attach hardening matters where a run + meets a foreign After Effects. +- `0.2.0` was the `release-0-2-0` train: the static host extension API plus the macOS LaunchServices launch path (ae-a8n #106, fixing the dual-process launch of #105) and `readinessTimeoutMs` (#124). The previous pin could not prove After Effects ownership on AE 26.5/27.0 — ae-test #52. diff --git a/docs/verification.md b/docs/verification.md index 2976ef9..98d2c86 100644 --- a/docs/verification.md +++ b/docs/verification.md @@ -96,6 +96,7 @@ builds a disposable comp). | 2026-11-18 22:1x | `0e43b34` (re-freeze 2: #121 RC review fixes — matrix JSON tuple、teardown-safe artifact collection、`--install-dir` operand 検証、capability ID 修正 `comp.get-layer`、TEXT font 明示、docs 整合; baseline PNG は `0e43b34` で再記録) | `0.2.0` from npm | **pass.** `npm run check`: 245 tests / 21 files green(`c442b43` と tree 同一、baseline/docs commit のみ差分)。`npm pack` tarball: sha1 `84a173aa35ec8f0a978e2c8642deb66cb4ee114f`(npm `dist.shasum` 契約)、sha256 `339b3ca33928d232e60818896804401aa1c3672805c10f9673e7d196b63cd777`、sha512 SRI `sha512-oiTNlQ8wqzgP0R1PJeGrLNaXEZEbtmQPnhBq29bSh7H5CHl1ykel7XTzTROxtST9or02q5/5VIBwOtLVnQdvMw==`、45 files。`0e43b34` で再 pack して sha256 一致を確認(baseline/docs は `files` 対象外、同一内容物)。`check-packed-package.js` green。Fresh external consumer(`/tmp/ae-test-110-acceptance`、新 tarball install): fake `--update-snapshots`→plain 各 1/1、real `ae-test.real.config.json` `--update-snapshots`→plain 各 1/1(~5.3 s/run)、`cleanup.status=ok`、`quit=true`、AE 残存なし(AE 26.5.3x9 build 9、uid 501、transport `script-invocation`)。`conformance/real-host/` suite を freeze SHA `0e43b34` で実行: `--update-snapshots` で font 変更後の baseline を再記録(commit `0e43b34`)→ plain `--conformance` run で committed baseline と比較し **4/4 pass**(~21 s、1 launch/test)、全 record `real-host-verified`/`PASS`、`conformance.json` ok。`0b70b52` の証拠は本 SHA の証拠として流用していない。未検証: Windows・AE 2027・isolated lane(#19)・SDK native(#21 upstream待ち)。次リリース繰越: snapshot baseline ownership 永続化・case-insensitive alias・store 横断 `--` 衝突・stale render artifacts(#121、#120 review で deferral 合意) | | 2026-11-21 01:5x–02:0x JST | `3e55d21`(release/1.2.0 head) | `0.2.0` from npm | **pass。** device-windows(Windows 11 10.0.29708 x64、Node v26.13.1)、AE 2026 26.5.3x9 build 9(`D:\4_apps\adobe`)。fresh consumer(`C:\Users\rebui\ae-test-acceptance\consumer`)が packed tarball `ido-bata-ae-test-1.2.0.tgz`(sha1 `bc777f1a8fa30d09b9061140a3aec01ad96ac1d1`、sha256 `3a8aba84fa5013f559c04e8c077fd77190604b7ff3468f57da9d713c08e33d80`、sha512 SRI `sha512-/KZF97FDVK2ZTZsLsP74qCfnIasDCtqTX61k91LZ5crZ25TXzmK+eez6dLxstyBS+BASJXLKdGwhgbWo7S2scA==`、45 files、git `3e55d21` で `npm pack`)を install し、package 同梱 `examples/consumer` spec + `ae-test.real.config.json`(`installDir` を Windows path に変更)で実機 run: `--update-snapshots` record → plain compare → さらに foreign AE 2027 プロセス起動中の 3 回目も compare pass。各 run 1/1(~21–64 s)、`cleanup.status=ok`、`quit=true`、trace + before/applied/after renders 収集、AfterFX 残留なし。session: `launched=true`、`uid`/`asid`=null(Windows)、host `26.5.3x9` build `9`、transport `script-invocation`。baseline は environment-scoped `script-invocation-win32-x64-ae-26.5.3x9-9` に記録(consumer 側・repo 非コミット)。**訂正(#136、同日後刻の trace 照合)**: 「foreign AE 2027 プロセス起動中の 3 回目」は記録誤り。run 3(16:54:15–16:54:35Z)の `trace.jsonl` は launch 時・close 時ともに `AfterFX.exe` が 1 プロセスのみ("pid 9924 is still the only instance" → `ownership: owned`)であり、census が全 `AfterFX.exe` を数える以上、foreign AE 2027 は run 中に存在しなかった。**ownership は installDir 単位ではない**: Windows の census(ae-a8n `windowsProcesses`)は path を問わず全 `AfterFX.exe` を数えるため、launch 時点で foreign `AfterFX.exe` が 1 つでもいれば owned session は確立できない(#134 / PR #135 の 2026-11-21 07:5x の試行で `HostNotOwnedError` を実測)。isolated lane(`ae-a8n test --user`)・AE 2027・ARM64 Windows は未検証 | | 2026-11-21 01:4x–02:2x JST | `3e55d21`(release/1.2.0 head。suite は repo tooling で tarball 非含有) | `0.2.0` from npm | **pass(baseline 記録 + compare の 2 run)。** device-windows(Windows 11 10.0.29708 x64、Node v26.13.1)、AE 2026 26.5.3x9 build 9(`D:\4_apps\adobe`、installDir 明示)。`conformance/real-host/` suite を `--conformance --capability-catalog ` で実行: `--update-snapshots` が win32 baseline(`script-invocation-win32-x64-ae-26.5.3x9-9`、本 commit で追加)を記録 → plain run が committed baseline と比較し **4/4 pass**(各 ~19–22 s、1 launch/test)、全 record `real-host-verified`/`PASS`(29 capability declarations / 17 distinct `ae.operation.*` IDs)、`conformance.json` ok、`cleanup.status=ok`、`quit=true`、AfterFX 残留 0。**実機で観測した失敗経路(すべて設計通り fail-closed)**: (a) 別 AE instance 既存時は `HostNotOwnedError`(kind `attached`、pid 明示)で起動拒否・未接触; (b) test 中に foreign AE 2027 が起動すると teardown が `HostLeftRunning`("not quitting a host this session does not own (2 instances running)")で quit を拒否し後続 test を block; (c) 起動した pid が test 中に消失した場合も `HostLeftRunning`("pid … is gone; 0 other instance(s)"); (d) 1 回だけ AE が test 途中で終了し 120 s budget timeout → 再実行で pass(AE 側の一過性事象、Application Error log に新規 crash 記録なし。要観察)。TESTCAP03 の refused/cleanup 分類を実機で確認。SDK native plug-in lifecycle は upstream 未整備で依然 BLOCKED。ae-a8n attach-only API(#269, release-0-5-0, 未 publish)には未搭載 — pin は `0.2.0` のまま | +| 2026-11-21 07:5x–08:0x JST | `5e47e07`(branch `134` = release/1.2.1 + pin bump #134) | `0.5.0` candidate tarball(npm 未 publish。ae-a8n `origin/main` `444665c` の tree `cbdf1faf…` と一致確認済み worktree から npm 11.19.1 で `npm pack`: sha1 `ef6cf221ae668f26faa3fe2d7c7fd6edc74a5086`、sha512 SRI `sha512-/ZtxGdSqvwedt3g0MKN3OZJsROeV+wGNLEMsVqqarWdy7RZxtDAi3fDNrLNNI+Gv7tCQKUCMosp4/JINOTbuxw==`) | **fail(設計通り fail-closed、real-host evidence なし)。** device-windows、AE 2026 26.5.3x9 build 9(`D:\4_apps\adobe`、installDir 明示)。`conformance/real-host/` suite を committed win32 baseline と比較する plain run で実行したところ、**launch 前から foreign AE 2027(pid 52192、`D:\4_apps\adobe\Adobe After Effects 2027`、07:30 起動)が常駐**しており、Windows の census は installDir を問わず全 `AfterFX.exe` を数えるため ownership が `attached` と判定され `HostNotOwnedError`("already running before launch: pid 52192")で 1 failed / 3 blocked(~50 s)。foreign AE は未接触、spawn 残留なし。**対照実行**: 同条件で ae-a8n `0.2.0`(npm)に戻すと launch は行われるが、自前で起こした AE 2026(pid 60892)が readiness probe(180 s)に応答せず `AfterEffectsError` で失敗 — ownership 判定にすら到達しない。起こした AE 2026 はその後自然終了し残留なし。**示唆**: Windows で launch 時点に foreign `AfterFX.exe` が常駐していると、ae-a8n 0.5.0 は早期に `attached` で refuse(0.2.0 は spawn 後に probe timeout or attached で失敗)し、owned-session real-host lane はどちらの版でも証拠を出せない。上の 2026-11-21 01:4x–02:0x の行の「別 version の AE が同時に動いていても owned session を確立できる」は、当時の foreign instance が launch 時点の census に見えていなかった可能性があり、**今回の観測とは矛盾しうる** — 後続の #136 trace 照合で 01:4x–02:0x 行の記述が誤りと確定し、「foreign AE が launch 時点の census に存在しなかった」ことが証明された(下の Not covered 節参照)。`real-host-verified` の主張はしない。SDK native plug-in lifecycle は依然 BLOCKED(upstream 未整備) | | 2026-11-21 09:2x–09:3x JST | `cd7fb63`(release/1.2.1 head) | `0.2.0` pin の consumer(`@ido-bata/ae-test@1.2.0` tarball install)に ae-a8n `0.5.0` candidate tarball(ae-a8n `origin/main` `444665c` 由来、npm 未 publish)を node_modules 差し替えで適用 | **fail(設計通り fail-closed、real-host evidence なし)。** device-windows、`installDir` = AE 2026 `D:\4_apps\adobe`。`npm run test:real`(consumer `real-host/smoke.spec.mjs`)実行時、foreign `AfterFX.exe` が複数常駐(検証用の偽 `AfterFX.exe` 2 process + `ae-a8n-verify/issue276` の別検証が起動した実 AE 2026 1 process、計 3)。Windows census は全 `AfterFX.exe` を数えるため preexisting 判定となるが、foreign instance が readiness probe に応答しなかったため ownership 分類(`attached`→`HostNotOwnedError`)に到達せず、spawn した AE 2026(pid 46580)が 180 s で `HostUnavailableError`("no script was sent")。foreign process は全て未接触・残留。併せて #136 の trace 照合で 01:5x–02:0x 行の「foreign AE 2027 起動中」記述が誤りと確定(run 3 の session 全期間で `AfterFX.exe` は owned の 1 process のみ)。`attached` refusal 経路自体は #134 / PR #135 の 07:5x 試行(vidc pipeline の AE 2027 pid 52192 常駐 → `HostNotOwnedError` "already running before launch")で実測済み | Hash naming in this table: bare `shasum`/64-hex values are SHA-256. The npm diff --git a/package-lock.json b/package-lock.json index afaaf4b..23bd582 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.2.0", "license": "MIT", "dependencies": { - "@ido-bata/ae-a8n": "0.2.0", + "@ido-bata/ae-a8n": "0.5.0", "pngjs": "7.0.0" }, "bin": { @@ -681,9 +681,9 @@ } }, "node_modules/@ido-bata/ae-a8n": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@ido-bata/ae-a8n/-/ae-a8n-0.2.0.tgz", - "integrity": "sha512-NyKmrKIlm7zT4yHWPwf8VGxiW2FRBm5Dqf/IJWg1Dh04ceuk5KWLWHAEgNE5cPXc/N8vF3lQG/ny7axm25+shA==", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@ido-bata/ae-a8n/-/ae-a8n-0.5.0.tgz", + "integrity": "sha512-/ZtxGdSqvwedt3g0MKN3OZJsROeV+wGNLEMsVqqarWdy7RZxtDAi3fDNrLNNI+Gv7tCQKUCMosp4/JINOTbuxw==", "license": "MIT", "dependencies": { "acorn": "^8.18.0" diff --git a/package.json b/package.json index b08913c..776fd39 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "check:package": "node scripts/check-packed-package.js" }, "dependencies": { - "@ido-bata/ae-a8n": "0.2.0", + "@ido-bata/ae-a8n": "0.5.0", "pngjs": "7.0.0" }, "devDependencies": {