Skip to content

feat(scripting-adapters): host script 内での project identity 再確認(mutation dispatch の TOCTOU 狭隘化) #385

Open

Description

@rebuildup

PR #379 CodeRabbit Major finding の follow-up(heavy lift のため release-0-6-0 では別 ticket)。

背景

a8n-attached lane の targetGuard(revalidateTarget)は consent 承認直後・dispatch 直前に target identity を再証明するが、guard 通過から generated ExtendScript が host で評価されるまでの間に user が AE で project を切り替える TOCTOU 窓が残る。consent scope が bind する projectIdentity は現在 "cli-devtools" のような静的文字列で、host-readable な project identity(例: app.project.file)を generated script 内で同一評価として比較する仕組みがない。

検討事項

  • host-readable project identity の定義(app.project.file の path 正規化、未保存 project の扱い)
  • consent scope / generated source への expected identity の plumbing(registry template vs execute.mjs の prelude 注入)
  • owned(a8n) session への適用範囲(owned は自前 AE なので実害は小さいが一貫性のため検討)

Refs #366, PR #379

Activity

  1. added a commit that references this issue on Nov 20, 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