DashboardopencodepluginTestLayer permission injection

pluginTestLayer permission injection

Category: pattern
Confidence: 1.00
ID: 01a07f41-7509-79e1-b6d8-da36a4265396
Project ID: c0425955-02bc-4c17-9af2-b114c00077e7
Cross-project: No
Recalled in other projects: 0
Source session: 0h1QXR1lwjxyQbbGG
Created: 2026-09-08 04:09:40
Updated: 2026-09-08 04:23:11

Content

Use pluginTestLayer(assert) to test Promise permission behavior through an activated plugin, registered tool, host adapter, and Tool.Service.snapshot() execution. Chose this boundary-level regression over adapter mocks because success, typed CorrectedError, ordinary defects, and defect-tunneled DeclinedError change representation at different layers; mocks can duplicate or skip those conversions.

Move to: