# Newsletter editor: compatibility with an older config cache (#3967)

The already-registered AppServiceProvider loads only config/newsletter_editor.php
at registration, replacing the editor key even when Laravel booted from an old
configuration cache. Do not rebuild or rewrite the host config cache: other
configuration can contain previously resolved env() values, including SMS.
No other config file or repository key is reloaded, merged or altered.

The canonical editor file is static PHP, independent of environment variables.
Committed defaults stay enabled=false, company_ids=[], prepare_company_ids=[]
and node_binary=/usr/local/bin/node. A preview pilot requires explicit static
company opt-in and an empty preparation list; only an explicit preparation
company opt-in permits preparing immutable output. Existing role, actor, tenant,
saved-revision and intent checks remain required. Existing prepared readers and
assets do not depend on authoring being enabled.

The loader validates exactly four settings: a boolean enabled flag, list arrays
of positive integer company IDs, and an absolute runtime path without control
characters. Missing, malformed, throwing or invalid static configuration under
cached boot replaces stale grants with closed defaults; it does not break legacy
boot or revive cached opt-ins. Tests may override config after bootstrap normally.
This is trusted application PHP, not a loader for request input or remote files.

An uncached boot reads PHP config files in Laravel LoadConfiguration before
AppServiceProvider registration. Valid uncached configuration remains supported;
PHP syntax damage at that earlier uncached phase is outside this provider's error
boundary. Release qualification must lint the static PHP and retain rollback
custody. This narrow change does not intercept framework-wide bootstrap errors.

## Local qualification and scope

NewsletterEditorCachedConfigTest boots actual LoadConfiguration,
RegisterProviders and BootProviders with a nonce-owned synthetic cache and the
existing AppServiceProvider. It proves missing-key recovery, replacement of stale
cached grants, strict defaults and malformed-input refusals, preview-only versus
explicit preparation, valid uncached boot, post-bootstrap overrides and exact
preservation of every other cached value and the cache file's bytes. Fixtures
include synthetic SMS and resolved env-style values, never production config.
The normal test base guards all database aliases to in-memory SQLite; this
bootstrap test uses only a mock auth Guard and no database or mail transport.
All fixture cache/config/provider-manifest files are in an exclusively owned
nonce directory and removed exactly on teardown, with an absence assertion.

The global provider change requires the full PHP suite plus focused cache and
preview-only tests. Renderer compatibility is separately tested with ordinary
npm-installed node@24.22.0 and the existing locked renderer dependencies and all
45 Node tests. Runtime/version, original logs, native terminal records, exact
source/diff bindings and independent review live in the revision9 evidence
packet under K:/AI_docs_tmp/nuhet-3967-editor/rev9.

This is LOCAL qualification only. No production Node installation, cache writer,
config rebuild, deployment, migration, pilot activation, real send or client
access is authorized by it. Company1 remains off. The three previous Oracle
allocations and all original stop/deadline/claim histories remain closed.