Repository navigation
Conversation
|
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
|
#410) Attached sessions can now read the ae-a8n supervision report through the same surfaces as owned sessions — without ownership promotion, mutation permission, or any new dispatch path. - dev-loop/supervision.mjs: isAttachedSession() detects the Issue #366 attached/read-only contract; attachedTargetGuardVerdict() re-validates target identity through the SAME targetGuard runOperation uses before mutating dispatches (census, pid/start stamp, version, project — fail closed on ambiguity, PID reuse, session change, second instance); guardedSupervisionSnapshot() serves the durable report only while the guard passes, else an honest unavailable (source 'target-guard') that never leaks the possibly-stale phase. - MCP: ae_supervision and ae_session use the guarded path for session-bound reads (guard checked before AND after any bounded wait); failure diagnostics carry the guarded snapshot, so a read-only refusal on an attached session still surfaces the structured needs-human state. - devtools-cli: evidence.supervision uses the guarded snapshot; the UNKNOWN-outcome bounded wait re-validates the guard afterwards and discards the snapshot on failure. - Explicit --session-root/--workdir dir reads stay unguarded file reads by design (no session object exists to prove identity against) and are documented as such. - Mutating ops on read-only attached sessions remain refused by sessionPolicy before consent/dispatch — supervision adds the structured human-required context, never a permission. Owned-disposable vs explicit-attached distinction preserved. Fake/ mock evidence only; real-host GUI path remains unverified.
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 #410。explicit-attached session(Issue #366 contract)が ae-a8n supervision report を read-only で取得できるようにする。stacked on #413(branch 409)。
設計
targetGuard(runOperation が mutating dispatch 前に使うのと同一のrevalidateTarget:census / pid・start stamp / version / project、ambiguous・PID reuse・session change・second instance で refuse)を通過している間だけ serve される。guard 失敗・欠落時は durable phase を 漏らさずunavailable(sourcetarget-guard、guard の code/detail 付き)を返す — 別の AE instance を記述した stale report を current として見せない。--session-root/--workdirの dir 直接 read は session object が存在しないため unguarded file read(仕様として明記)。変更点
dev-loop/supervision.mjs:isAttachedSession/attachedTargetGuardVerdict/guardedSupervisionSnapshot追加ae_supervision・ae_session・failure diagnostics が session-bound read で guarded path を使用(bounded wait の前後で guard を再検証)evidence.supervisionを guarded snapshot に。UNKNOWN outcome の bounded wait 後に guard を再検証し、失敗時は snapshot を破棄検証
Refs #407, #408, #409, #410