Skip to content

dev-loop verify() が consentAudit を runOperation に転送せず verify dispatch が監査対象外になる #403

Open

Description

@rebuildup

症状

packages/ae-devtools-cli/dev-loop/devloop.mjs の verify() は runOperation({...}) に明示的なフィールドリストで引数を渡しており、consentAudit を含んでいない。execute() は input をそのまま渡すため監査されるが、verify() 経由の read dispatch は consent provider の approved/refused 決定が consent-audit に記録されない。

PR #400 の CodeRabbit レビューで指摘され、実ホスト evidence(vscode-extension/evidence/vscode-iso-a8n-366/run-20261121T0004Z/consent-audit.jsonl)で req-mcp-1/2 は記録されるが verify dispatch の req-mcp-3 が欠落していることを確認済み。

影響

  • CAP052(consent audit)の不変条件「全 dispatch の consent 決定を durable に記録」が verify 経路で破れる
  • verify は read-only op に限定されるが、read dispatch も execute-class dispatch であり consentProvider の判断は監査対象

対応

  • verify() の destructure / 転送リストに consentAudit を追加
  • runOperation が受け付ける他の consent 関連フィールド(consentProvider, trustedScriptOptIn, scriptProvenance, requestId, hostProjectGuard, hostProjectGuardRequired, confirmRender, confirmDestructive, targetGuard)を監査し、verify の read-only 制約上不要なものは転送不要であることを確認
  • verify + consentAudit sink で audit entry が生成される contract test を追加(修正前に FAIL することを確認)

Activity

  1. added a commit that references this issue on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions