{"version":"2.1.265","anchor":"plan-mode-third-party-text-gate-is-a-build-time-constant-cu","canonical_anchor":"new-always-on-constant-changes-plan-mode-gating-for-artifact","heading":"Plan-mode gate for artifact verify\/upload consent is a hardcoded constant, not yet a real toggle","tier":"internal","area":"Plan Mode","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.265\/e\/plan-mode-third-party-text-gate-is-a-build-time-constant-cu","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.265","markdown":"### Plan-mode gate for artifact verify\/upload consent is a hardcoded constant, not yet a real toggle\n\nA new always-on constant currently broadens when artifact verify\/upload\/comment actions require live confirmation during plan mode\n\n**Unclear.** The finding shows the underlying constants are hardcoded true, but does not say what user-facing behavior the plan-mode check actually gates.\n\n**What**\n\n- A new module-level constant (`Cdn`, currently hardcoded to `true`) is now combined with plan-mode checks to broaden when certain artifact actions \u2014 like `verify` and `upload_asset` \u2014 require per-action confirmation rather than being covered by a session-wide approval. This matters because plan mode can admit third-party text into the conversation.\n\n- The helper `AA(e)` that makes this decision resolves to `Cdn && ue(e).mode === \"plan\"`, and is used together with another helper (`Au()`) throughout the new artifact consent code, including deciding whether comments or reads need a live confirmation prompt.\n\n- A sibling helper, `vU`, resolves to `(e.ask && e.basis === \"unattended\") || (EDe && ue(t).mode === \"plan\")`, where `EDe` is a second constant currently set to `true`, gating a related plan-mode branch.\n\n**Why** Both gating constants are hardcoded on rather than driven by a real setting, so today this behavior is effectively always active in plan mode: artifact verify\/upload\/comment\/read actions get an explicit confirmation prompt rather than relying on a broader session approval, since plan mode can bring in untrusted third-party text.\n\n- Area: Plan Mode\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}