pub fn is_trusted(config: &Config, surface: TrustSurface) -> boolExpand description
BP-10: is this workspace trusted to load surface?
Order, first answer wins:
[capabilities.trust] enabled = false⇒ there is NO trust gate, soTrustSurface::undecidedanswers: config-declared code is still refused (plugins → trustis a hard resolver dependency — plugins cannot even be enabled without this module), project instruction text is still loaded. Both are the pre-BP-10 behavior exactly; a module nobody turned on must not silently acquire a new refusal.default = "always"⇒true;default = "never"⇒false. An explicit answer is never overridden by a stale recorded one.- A recorded per-project decision ⇒ that answer, without prompting.
default = "ask"with a door installed ⇒ ASK, on the one engine’s handler.AllowForSession(“don’t ask again”) records the answer; a one-shotAllowdoes not. A refusal records nothing, so a later run asks again rather than remembering a “no” the user may have meant only for that moment.default = "ask"with no door ⇒TrustSurface::undecided— see this module’s doc comment for why that differs by surface.