Repository navigation
feat(recovery): ae-a8n supervision contract の recovery-orchestrator 統合 (#408) - #412
Merged
Merged
Conversation
…stration (#408) Read the durable ae-a8n.supervision/v1 state (supervision.json + monitor.lease.json) through a single consumer module and map it onto the existing recovery verdict vocabulary without re-owning any GUI probing, dialog pressing, or recovery policy: - a8n-transport/supervision.mjs: schema-validated reader, read-time observation-health re-evaluation (stale heartbeat -> monitor-lost), structured needs-human info (dialogs/options/reason/resume path), phase->verdict escalation (never downgrades), clean-gate, and a bounded phase wait honouring the document deadline. - recovery-orchestrator: runTimeoutRecovery reads supervision before and after the attempt and escalates (needs-human/quarantined -> quarantined, monitor-lost/unavailable/corrupt -> unknown, blocked/ recovering -> await-original); verifyHostExit gates 'clean' on trustworthy observation; CLI gains --session-root for observe / recover / verify-exit; diagnostics messages carry the supervision suffix additively. - dev-loop/devtools-cli/MCP: sessionRoot exposed on a8n sessions; evidence.supervision snapshot on every execute/verify result; UNKNOWN outcomes get a bounded --supervision-wait-ms classification window; failure diagnostics records carry record.supervision. - monitor-lost/degraded/unavailable are never folded into healthy or clean; corrupt/absent/future-version state stays unavailable. 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
|
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 #408。ae-a8n が所有する durable supervision contract(
ae-a8n.supervision/v1、supervision.json+monitor.lease.json)を ae-devtools が消費し、recovery-orchestrator の verdict・failure record・diagnostics・dev-loop evidence に一貫して反映する。GUI 監視・dialog 操作・復旧 policy の正本は ae-a8n のまま。consumer 側に独自の GUI probing / dialog pressing / 復旧ロジックは追加していない(durable state の読み取りと verdict への写像のみ)。
変更点
a8n-transport/supervision.mjs(新規): 唯一の consumer read path。monitor-lost)needsHumanInfo(): dialog / reason / options / requiredAction / resumePath の構造化情報supervisionEscalation(): phase/health → 既存 verdict 語彙への写像(escalate のみ、downgrade なし)supervisionBlocksClean():cleanverdict のゲートwaitForSupervisionPhase(): phase deadline を尊重する常に bounded な待機runTimeoutRecoveryが attempt 前後で supervision を読み、needs-human/quarantined →quarantined、monitor-lost/unavailable/corrupt →unknown、blocked/recovering →await-originalに escalate。verifyHostExitはcleanを supervision の観測健全性でゲート。CLI に--session-rootを追加(observe/recover/verify-exit)。diagnostics message に supervision suffix を additive に付与。sessionRootを公開。execute/verify の evidence にsupervisionsnapshot を additive に付与。UNKNOWN outcome のみ--supervision-wait-ms(default 5000、0 で無効、phase deadline でも cap)で bounded な分類待機。failure diagnostics record にrecord.supervision。不変条件
monitor-lost/degraded/unavailableは決して healthy / clean にならないunavailableであり、runningに丸めない検証
a8n-transport(supervision.test.mjs 22件)、dev-loop(supervision.test.mjs 6件)、recovery-orchestrator(supervision verdict 系 9件追加、全 65 件 green)、devtools-cli(53 件)、mcp-server(29 件)、diagnostics(全 green)、syntax check 144 files passRefs #407, #408