# #3416 gateway-format corrective release - 2026-10-30

## Current scope and gate

Jonathan explicitly authorized "Publish, run CI and deploy the fix". Publication, CI, merge and code-only deployment are authorized. Recovery of the 55 retained customer messages remains excluded: no release, replay, reclassification or customer email is included. Root pane p_b1e3a620727f owns this release and the open card through its next real acceptance gate.

PR1476 is merged at de8644514e66125d21fce71016383ca94898c074. PR head6f04ecb2da5f4310337bda91d593c1717d66a6f7 passed GitHub run41057393860:120 tests626 assertions, PHP8.3.36, with only the pre-existing PHPUnit XML deprecation. This report supersedes the earlier correction receipt's pre-publication state. Exact release-variant CI and production activation are the next gates; neither is claimed by this preparation record.

## Production compatibility and custody

Production /var/www/html on host Nuhet (post.nuhet.se), user nuhetftp, is branch master at29a0ebd79f975cbe4cf93bd98d433a0d47aaa186. It includes separate compatibility work and must not receive unrelated GitHub master changes. Root created /var/www/nuhet-3416-release-20261030, release/3416-formats-20261030, from this exact production commit. Root owns cleanup. The shared checkout and other agents' work are preserved.

Release source is the reviewed correction70b640187e1fcdced9befab4625678c0530a680d with only the existing production FetchBounceStats suppressor provenance arguments preserved. The compatible call passes original sendout/stat IDs; its suppressor supports seven parameters. Production's version.json is bumped2.4.0 to2.4.1. No migration, dependency, service, cached configuration, profile setting, UI or recipient-data change is included. Never run config:cache.

Runtime file SHA-256:
- app/Services/Mail/AutomaticReplyClassifier.php b1697ce7b384ec8358833d93f74d692545bfde1cdd33782b39e7610df023916e
- app/Services/Mail/AutomaticReplyCorrelation.php 5e1936cf2f3dd9860e927f358127cf04bfd75182533240d88eb6848a874e45c1
- app/Console/Commands/FetchBounceStats.php 14f155496b35838197f6f26066d8d05d61a38c3b99c589961d9e909de0096cee
- version.json 6d3ae2f54d9b6449614933a550b07ecbda554f133ae87c9925b53f10023999f7

Fresh protected production state before deployment:
- config/feedback.php e85542d41a93fe62a07c7fee096188a9582929c9aae4b527b99e7fff76d7d49a
- config/newsletter_editor.php 35fdef2a3da1ba7ef9d41e752745df3a6f945953e40fcbc0444656304d75fa87
- git diff --binary SHA e95a2716c0dc05d7b23770c25a4bd4737aa4879b70eed18abd8edca71e9175aa
- git ls-files --others --exclude-standard -z SHA255fdcd91405a64ee402fd791d984cf38c40739b39ceecd13c8fc12743846b63
Untracked top-level paths: .config/, .local/, .node-gyp/, .nvm/, .pyenv/, .siege/, app/Actions/, snap/, storage/framework/turnstile-3804-config.lock, tmp/, tools/.newsletter-renderer-release-2957/. These and both dirty tracked configs are preserved; no reset, clean or stash is authorized.

Deployment plan: publish this compatible branch; manually dispatch the reviewed mail workflow at its exact head and watch exact CI through Xherd. Create and verify a Git bundle containing only productionHEAD..releasebranch. Retain an exact four-runtime-file reverse patch locally and archive those old four files remotely before ff. Native SFTP uploads the bundle to /tmp; native SSH verifies SHA, required base and advertised branch head. Immediately before applying, guard production HEAD, target old hashes and both protected config hashes. Pull --ff-only from the verified bundle branch. Do not invoke FetchBounceStats, migrations, manual mail or service restarts. Verify fresh Git/source/version/config hashes, PHP lint, public HTTP/assets and held-row status. A rollback is a new narrow reversal, never reset/clean of the compatibility branch.

## Exact release-variant qualification

Local PHP8.3.31 / PHPUnit11.5.56 / MariaDB10.6.22. Composer lock and dependency set are identical to the accepted source candidate; vendor was copied into this isolated worktree. App runtime is not connected to production. The existing focused suite passed120 tests628 assertions, terminal exit0. Native wrapped-DSN integration passed1 test14 assertions, terminal exit0. Request20261030-134740-33828-8101c700, session37451 reconciled to terminal completion. Native test now creates the three actual provenance columns and asserts sendout10/stat100/recorded_at, in addition to real separate main/stats connections, cross-schema FK, company deletion blocking and postdeletion no effects. Native source SHA e8d4bc4b6e3446adec043a660e493b5e5b496814fb815029d4061d110b63fb26.

Actual log files under automatic-replies-3416-format-evidence-20261030:
- release-mail-suite.txt SHA13b9301e0fbfea6a9efccb2b58e5a85415dc9d53c1f9a87b673064def9482c88
- release-native-dsn.txt SHA f17a740aaa81f0d7b143183f022c6fae241f195003ac98a6285f69cc615faa53

Fresh schema-prefix count0; five changed PHP files lint and diffcheck pass, request20261030-134910-18144-88b26b2f. The source-only first compatibility review found no defect. Final related independent review of the enhanced native test, receipts and release plan is VERIFIED: the reviewer fresh-read the exact source, native assertions and both hashed logs; no blocking issue remains. Root checked those bindings and accepts the candidate. One independent GPT-6.1 Sol background reviewer was used and authored no implementation changes. Primary review remains accepted for unchanged source hashes. CI will be separately bound to the final release commit before deployment.

## Incidents and boundaries

Historical correction outcome count remains4/10; release/PR validation has no product failure. A runner call using unsupported --cd failed before execution (request20261030-134536-92332-d8dfc1d4); fixed to the documented bash -lc path and vendor copy completed session53275. A standalone schema-count PHP one-liner used invalid SQL quote escapes after successful cherry-pick/file copies (request20261030-134838-77048-2c8d8c88). Root reconciled actual state and replaced nested quoting with a literal linted PHP script and bound query, returning0. These are execution incidents, not product failures; recovery began12:45UTC with13:15UTC limit and resolved12:49UTC. One GitHub read overlapped the owned copy; both returned and this was corrected by serializing subsequent WSL operations. The shared runner was never bypassed. A bounded SELECT with an incorrect optional error-column name failed; the minimal supported query succeeded and confirms55 review/forward/zero-attempt rows. No database write occurred.

All customer messages remain held. Predeployment aggregate: company19812 has exactly55 review/action forward/forward_attempts0 rows. Further actual customer receipt needs separately approved exact recovery or new customer traffic. Keep card #3416 open/In Progress/sole Jonathan and retain its watch. Measured active release time is running from12:34UTC; passive waits will not be charged.

## Maintenance

FetchBounceStats.php remains a large mixed-responsibility command (release variant891 lines). Deferred split: extract DSN selection/proof then spool retry/quarantine behind the existing command interface, preserving retention/provenance/replay safeguards and regressions. No broad refactor is included. Existing shared .phpunit.result.cache, company-6-renewal recovery and tmp paths are untouched. All new application source is task-owned and committed before publication; no unrelated code is included.
