Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.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.
- `main` = released state. The current integration line is the open `release/*` branch (currently `release/1.3.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.
- 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).
Expand Down
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# Changelog

## 1.3.0

`@ido-bata/ae-a8n` pin moves `0.5.0` → `0.6.0` exactly (#142). No
`ae-test` API or runner behavior changes; the bump picks up ae-a8n
0.6.0's GUI Supervision feature release (`release-0-6-0` train, ae-a8n
Epic #278: durable supervision state, `ae.supervisionState()`, the
detached observation-only supervisor, macOS/Windows GUI probes,
measured safe recovery, and verified session rebuild). ae-test does not
consume the supervision surface yet; the owned-session lane remains the
primary path.

### Verification

- `fake/mock only` against the published registry pin:
`@ido-bata/ae-a8n@0.6.0` (integrity
`sha512-Xvum7zWGDAjTyqkgajPJqCA6Hx9v83v2atFUplo7GvAD0nmjcEoft79vvQo/3VJji/6DvoJuVrEjumiTyciE+w==`)
resolved by `npm ci`, and `npm run check:package` green — the packed
consumer reports "ae-a8n 0.6.0 from the registry".
- `npm run check` locally: build/typecheck/lint green; the 245-test
suite passed except timing-sensitive `test/lifecycle.test.ts`
interruption/drain cases, which flaked under extreme machine load
(load average ~45 from concurrent work). The identical flakes
reproduce with the previous `0.5.0` pin installed, and the fake
transport those tests exercise (`@ido-bata/ae-a8n/testing`) is
byte-identical between 0.5.0 and 0.6.0 — the flake is environmental,
not a regression from this bump. PR CI is the authoritative
automated-test gate.
- Real After Effects verification against `0.6.0` has not been run;
comprehensive real-host acceptance is deferred to the release
candidate, per `docs/dependency-on-ae-a8n.md`.

## 1.2.1

Patch-level dependency update on the 1.x contract: the
Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.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.
- `main` = released state. The current integration line is the open `release/*` branch (currently `release/1.3.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.
- 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).
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ behaved; only a real-host run says that.
npm install --save-dev @ido-bata/ae-test
```

`@ido-bata/ae-a8n` comes with it, pinned to exactly `0.2.0`.
`@ido-bata/ae-a8n` comes with it, pinned to exactly `0.6.0`.

Requirements: Node 22 or later. TypeScript specs need a Node that strips
types itself — 22.18+ or 24+ (the CLI exits 2 with a clear message on older
Expand Down
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ capability が個別に実機検証された」ことを意味しない — test

## 依存ポリシー

- `@ido-bata/ae-a8n` は exact version pin(例 `0.2.0`)。
- `@ido-bata/ae-a8n` は exact version pin(例 `0.6.0`)。
`TestContext.ae` の型は ae-a8n の型をそのまま露出するため、ae-a8n の
breaking change は ae-test の breaking change として扱い、pin 更新と
同一 release で取り込む。range 指定・`latest` は使わない。
Expand Down
11 changes: 9 additions & 2 deletions docs/dependency-on-ae-a8n.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
From npm, as one exact published version:

```json
"@ido-bata/ae-a8n": "0.5.0"
"@ido-bata/ae-a8n": "0.6.0"
```

- **Exact, not a range.** It is an early-development `0.x` release, and a
Expand Down Expand Up @@ -44,7 +44,14 @@ ended.

## History

- `0.5.0` (this pin) is the `release-0-5-0` train: `AfterEffects.attach`
- `0.6.0` (this pin) is the `release-0-6-0` train: the GUI Supervision
feature release (ae-a8n Epic #278) — durable supervision state
(`ae.supervisionState()`, `ae-a8n supervise`), a detached
observation-only supervisor, macOS/Windows GUI probes, measured safe
recovery, and verified session rebuild (`AfterEffects.rebuild()`).
ae-test does not consume the supervision surface; the owned-session
lane remains the primary path.
- `0.5.0` was 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
Expand Down
3 changes: 2 additions & 1 deletion docs/verification.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ nothing about the other.

`.github/workflows/ci.yml`, Ubuntu, no After Effects:

- `npm ci` with `@ido-bata/ae-a8n@0.2.0` from registry.npmjs.org,
- `npm ci` with `@ido-bata/ae-a8n@0.6.0` from registry.npmjs.org,
integrity checked against `package-lock.json`, recorded in the job summary;
- build, typecheck, lint, and the unit/contract test suite (runner, fixtures,
teardown, snapshots and
Expand Down Expand Up @@ -99,6 +99,7 @@ builds a disposable comp).
| 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")で実測済み |
| 2026-11-21 14:4x–14:5x JST | `eb713d9`(release/1.2.1 head) | `0.5.0` from npm(integrity `sha512-/ZtxGdSqvwedt3g0MKN3OZJsROeV+wGNLEMsVqqarWdy7RZxtDAi3fDNrLNNI+Gv7tCQKUCMosp4/JINOTbuxw==`、07:5x 行の candidate tarball と同一 SRI) | **pass(owned session、実機 AE)。** macOS arm64 console session、AE 2026 26.5.3x9 build 9(`installDir` = `/Applications/Adobe After Effects 2026`)。ユーザーの AE 2027(Aulymo 自動化が稼働中; run 中に main pid が 88108→63235 へ user 側の再起動で変化)は全期間を通じて常駐 — macOS の census は install の executable+uid に scope されるため AE 2026 の owned launch は成立し、ae-test は AE 2027 に一切触れていない。Fresh consumer(`/tmp/ae-test-121-acceptance/consumer`)が packed tarball `ido-bata-ae-test-1.2.1.tgz`(`eb713d9` で `npm pack`: sha1 `a5d3805683dce30df62294d67b0ece561e2b2ae8`、sha256 `7c4668cf14e93e3317f90b8f939f49cd82a95cd71d8376a32914505d97500ad7`、sha512 SRI `sha512-LZyG1YUAd5C1C1mt01BFud6U6yhwfHu/71etU4u+D9aWJ30k0eIii77YDpjXl056cCmfsm8gwqGrUc5x2kZgPw==`、45 files)を install し、package 同梱 `examples/consumer`(`ae-test.real.config.json` + `real-host/smoke.spec.mjs`)を実行: `--update-snapshots` record → plain compare の 2 run、各 1/1(~21.7 s / ~38.3 s)、`cleanup.status=ok`、`quit=true`、trace + before/applied/after renders 収集、AE 2026 の process 残留なし(uid 501、asid 100022、transport `script-invocation`、`session.launched=true`)。script-trust dialog は出ず。**同一 session の先行試行は fail-closed**: AE 2026 の cold 初回 launch が readiness budget 180 s を超過し `AfterEffectsError`(app.info に 177.6 s 無応答、起動 process は所有証明不能のため残置 → 手動 quit)。cache の温まった 2 回目以降は上記 pass — ae-a8n README の「cold launch close to the 180 s readiness budget」のリスクに合致。**これが ae-a8n `0.5.0` pin に対する初の macOS real-host owned-session 証拠**(07:5x / 09:2x の 2 試行はどちらも実機 evidence を出す前に fail-closed で終了していた) |
| 2026-11-27 00:1x JST | `9bfe79f`(branch `142` = release/1.3.0 + pin bump #142) | `0.6.0` from npm(integrity `sha512-Xvum7zWGDAjTyqkgajPJqCA6Hx9v83v2atFUplo7GvAD0nmjcEoft79vvQo/3VJji/6DvoJuVrEjumiTyciE+w==`、registry `dist-tags.latest` = 0.6.0) | **fake/mock only(real-host 未実施)。** `npm ci` が registry の 0.6.0 tarball を lockfile integrity 一致で install。`npm run build` / `typecheck` / `lint` green。`npm test`(245 tests / 21 files): 依存 pin 契約(`test/dependency.test.ts`)・extension cases・他 20 files は green だが、timing-sensitive な `test/lifecycle.test.ts` の interruption/drain 系 case が高負荷(load average ~45、他 agent の並行作業)下で断続的に flake — **同一 flake は旧 pin 0.5.0 でも再現**し、当該 test が使う fake transport(`@ido-bata/ae-a8n/testing`)は 0.5.0→0.6.0 で byte-identical のため環境要因と判断(単独実行では 11/11 pass)。`npm run check:package` green — packed consumer が "ae-a8n 0.6.0 from the registry" を報告。実機 AE に対する 0.6.0 の検証は未実施で、`real-host-verified` の主張はしない。包括実機受入は release 候補で実施(docs/dependency-on-ae-a8n.md の bump 方針通り)。PR CI が authoritative な automated-test gate |

Hash naming in this table: bare `shasum`/64-hex values are SHA-256. The npm
publication contract is different — registry `dist.shasum` is SHA-1 and
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"check:package": "node scripts/check-packed-package.js"
},
"dependencies": {
"@ido-bata/ae-a8n": "0.5.0",
"@ido-bata/ae-a8n": "0.6.0",
"pngjs": "7.0.0"
},
"devDependencies": {
Expand Down
Loading