Repository navigation
Conversation
…VSCode (#409) Every consumer now reads the same durable ae-a8n.supervision/v1 report and produces the identical snapshot — phase, observation health, pending requests, and the structured needs-human request (dialog, reason, options, required action, resume path). No client implements GUI probing, dialog pressing, or recovery policy. - devtools-cli: new read-only 'supervision' command resolves the session dir via --session-root / --workdir (<workdir>/a8n-session) / --run-id (surviving run marker) and emits ae-devtools.cli.supervision/v1; optional --wait-ms/--wait-phases bounded wait (phase deadline still caps it). Never opens a session. - MCP: new ae_supervision tool (sessionRoot arg or the already-open session's root; never opens a session) and ae_session now carries the supervision snapshot additively when a session with an ae-a8n root is open. - VSCode: controller.supervision() + ae-devtools.supervision command registered in package.json; identical payload through callTool. - dev-loop/supervision.mjs: dir-addressed snapshot/wait helpers so surfaces that never opened a session read the same contract. - diagnostics: supervision snapshot already rides ae-devtools.diagnostics/v1 records/blocks additively (#408); sourcemap diagnostics remain a separate concern. Attached sessions get the identical read-only view — reading the report grants no ownership and no mutation. Fake/mock evidence only; real-host GUI path remains unverified.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
rebuildup
marked this pull request as ready for review
November 23, 2026 04:03
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
Epic #407 の consumer 統合 Issue #409。#408 で導入した durable supervision consumer を、devtools-cli / MCP / VSCode / diagnostics の全 surface で同一 contract として公開する。stacked on #412(branch 408)。
GUI 監視・dialog 操作・復旧 policy は ae-a8n が正本のまま。consumer 側に独自の GUI probing / dialog pressing / 復旧ロジックは追加していない。
変更点
supervisionコマンドnode cli.mjs supervision [--session-root <dir> | --workdir <dir> | --run-id <id>] [--wait-ms <n>] [--wait-phases <csv>]--workdirは canonical<workdir>/a8n-sessionlayout、--run-idは surviving run marker から workdir を復元ae-devtools.cli.supervision/v1schema で snapshot を返す。report が unavailable の時のみ exit 1(needs-human/blocked は観測状態であり失敗ではない)ae_supervisiontoolsessionRoot明示 or 既に open な session の root を使用。session を開かない(closed server は honest unavailable)waitMs/waitPhasesの bounded wait(phase deadline で cap)ae_sessionにも open session の supervision snapshot を additive に同梱controller.supervision()+ae-devtools.supervisionコマンド(package.json 登録済み)。callTool("ae_supervision")経由で CLI/MCP と同一 payloadsupervisionSnapshotForDir/awaitSupervisionPhaseForDirを追加し、session を開かない surface も同一 contract を読むae-devtools.diagnostics/v1record/block のsupervisionsnapshot は feat(recovery-orchestrator): ae-a8n supervision state machine への写像と dev-loop 統合 #408 で additive 導入済み。sourcemap diagnostics とは分離を維持一貫性
全 surface が同一の
supervisionSnapshot()(a8n-transport/supervision.mjs)を返す: phase / health / pendingRequests / needsHuman(dialog・reason・options・requiredAction・resumePath)。needs-human の構造化情報は verbatim で全 surface に出る。attached session も同一の read-only view を得る — report の読み取りは ownership も mutation 権限も与えない。検証
Refs #407, #408, #409