Skip to content

release: 0.7.0 — Resilient Execution (Program #337 Plan A) - #347

Draft
rebuildup wants to merge 263 commits into
mainfrom
release-0-7-0
Draft

rebuildup wants to merge 263 commits into
mainfrom
release-0-7-0

Conversation

@rebuildup

Copy link
Copy Markdown
Contributor

Release goal

@ido-bata/ae-a8n 0.7.0 — Program #337 Plan A「Resilient Execution」。起動時 crash-repair・script error・unexpected modal 等の異常を通常の launch/execute/verify/test 経路で検出・分類・復旧し、機械可読な nextActions と有限 fallback を提供する。対象誤認を防ぐ安全性ゲート(US-A2/A3)を全変更の前提とする。

Included Issues(予定)

注: Issue 番号は program #337 の ticket index に基づく。着地済み PR が確定次第ここへ追記する。

Breaking changes

未定(freeze 時に確定)。

Migration notes

未定。

Validation evidence

未定 — freeze 後に current SHA で実行する。

Known limitations

Generated with Devin

@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

rebuildup and others added 28 commits November 27, 2026 03:48
feat(supervision): terminateとverified rebuildを分離した安全な復旧接続 (#340)
feat+test: AE起動時の応答前帰属・起動 supervision(#339 T001–T003)
feat: 標準実行経路へ異常対応・有限fallback・証跡を統合 (#342)
docs(ime): B-IME spec — CEP compositionと実OS IME・基本入力の契約 (#344)
docs(spec): GUI縦切り3 — ワークスペース配置・AE固有編集操作 spec (#345)
docs(spec): GUI録画・画面/render証跡統合の契約 spec(#346)
feat(panels): B-PLATFORM 契約・macOS panel slice・public API (#343 T001-T003)
feat(workspace): workspace XML reader — read-only discovery/parse/hash (#362)
feat(evidence): ae-a8n.gui-evidence/v1 index schema + GuiEvidenceIndex core (E1a)
feat(panels): docked-region pane deep AX walk (#361)
feat(workspace): ホスト readback 追加 — comp.time / Property.selected / keyframe 列挙 (#359)
feat(input): 入力operation契約 — taxonomy/class/gate/capability/cleanupをfakeで固定 (#371)
rebuildup and others added 30 commits November 30, 2026 09:16
docs(spec): #337 閉ループ制御への再構成仕様と技術検証計画
docs(spec): #492 閉ループ制御の現行実装突合
poc(macOS): #495 PoC-B — bootstrap・初回投入・vmmap tri-state の限界判定
…st evidence

rtt/block/modal phases on AE 2027 (27.0.0), console session:
- disp heartbeat stalls observably during main-thread block (D1 Go)
- si call during block times out honestly; in-flight serialization
  refuses subsequent sends (D3 Go, both transports)
- modal call times out; CGEvent dismissal failed on this host,
  recovery unverified (D2 Unverified, host limitation not transport)
- reproduced osascript-kill script-engine wedge ("1" signature),
  validating the driver leave-running deadline design
- crash-recovery dialog blocks boot after forced exit; dismissible
  via screencapture+OCR+session-tap click (verified once)

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
test(poc): #498 transport 比較の実機証跡 (PoC-D)
census/ax-raw/ax-osa/capture+OCR/ps axes x live GUI controls, 3 passes:
- census stable primary signal; capture+tesseract viable evidence axis
- AX window axis systemically unserved on this host (all regular apps
  vend AXWindows=0, AXChildren=AXMenuBar only; System Events agrees) —
  not AE-specific; AE 2026 axRaw flapped 0->2 within the hour
- AXManualAccessibility force-set unsupported (-25205)
- tesseract/leptonica cannot open files via /tmp symlink; realpath workaround
- verdict: conditional Go — census+process diagnostic as primary,
  capture+OCR as content fallback, AX demoted to auxiliary signal

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Non-destructive observation on shared host + code analysis:
- recurrence breaker confirmed consistent with #466/#477 verified
  evidence; today's kill->crash-dialog->~7min boot block reproduced twice
- AppStates current entry lacks ProcessID/OriginalMetadata — invisible
  to scrub/sweep selectors; arming potential recorded as open question
- cfprefsd probe: direct plist writes visible to defaults read when no
  live app holds the domain; export/import path stays correct
- profile boundary enumerated: versioned prefs dirs, shared unversioned
  domain (AppStates home), CEP, caches, auth/license exclusions
- managed-profile restore comparison unverified: no isolated GUI
  session on this host -> dedicated-user/remote-host pivot candidate

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Controlled osascript display-dialog experiment (owned target only):
- census resolves modal by pid/owner/title/layer/geometry, no AX
- screencapture+OCR anchors the POC_OK button; session-tap click
  dismisses; oracle "button returned:POC_OK" proves correct target
- negative control: body click leaves dialog up
- text panel typing reaches only while frontmost; foreign focus churn
  loses remainder ("PO" of 22 chars) — input needs verified focus

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Tier evaluation against existing #379 ime-realhost evidence:
- Tier1a CEP composition, Tier1b real OS IME, Tier2 ScriptUI input:
  all verified on real host (existing evidence, boundaries respected)
- non-text UI (keyframe/indicator drag): unverified — flagged as
  remaining gap needing dedicated fixture experiment
- focus.ts focus-unproven/focus-lost guards + cleanup.ts pressed-set
  release match spec 3.4; BLOCKED_FOREIGN_FOCUS naming differs but
  typed aborts are equivalent
- live supplement: session-tap is screen-space bound; mid-type app
  switch lost remainder to foreign app (compliant, no re-foreground)

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
test(poc): #494 観測軸比較の実機証跡 (PoC-A)
test(poc): #499 dirty-quit循環とprofile境界の証跡 (PoC-E)
test(poc): #496 AX非依存modal/panel入力の実機証跡 (PoC-C-1)
test(poc): #497 IME/Foreign Focus Yield評価証跡 (PoC-C-2)
…d, IMPL-1..5 issues

- decisions.md: PoC-A..E verdicts, design determinations for
  two-store/axes/epoch/fencing/notification/effect-scope/path-selection,
  per-spec delta map, remaining unknowns
- spec.md/plan.md status → Accepted (tech design fixed; not product
  acceptance)
- crosscheck §4 updated: all Proposed→Accepted conditions resolved
- IMPL tickets filed: #507-#511

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
docs(poc): #492 技術選定確定 — spec/plan Accepted 昇格 + IMPL-1..5 起票
… foundation

IMPL-1 first increment (decisions.md 2.1):
- SupervisionStateDoc gains optional revision (monotonic publish
  counter), epoch (driver session generation), fencingToken (per-monitor
  writer token), axes (independent capability axes)
- deriveSupervisionAxes: observation/process-identity/requests-outcomes
  derived from existing evidence; unwired axes report unknown, never a
  guessed ok
- observationWriteVerdict + per-publish lease currency check: the lease
  holder may takeover a superseded token; a writer that lost the lease is
  refused and stops instead of overwriting the new generation
- epoch wired from driver.sessionId through SessionSupervision and all
  launch/boot-supervision call sites
- schema validation: malformed revision/epoch/fencingToken/axes make the
  document corrupt, same as any other field

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
- src/operations/contract.ts: per-method declaration of effect class,
  UNKNOWN-hold scope (target/session/shared-resource), candidate
  transports, oracle and permissions; undeclared methods get the
  conservative default. Exported publicly.
- src/execution/request-store.ts: durable ae-a8n.execution/v1 record of
  every dispatched request joined by epoch+request id; epoch handoff
  reconciles unresolved requests to unknown (never resent); per-
  generation fencing token refuses same-epoch interleaved writers.
- driver records sent/settled outcomes (ok/error/timeout/recovered) and
  stamps effectScope on pending requests and trace rows.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
… store

driver.pendingRequests() now projects the execution store's unresolved
records (in-flight/timed-out/unknown with effectScope) instead of the
single in-memory in-flight request, so timed-out and unknown outcomes
stay visible to supervision until reconciled. All launch/boot supervision
callbacks rewired.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…ication

SessionSupervision.subscribe() fans each accepted monitor publish out to
live listeners; the driver's invoke block watch resolves on publish
instead of the next 1s poll tick, with the poll kept as fallback for
hooks without a subscription. Listeners are read-only evidence consumers.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…uestId

- unknownContinuationFor(effectScope) returns the typed verdict
  (allow-same-target-reads / hold-session-mutations /
  hold-shared-resource-operations); timeout trace rows now carry it
  first-class alongside requestId.
- TraceEvent gains epoch (session generation) and every driver trace
  row is stamped with it via a #record wrapper, so the attempt ledger
  joins the execution and observation stores without parsing args.
- gui-supervision / execution-model specs record the confirmed #507
  deltas (two stores, revision/epoch/fencing, axes, subscribe,
  operation contract, UNKNOWN continuation).

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
The monitor's pending-request merge only ever added entries and never
removed settled ones, leaving phantom pending requests in the durable
document. The tick now refreshes pendingRequests from the
pendingRequests callback every publish, so the observation document is
a true projection of the execution store; setPendingRequests remains
for rebuild reconciliation until the next projection refresh.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
feat(supervision): #507 観測store revision/epoch/fencing/axes基盤 (IMPL-1 第1弾)
- src/operations/readiness.ts: five-stage vocabulary
  (process-identity / gui-observation / bootstrap-injection /
  transport-handshake / workload-prerequisite), per-path profiles with
  PoC-D measurements (si p50=184ms non-block-resistant default; disp
  p50=313ms block-resistant; native-channel declared-unmeasured), and
  per-stage budget declarations.
- driver.start() records readinessPath + readinessStages on the
  session.launch trace row for success and failure: gui-observation is
  always not-required (no window gate), bootstrap-injection covers the
  plugin-image condition on script-invocation only, and the dispatcher
  heartbeat maps to workload-prerequisite. Readiness is still proven
  solely by the handler response — map=loaded is an input, never a
  verdict.
- execution-model spec records the confirmed deltas.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
feat(operations): #508 経路別 readiness 分解と transport path profile (IMPL-2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant