Skip to content

feat(supervision): CLI/MCP/VSCode supervision status surface (#409) - #413

Merged
rebuildup merged 2 commits into
408from
409
Nov 23, 2026
Merged

rebuildup merged 2 commits into
408from
409

Conversation

@rebuildup

Copy link
Copy Markdown
Contributor

概要

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 / 復旧ロジックは追加していない。

変更点

  • devtools-cli: 新規 read-only supervision コマンド
    node cli.mjs supervision [--session-root <dir> | --workdir <dir> | --run-id <id>] [--wait-ms <n>] [--wait-phases <csv>]
    • session を開かず、dispatch も行わない durable state の読み取りのみ
    • --workdir は canonical <workdir>/a8n-session layout、--run-id は surviving run marker から workdir を復元
    • ae-devtools.cli.supervision/v1 schema で snapshot を返す。report が unavailable の時のみ exit 1(needs-human/blocked は観測状態であり失敗ではない)
  • MCP: 新規 ae_supervision tool
    • sessionRoot 明示 or 既に open な session の root を使用。session を開かない(closed server は honest unavailable)
    • optional waitMs/waitPhases の bounded wait(phase deadline で cap)
    • ae_session にも open session の supervision snapshot を additive に同梱
  • VSCode: controller.supervision() + ae-devtools.supervision コマンド(package.json 登録済み)。callTool("ae_supervision") 経由で CLI/MCP と同一 payload
  • dev-loop/supervision.mjs: dir-addressed の supervisionSnapshotForDir / awaitSupervisionPhaseForDir を追加し、session を開かない surface も同一 contract を読む
  • diagnostics: ae-devtools.diagnostics/v1 record/block の supervision snapshot は 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 権限も与えない。

検証

  • fake/mock レベル: mcp-server 33 件(ae_supervision 4 件追加)、devtools-cli supervision 5 件追加、vscode-extension controller 2 件追加、全 green
  • syntax check 144 files pass
  • real host 未検証: GUI frozen 中のため実 AE との end-to-end は未確認

Refs #407, #408, #409

…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.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c0f31d94-f66f-4dd9-8bf4-04761cf06066

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • 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

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

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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