fix(pothos): keep GraphQLError defects opaque at the transport boundary
Problem
The pothos bridge throws unclaimed Defect causes unchanged. A GraphQLError is already treated as a public refusal by Yoga. Reproduced with a resultField resolving fromSafeThrowable(() => { throw new GraphQLError("private database password", { extensions: { credential: "secret" } }); })(): Yoga default masking returned both the private message and extension. Tested published 0.1.0; reviewed 0.1.1 source retains the same unclaimed logic.
Locations
packages/pothos/src/refusals.ts: unclaimed, settle and outcomeOf
Acceptance
Wrap defect causes so transport-shaped errors cannot bypass masking or become handled refusals. Preserve explicitly mapped Err responses and original causes for diagnostics. Prove the behavior through a real Yoga response and the DataLoader outcome path.
Found in the deep audit of accounting, btravstack 0.29.0 and unthrown 5.12.0.