Skip to content

fix(dev-loop): verify() が consentAudit を転送し verify dispatch を監査対象にする (Issue #403) - #404

Merged
rebuildup merged 1 commit into
release-0-7-0from
403
Nov 21, 2026
Merged

rebuildup merged 1 commit into
release-0-7-0from
403

Conversation

@rebuildup

Copy link
Copy Markdown
Contributor

概要

Closes #403

dev-loop/devloop.mjs の verify() が runOperation() へ明示的なフィールドリストで引数を渡す際に consentAudit を落としており、verify 経由の read dispatch が consent-audit に記録されない実害のある不具合を修正する。PR #400 の CodeRabbit レビュー指摘を起点に、実ホスト evidence(req-mcp-3 欠落)で確認済み。

変更

  • verify() の destructure / 転送リストに consentAudit を追加
  • runOperation の他の consent 関連フィールドを監査: confirmRender / confirmDestructive / targetGuard は verify が non-mutating op のみ許可するため発火し得ず転送不要(registry 全 97 op で non-mutating かつ requiresConfirm/destructive の op が存在しないことを確認済み)。転送しない旨をコメントで明記
  • contract test 2 件追加(修正前に FAIL することを確認済み):
    • verify + consentAudit sink で approved 決定が audit entry として記録される
    • malformed consentAudit が CONSENT_AUDIT_INVALID で refused になる

検証

  • node --test dev-loop/tests/devloop.test.mjs: 11 pass(新規 2 件は修正前 FAIL → 修正後 PASS)
  • npm test(ae-devtools-cli 全 suite): 全 green
  • evidence level: fake/mock only(fake host ベースの unit/contract test。実ホスト再検証は conformance evidence refresh で別途実施)

@coderabbitai

coderabbitai Bot commented Nov 21, 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: 28e76257-71a8-4000-8418-9586a2fe3fae

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

@rebuildup
rebuildup marked this pull request as ready for review November 21, 2026 06:07
@rebuildup
rebuildup merged commit c8cb755 into release-0-7-0 Nov 21, 2026
9 checks passed
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