DashboardopencodePromise permission failure tunnel

Promise permission failure tunnel

Category: gotcha
Confidence: 1.00
ID: 01a07f35-1533-7be4-9a24-e0c66a9f0729
Project ID: c0425955-02bc-4c17-9af2-b114c00077e7
Cross-project: No
Recalled in other projects: 0
Source session: 0bvvC1dq8qm5Ru8hT
Created: 2026-09-08 03:30:45
Updated: 2026-09-08 04:09:40

Content

Trap: treating every rejected Promise permission assertion alike looks correct because all cross the same Promise boundary, but it either turns CorrectedError into a defect or exposes declines as recoverable failures. Fix: wrap only typed Effect failures in TypedFailure; executePromiseTool converts CorrectedError.feedback to the exact Tool.Error.message, while ordinary defects and Core’s deliberately defect-tunneled DeclinedError remain defects.

Move to: