# Company1 private preview readiness - #3967 revision8

Status: LOCAL READINESS PACKET, not activation or release approval. Root accepted
runtime candidate7bf92730ad5e27571b0417e8b654dd1346ea2546, containing accepted
316174719085440548a6df255e35b3b3faaa8379. Readiness checkpoint e59c3f49 changed only
two synthetic JSON fixtures and this plan. The subsequent LOCAL revision8
amendment adds the separately opted-in preparation gate described below; it has
not been activated on any live host.
Proposed host is https://post.nuhet.se, company1. Do not request another arbitrary
newsletter ID or a different staging URL merely to prepare this preview.

## Corrected inputs and concrete local example

Newsletter321 is explicitly rejected by Jonathan for dead images and EXCLUDED.
Earlier JSON discovery did not establish image health; preserve that history.
Company1 references2952/2960 were inspected through existing read-only NuhetMCP:
2952 has6 legacy blocks (five text plus socialmedia);2960 has7 (five text, one
image, socialmedia). No content, customer contacts, media URLs, tokens or database
dumps were exported or committed. Their images were NOT fetched or qualified.
Only this structural reference informs the controlled example; it is not a
conversion of either real template and is not three-real-template acceptance.

The fixtures tests/Fixtures/newsletter-editor/preview-pilot-sv.json and
preview-pilot-en.json use the existing seven supported types: title, paragraph,
image, section, button, divider and spacer. They contain invented QA copy,
canonical reserved HTTPS test links and the known repository-owned Nuhet logo.
There is no new HTML/video/social block, merge token, import, provider or upload.
Ordinary social/video example links do not demonstrate real video/client support.

Review artifacts: K:\AI_docs_tmp\nuhet-3967-editor\rev8\preview\preview-sv.html
and preview-en.html. The pinned renderer compiles the original strict documents.
For OFFLINE REVIEW ONLY, one exact test HTTPS image reference is mapped to a
local byte-identical copy of public/images/nuhet_logo.png. Original compiler
HTML/text and hashes are retained separately. This mapping is not server media
canonicalization, a real library selection, immutable delivery or saved-output
byte-equivalence proof. No private media is fetched. These files are deliberately
not imported into production or treated as real prepared newsletters.

Existing installed headless Chromium verified actual image completion/natural
width, Sv/En wording, reserved HTTPS links, no overflow at1440x1100 and390x844,
no form/script/iframe/video and no HTTP/network requests. All four final views
were opened at original size. A long initial Swedish heading wrapped mid-word;
the QA wording was shortened and only affected Sv rerendered; initial artifacts
are retained. No existing app UI before/after evidence, full suite or build was
replayed for freshness. Prior accepted1262/10065, focused2/26, MariaDB1/70,
Node45/locale79/build146 and reviewed UI/MIME/retention evidence retain only their
unchanged scopes. The offline artifact does not newly prove create/save/login,
OracleMySQL8, real TLS, inbox rendering or full phone authoring.

## Existing target and local capability observations

Root's2026-10-19 NuhetMCP observation: production is
MySQL8.0.34-0ubuntu0.22.04.1. Local accepted tests were MariaDB10.6.22, not Oracle
MySQL8. Root's approved read-only GitHub GET074246-109420-e108059e completed0,
master2ea8f27ebbed72f979c2bab588dc14806a1e8078/date2026-10-15T05:40:35Z.
This is upstream observation, not production HEAD or release authority.

New bounded NuhetMCP metadata SELECTs: all five editor tables are absent, and
newsletters.editor_format/editor_output_id are absent. Existing newsletters has
id/company_id int unsigned, version varchar(16), json longtext and global text.
Read-only MCP session/server metadata also reports sql_mode=NO_ENGINE_SUBSTITUTION,
character_set_server=utf8mb4, collation_server=utf8mb4_0900_ai_ci,
transaction_isolation=REPEATABLE-READ and lower_case_table_names=0. Capture each
actual app/worker PDO session too; do not assume the local strict=true fixture
configuration matches every target consumer. No rows/schema/config were changed.
This confirms additive work is still needed;
it is not a complete production schema/FK/index/migration-ledger inventory.

Owned-host preflight074756-43568-11bd65ee completed0: clean7bf branch/cwd and
ancestor316; PHP8.4.26/Node25.8.2; existing local server process mariadbd.
Docker default endpoint is canonical local unix/run/docker.sock, daemon reports
Docker Desktop29.4.1. Read-only running-container metadata shows nine existing
RPG/PostgreSQL17 and timeline/MariaDB11.4 containers, no OracleMySQL8. No other
container environment, credentials, accounts, data or remote context was probed.
Editor-owned docs/tests identify no already-authorized Oracle8 test endpoint.
Result: a suitable existing OracleMySQL8 capability was NOT established. No
Oracle schema/test was allocated, no default credentials guessed, no image
pulled, container/service/runtime started or account/grant/port changed.

## Approved isolated OracleMySQL8 qualification setup

Recommend one disposable local Docker Official Image, exact target engine patch:

- Software: library/mysql:8.0.34, linux/amd64 (Oracle MySQL Community8.0.34).
- Immutable platform image: mysql@sha256:8b8835a2c32cd7357a5d2ea4b49ad870ff519c8c1d4add362803feddf4a0a973.
- Tag index digest: sha256:59ae56ac42c6c09aebd9a7bb8d9f07a5fdf836f956e050946f85bbfa29d0a080.
- Official metadata: https://hub.docker.com/v2/repositories/library/mysql/tags/8.0.34
  and https://hub.docker.com/_/mysql/tags?name=8.0.34 . Platform download165869861
  bytes (about158.19MiB). Metadata was read; image was NOT pulled.
- Official lifecycle/storage guidance:
  https://dev.mysql.com/doc/refman/8.0/en/docker-mysql-more-topics.html . The image
  uses Oracle Linux, not the production Ubuntu package; qualification establishes
  Oracle8.0.34 SQL behavior, not byte-identical production OS/runtime topology.
- Runtime: existing verified local Docker default context only, one container
  nuhet-editor-3967-r8-<16hex>, labels for exact pane/task/nonce, no restart policy,
  no privileged mode,1CPU/1GiB memory. Expected active lease at most30minutes,
  bounded startup/SQL timeouts and cleanup on pass/fail/interruption. Proposed
  server settings match observed utf8mb4/utf8mb4_0900_ai_ci,
  sql-mode=NO_ENGINE_SUBSTITUTION and lower_case_table_names=0; verify effective
  test app PDO session modes explicitly rather than silently keeping MariaDB
  strict=true assumptions.
- Storage: one NEW nonce-owned named volume nuhet_editor_3967_r8_<16hex>_data,
  mounted only at /var/lib/mysql in the existing Docker Desktop data backend.
  Its physical host storage must be verified outside E: before creation; do not
  move/change Docker storage or a shared service as part of this test. Budget4GiB
  free headroom (not a hard volume cap),
  no customer/project/parent storage mounted. No existing volume reused.
- Connectivity: proposed host127.0.0.1:33967 -> container3306, only if later exact
  free-port and localhost reachability checks pass; do not publish33060 or bind
  0.0.0.0, change shared networking or try another host endpoint. Default local
  bridge, generated disposable test credential; no existing account credentials.
  Approval must explicitly cover this new container's initialization/test-root
  access, not any shared account/grant. Use MYSQL_ROOT_PASSWORD_FILE with a NEW
  exact0600 temporary credential file under /run/nuhet-editor-3967-r8-<16hex>/,
  no password in command/audit/log/env output. New-container bootstrap would need
  MYSQL_ROOT_HOST=% for this isolated TCP test-root login; that explicit ephemeral
  account initialization also needs approval. It never changes a shared account.
  Docker Desktop regular-file bind accessibility and effective loopback binding
  must be qualified before any app connection; abort if not established.
- Guarded test plan after setup approval: persist exact container ID/image digest/
  volume label/nonce, verify version8.0.34/expected container hostname+server UUID,
  no administrative selected DB. Create ONLY nuhet_editor_3967_r8_<16hex> after
  exact absence check/receipt; no IF NOT EXISTS or schema-prefix scans. Every app
  PDO/alias verifies endpoint/server identity/exact schema before writes; InnoDB,
  scratch logs/disks, no real mail/network transport, bounded waits. Reuse the
  real three migrations, representative legacy-row and selector/flag-rollback
  observables. Adapt the existing socket guard explicitly to this owned TCP
  endpoint; do not pretend the MariaDB harness already qualifies it. Consequential
  new harness/SQL proof requires the applicable fresh read-only solHigh reviewer
  assigned by root for that distinct unit. The revision8 guard has its own one
  fresh reviewer; do not duplicate or imply future setup authority.
- Cleanup: exact owned schema drop and absence, disconnect all PDO/children,
  exact container stop/remove, exact owned volume remove and inspect absence,
  credential file removal, loopback port/process absence; retain nonsecret proof.
  No prefix pruning, force-removal, other containers/services or parent DB. Keep
  image cache only if already shared/needed; otherwise removal of the newly
  acquired unreferenced exact image is part of the approved cleanup, never prune.
- Cost: no new paid service/account/license purchase proposed, using existing
  Docker installation; about166MB download plus local image/data storage and
  temporary1CPU/1GiB load. Existing license/host authority is not expanded.

Jonathan directly approved this exact isolated test on2026-10-19: "Approve
isolated MySQL test". Root recorded the complete scope under "2026-10-19 - USER
APPROVED exact isolated OracleMySQL8 test and cleanup" in its authoritative2957
recovery. Test authority is cleared, including the NEW ephemeral credential-file
and isolated-container bootstrap described above. No existing credential lookup
or shared account/service operation is granted. Reuse the existing revision8
reviewer for related SQL/harness/proof; do not appoint another reviewer.

Fresh setup preflight2026-10-19T06:45UTC: approved default context resolves to
unix:///var/run/docker.sock (canonical /run/docker.sock), but docker info cannot
connect. Read-only Windows process-name diagnostics found no Docker Desktop or
com.docker.backend process. Socket existence alone does not establish a daemon.
Port127.0.0.1:33967 is free; source remains clean f02d19b3. No image pull,
container/volume/schema allocation, password file or runtime lease was started.
No daemon start/repair or unchanged connection retry was attempted.

Subsequent root read-only parent-chain qualification resolves the actual default
Docker data VHDX through C:\Users\zerav\AppData\Local\Docker\wsl\disk
(junction) to N:\Docker\DockerDesktopWSL\disk\docker_data.vhdx. N is fixed NTFS
on physical disk2 INTEL SSDSA2M080G2GC SATA; ancestors are not reparse points.
Fresh author observation07:05UTC has14,953,652,224 bytes free, above4GiB budget.
This is outside E. The file's incidental old Target field is not canonical
parent-chain resolution. No storage relocation/settings change was performed.

Jonathan separately said "Start Docker Desktop"; root launched it ONCE and
qualified the default local engine. Author090240 revalidated engine29.4.1,
docker-desktop/linux/x86_64, DockerRootDir /var/lib/docker and canonical
/run/docker.sock. This resolves the earlier stopped-daemon incident; the original
isolated test approval was already cleared. No shared service repair/restart or
other-project container mutation was performed.

First actual Oracle8 runtime b24b935fe101397c began07:09:34UTC. Exact pinned image,
owned volume/container labels and immutable image ID, file readability,
127.0.0.1:33967 binding,1CPU/1GiB, hostname and server UUID qualified. Actual server
8.0.34/NO_ENGINE_SUBSTITUTION/utf8mb4_0900_ai_ci/REPEATABLE-READ and every Laravel
alias's effective session metadata were recorded. The inherited MariaDB fixture
then failed1101: its literal TEXT default is not valid Oracle8 DDL. This was
before editor migrations or acceptance checks; it proves engine capability,
not a successful upgrade. The corrected Oracle-only fixture uses source-backed json LONGTEXT/global TEXT
without defaults, while preserving the existing default fixture branch.
Actual affected default-path proof passes1test/16assertions with exact owned
SQLite/media cleanup. The actual corrected Oracle upgrade is still unproven.

The first exact schema was dropped and verified absent. The controller stopped
and removed the container, then hit a PHP empty-array/Python-map serialization
error during cleanup bookkeeping. Exact separate091046 cleanup verifies the
owned volume/password directory/new image reference absent and33967closed.
No real sends or shared data/config/settings were touched. Original failed logs,
allocation and cleanup receipts are retained in the revision8/oracle8 packet.
Both fixture/controller errors remain execution incidents, not passing checks.

Current recovery gate: the originally approved single actual runtime has been
consumed. No replacement is silently allocated; its controller refuses that
case. Root explicitly reconciled capacity under r8-oracle8-replacement-b24b935f-20261019:
maximum2 ACTUAL attempts, ONE active, second exclusive nonce only after exact
first-resource/watchdog absence, retaining ORIGINAL07:39:34UTC hard runtime and
07:38:02 setup expiries. No renewal or third allocation. The unchanged pinned
scope and generated credential authority apply only within those limits. Same existing revision8 reviewer covers
related source and actual SQL proof; no new reviewer or duplicate guard audit.

### Second actual runtime outcome and present qualification limit

Replacement bbe9584fcefcbe27 used the ORIGINAL1792395574 lease expiry and
r8-oracle8-replacement-b24b935f-20261019 authorization, started07:19:43UTC and
completed exact cleanup07:20:20UTC. Actual test1/58 assertions reached three
additive migrations, legacy row/render comparison and draft savedrevision2/
exact preview. It then failed1054 before the refusal/full-prepare/rollback
checks: the snapshot helper ordered the assets table by nonexistent id instead
of its handle primary key. No complete Oracle8 workflow or pilot readiness is
claimed. Source-bound failed logs and receipts are preserved, not relabelled.
Schema DROP/absence, fixture/container/volume/password-directory/new-image
reference absence, closed33967 and watchdog exit were all recorded. Oracle
Community8.0.34 on OracleLinux is not the production Ubuntu topology; recorded
Laravel sessions are not proof of production web/worker sessions.

The snapshot is corrected to explicit real primary columns, asserting column
existence before querying so SQLite's quoted-name fallback cannot hide this
bug. The same helper now drives preview-refusal tests, with an asset-only
mutation counterexample. Actual affected SQLite tests14/444 pass. Reviewer also
identified a slow-setup absolute-expiry gap: each setup subprocess and completion
now checks/caps the original07:38:02 deadline; safe cleanup is exempt. Five
controlled-clock/mapping counterexamples pass without Docker or SQL.

Both actual runtime attempts are consumed and absent. NO THIRD runtime is
allocated or authorized by this plan. The corrected snapshot and remaining
Oracle8 refusal/full-prepare/rollback observables need a separately resolved
root recovery scope; this source/check packet remains PARTIAL. Same existing
reviewer verifies fixes and actual failed-run/cleanup binding; no second audit
or fresh runtime is used merely to reproduce evidence.
## Exact post.nuhet.se/company1 preview-pilot release proposal

The following is a PROPOSAL, not permission or an executed command sequence.
The accepted7bf pre-guard runtime already includes parent316. The amended local
guard candidate must be fixed, reviewed and accepted separately. Do not deploy
it as a standalone
editor patch onto an unverified production HEAD or silently select a new base.
Root must verify actual production HEAD and accept the combined target/diff.

The original accepted7bf exposes Prepare to opted-in users with BOTH
newsletterCreate and newsletterEdit. The subsequent authorized LOCAL amendment
adds strict static newsletter_editor.prepare_company_ids, default []. The
existing enabled=false/company_ids=[] defaults remain unchanged. Preparation
requires membership in BOTH company lists, enabled===true, existing HTTP roles,
actor/context/tenant/current-saved-revision and intent checks. Central
PreparedOutput independently refuses before retention/output/staging work.
There is no actor-only pilot, schema switch, ENV flag or general mode framework.

The server derives canPrepare from the company configuration. Preview-only
hosts hide Prepare and show the same concise Swedish/English explanation used
for HTTP/service403. Existing role checks still apply separately. Draft
create/save/reopen/history/private saved preview remain available. Previously
prepared readers/assets/consumers are not gated by the new list; existing
output history retains its existing authoring/role boundary. Removing prepare
permission does not erase output/history or source edits. Existing authoring-off
reader behavior remains unchanged; do not promise that editor-history routes
are public or available after the editor itself is disabled.

Proposed later company1 private-preview configuration, only after exact release
approval: enabled=true, company_ids=[1], prepare_company_ids=[]. This is all
currently permitted company1 users, not Jonathan-only. Preparation remains
server-denied regardless of DOM edits/direct POST/service invocation. Existing
legacy newsletter/send permissions remain unchanged. No live configuration,
migration, feature activation, preparation or send has been performed.

Ordered release gates, only after separate target approval:

1. Accept local Oracle8 results and the preview-only boundary. Fix the exact
   release commit/base after approved integration;7bf is the accepted pre-guard runtime.
2. Read-only target preflight through existing authorized routes: NuhetMCP for
   exact schema/index/engine/charset/collation/migration ledger and company1/actor
   role checks. Do not read grants/account secrets. Existing approved deployment
   access is needed for HEAD/PHP/extensions/Node+process execution/build hashes,
   config-cache state, canonical origin and persistent disk path/owner/free space/
   symlink checks and active consumer versions. NuhetMCP cannot prove filesystem
   or runtime state; root brokers this missing access if no route already exists.
3. Record exact approved backup IDs and tested restore method for application,
   target DB/schema and persistent newsletter storage. Take approved target
   backups before writes. Stop on unrecognized schema/partial prior migration,
   role/runtime/storage mismatch, foreign state or ambiguous ownership.
4. Deploy approved compatible code/reader/consumer/assets with BOTH authoring gates
   OFF. Apply exactly the three additive migrations using the target's supported
   migration runner/bookkeeping, in140000 drafts/revisions,170000 copies,220000
   outputs/assets/nullable newsletter identities order. Capture actual target
   schema/index results. Stop and inspect partial failure; no blind rerun or down.
5. Verify canonical https://post.nuhet.se and the resolved persistent
   storage_path('app/newsletter') disk, private library paths and owned raster
   delivery route semantics. Do not claim target resolved absolute path/rights
   from local config. Preserve compatible readers and any long-running consumers;
   no restart/runtime changes inferred from deployment approval alone.
6. Verify authenticated pilot actor really has effective company_id1 plus
   newsletterCreate/newsletterEdit (and approved media read permission if needed).
   Existing context binds actor/company and CSRF; do not issue synthetic sessions
   or change roles/accounts on the target. Verify default-off/unselected companies
   retain their existing route/list workflow without customer data writes.
7. Only with exact activation approval, static config would be enabled=true and
   company_ids=[1], prepare_company_ids=[] with the reviewed server guard. There
   are NO NEWSLETTER_EDITOR_* ENV flags or DB editor switch in current code.
   Root owns any config-cache rebuild/consumer coordination authority.
8. Execute only approved create/save/reopen/edit/private-draft-preview checks on
   exact company1 QA drafts with a recorded ownership/cleanup ledger. Use verified
   own-library target images; offline example's reserved test image URL must NOT
   be imported unchanged. No Prepare, publication, sendout submission, worker,
   real email/SMS or inbox/client access is authorized by a preview check.
9. Flag rollback: disable enabled or remove company1 from approved IDs; retain
   compatible readers/consumers, all editor schema/drafts/history/output identities
   and immutable assets. No draft/copy down or old-binary reinterpretation. Inspect
   exact known draft state on ambiguity; no automatic replay or customer cleanup.

Still missing: actual production HEAD/approved combined target; Oracle8 local
proof; root acceptance of the local guard; target PHP/Node/process/
filesystem/config/consumer evidence; exact pilot actors/content/draft ownership,
backup/restore and target migration/config/deploy/activation authority. These are
concrete gates for root, not a blanket demand for another staging host.

Full-card real-template/social/video, ten-client/light-dark/blocked-image matrix,
real send/access/content/hash/count/cleanup and final phone authoring/pilot/release
acceptance remain OPEN. Desktop/tablet authoring with phone saved preview is only
the existing provisional local boundary. Company1 selection does not waive them.
## Local amended guard verification and operation

The new configuration has no ENV binding. Existing full editor fixtures must
explicitly set prepare_company_ids to their exact synthetic company; preview
fixtures leave it empty. PreparedOutput::canPrepare is strict on enabled and
integer membership in both lists and fails closed for missing/null/scalar
preparation lists. The service refusal precedes even CompanyRetention resolution,
so bypassing HTTP cannot allocate/stage an output. HTTP retains both permissions
and actor context before any existing output operation. Existing output base,
private output preview, anonymous asset and consumer methods are unchanged.

Focused test: php vendor/phpunit/phpunit/phpunit
 tests/Feature/NewsletterEditorPreviewOnlyTest.php (one command). This exercises
missing/empty/foreign/string/null/scalar preparation lists, existing authoring
opt-out, HTTP and direct service denial with exact DB/filesystem snapshots,
role/context counterexamples, localized draft lifecycle, explicitly opted-in
success and existing output rollback readers. HTTP middleware keeps its real
retention reads; only direct-service denial asserts no retention/staging entry.

Headless local integration: NUHET_EDITOR_ENTRY_MODE=after
 NUHET_EDITOR_VERIFY_LOCALE=sv node tools/newsletter-editor/verify-preview-pilot.mjs;
repeat with en. Before mode uses the task-owned physical e59 baseline
/var/www/nuhet-editor-preview-before-3967. Each run has exclusive 24-hex owner
receipt, all SQLite aliases/PDOs/disks pinned to its exact disposable root,
loopback PHP/TLS, real session cookie/CSRF/context and source-origin checks.
The test-only flag/footprint endpoints exist only in the explicitly launched
router; they are not registered in production. All external browser requests
are aborted. No actual test-send/final-mail endpoint is invoked by this verifier.
Production login, Oracle8, live storage, real templates, inbox clients and full
phone authoring remain unproven here. Root final acceptance and exact release
permission are still required before pilot activation.
Final local guard checks (2026-10-19, before independent acceptance): focused
13 tests/229 assertions, combined PHP1275/10294 (one existing PHPUnit config
deprecation), Node45 and host build pass. Actual Sv/En after runs pass at desktop,
820px tablet and phone; before captures use physical root-accepted e59 checkout
with App/helper source-origin proof. Both languages create/select an existing
owned library raster/keyboard-save/reopen, read two historical revisions and
exact saved HTML, refuse preview-only authenticated POST403 without footprint,
and prepare only after explicit full opt-in. Existing output preview/history
survive preparation opt-out; output preview survives authoring-off. DOM enabling
of the hidden control does not open its panel or issue a request.

The first new collectors had preserved launch/mock/API and navigation/barrier
failures; these are not passed product checks. Actual source-backed corrections
retain real middleware, Fetch semantics and SDK shadow-root locators. Final
collector serializes its one PHP worker's upstream requests and confirms all20
owned thumbnails decode before navigation. Final Sv/En fixtures/TLS/PHP/browser
close and exact owned roots are absent. No new SQL schema, Oracle container,
external browser/client, credential discovery or real transport was used.
Evidence: K:\AI_docs_tmp\nuhet-3967-editor\rev8\guard (fixed candidate/input,
full logs, exact captures, one four-slot comparison and source-bound records).
Prior unchanged SQL/consumer/client-plan proof is reused only for its stated
scope. The fresh guard reviewer and root acceptance remain distinct gates.
## USER-approved FINAL Oracle8 recovery (not pilot authority)

Grant r8-oracle8-final-20261019-074708 explicitly authorizes ONE new allocation claim, attempt3/max3/oneactive; no fourth or replacement. Accepted c47 app/UI stays unchanged. Preserve original receipts, max2 and expired windows as history. New absolute window07:47:08–08:17:08UTC (1792396028–1792397828), setup/identity by07:57:08(1792396628), test/runtime stop08:15:08(1792397708),2min cleanup reserve. Actual runtime maximum10min from firststart capped by absolute stop; SQL maximum120sec. All review/helper/setup/delivery time consumes this fixedwindow. Same reviewer control preflight BEFORE one allocation, then actualresult addendum. Current helper binds this exact grant and an exclusive durable-in-packet claim; any consumed claim or third prior runtime refuses further allocation. Same pinnedimage/defaultlocalDocker/N physical4GiB/127.0.0.1:33967/1CPU1GiB/new0600credential/allPDO+UUID/schema/InnoDB/ArrayTransport/exactcleanup constraints remain. No shared restart/repair/account/grant/CU/production/send/pilot scope. One failure consumes final allowance; no automatic replacement or deadline renewal. Company1OFF; wholecardopen.
