HTML field admission rollout
Status: implementation candidate; not a deployment record. Ship the field sanitizer with its transport reporting and model-field editor in the same reviewed release train. Deployment goes through the build host to the dev/testing deployment.
The storage type stays text (JSONB for translated fields). This change does not rewrite
existing rows or make previously stored HTML trusted. Every renderer must keep its own
safe reconstruction or sandbox boundary. A newly written value is admitted under its
resolved registry policy; merged translated values are also admitted. Raw fields remain
untrusted text, with sanitized=false and html_render_mode=sandbox in their description.
No new daemon, database extension, secret, permission or configuration flag is required. Do not bypass sanitation with sudo or user groups. Named email presets are unavailable for now; a refusal is not a reason to switch the field to raw HTML.
The diagnostic channel is attempt-local and is cleared at commit/rollback/reset. An API, import or job must transfer its reports before commit, publish only after successful commit, and discard reports from failed retries. Reports contain removal names/counts and sample node ordinals, not removed text or URLs. Excess diagnostic storage refuses the write explicitly. Do not enable a new consumer until its report delivery is verified.
On a validation refusal, keep the input draft or failed import row for correction outside logs; do not log the rejected body. Retry only after correcting the input or changing an explicit supported policy. A database/unknown commit outcome follows the existing recovery protocol, never a blind write replay. Rolling the application back does not restore content removed by an already committed write; use the ordinary data backup/recovery procedure if restoration is required.
Before release, test a clean edit, a removal with its diagnostic, strict refusal, required translated content removed to empty, savepoint rollback and raw-field display. Existing historical engine logs certify only their pinned source; focused host logs are kept with the release evidence. Product performance evidence remains deferred to milestone end under ADR 0065.