/legal/changes/full page and its English and Vietnamese variants show proposals
with no effective date and with noindex metadata. The page begins with the notice that
updates are not yet in effect. Each proposed document keeps its own draft footer and
links to its currently effective page. One page heading contains document subheadings.
These pages do not change acceptance records or publish a newly effective agreement.
Regression coverage lives in packages/legal/src/legal-revisions.test.ts (historical
SHA-256 content and literal footer assertions), apps/web/cloudflare/native-legal.test.tsx
(canonical rendering), and apps/web/cloudflare/legal-changes.test.tsx (localized notices,
proposal footers, current-version links, headings, dates and indexing).
What changed presentation and publishing gate
The EN/VI/legal/changes pages default to the approved Variant 1 notice that
updates are not yet in effect. packages/legal/src/notice.ts keeps legalNotice
unpublished with both dates unset. Only the release owner may enable the notice
and set N and N+30 after the user’s explicit go. Enabling presentation does not
activate contracts or send email. The legal reviewer owns all legal wording; the brand reviewer owns brand and
contrast acceptance. The legal-review fixture and snapshots retain both translations,
including the final AUP/community safety-restoration row. The separately owned
legal-aup-community-restore lane must land its matching clauses before notice
publication. Transition clauses and archived-version links also need legal and release
acceptance before that later publication. Never introduce a language-prevails rule.
The binding notice starts at the top of the content and is never collapsible.
The notice’s audience and timing list stays with it; the summary table and its
non-binding disclaimer share one neutral aside. No summary may replace clause
text. Internal legal-review annotations are omitted from proposal presentation;
missing summaries render no placeholder. Proposed/not-yet-in-effect status and
draft-revision footers remain. In-force text and footers are unchanged. Proposal routes retain
noindex. This PR changes neither effective agreements nor acceptance records.
All source sections have stable IDs; the pure package diff matches those IDs and
retains exact sentences and whitespace. Redlines use strike-through removals,
underlined additions and localized screen-reader labels. Print uses expanded
inline redlines, link destinations and clause break protection. Mobile contents
and desktop sticky navigation share section anchors, retained by the EN/VI switch.
The scope uses white theme tokens, foreground headings/underlined links, Inter
with Noto Sans fallback, neutral summaries and AA status text. Brand blue is only
a navigation accent. The site chrome retains the official unmodified brand mark.
Regression coverage: packages/legal/src/legal-diff.test.ts checks the legal-review fixture,
notice states, IDs and exact reconstruction; apps/web/cloudflare/legal-redesign.test.tsx
checks both locales/states/views, binding visibility, summary grouping, screen-reader
labels and print rules. The existing legal route tests keep indexing and full
proposed-text/footer coverage. Hosted builds, the brand reviewer’s visual/contrast sign-off and
the legal reviewer’s final publication acceptance remain separate gates.
Unpublished state, publish gates and theming
WhilelegalNotice.published is false the page is exactly the Variant 1 copy:
no legal notice sentence (including the non-binding line) renders, the proposed
version block shows only “Proposed” and “Not yet in effect” (no version id, no
date), and no draft marker is shown. When published, the block shows the real
Terms version (without the internal draft suffix) and the notice date.
The change list and diff cover Terms, Privacy, DPA, SLA and Subprocessors only.
Acceptable Use and Community Guidelines are excluded because their in-force and
proposed clause ids do not pair, which would label every clause “Removed”;
re-enable after the clause-restore work lands and the legal reviewer approves the wording.
Publishing also requires archiveLinks per locale in the notice config; the
{ARCHIVE_LINKS} placeholder is never rendered literally and getLegalNotice
throws when the link text is unset. The legal reviewer approves the real archive URLs first.
The in-force footer decision (remove or keep) is still open; the proposed footers
must match it on publication day.
The scope uses the shared theme tokens directly (no local redefinition), so dark
theme works; the navbar brand mark switches by theme, and client controls receive
their strings as props instead of importing the message bundles.
Pinned November mobile proposal
Two unpublished proposals share one mobile privacy section, including the Firebase installation identifier disclosure.upcomingMobilePrivacyRevision identifies
2026-11-02-mobile (A): the current in-force privacy document plus only
privacy-mobile, without the September privacy changes. Its effective date D is
null until the fixed mobile build ships. upcomingLegalRevision identifies
2026-11-02 (B): the September draft plus that same mobile section and processor
rows, effective 2026-12-02; B supersedes A.
The changes pages show the two entries with the approved bilingual section F copy.
A’s added section and summary do not claim Google has joined the processor list;
the existing in-force privacy text remains intact. Full proposals show A’s privacy
text separately from B. The notice remains unpublished. Publishing the notice
requires a real pinned mobile release date; missing, placeholder and invalid dates
fail before rendering, so published pages cannot show a pending date.
The September 2026-09-13-draft revision and all in-force documents remain unchanged.
No DPA annex sentence is added. Analytics and crash reporting require Allow
everywhere; push requires sign-in and push enabled independently of analytics.
packages/legal/src/mobile-privacy-revision.test.ts snapshots A, checks exact
in-force-plus-mobile composition, identical A/B mobile text and publication guards.
mobile-revision.test.ts pins the September and B revisions and checks the bilingual
B/C and F copy. Candidate legal-changes tests verify both entries, full text and
pending-date exclusion on publication.
Policy-change notice email
Publishing the notice still sends no email. The 11 Nov 2026 policy-change notice goes out only through the staff-only routePOST /api/v1/infrastructure/policy-notice in Infrastructure. It requires a verified
@tuturuuu.com staff session (isVerifiedTuturuuuStaffSession) that is a root
workspace MEMBER with manage_workspace_roles, called from the same origin
(an Origin header equal to the route’s own origin). No credential is pasted: the route
uses the server’s service role, and EmailService.sendInternal sends through SES
with the root workspace’s workspace_email_credentials row. From is the root
sender; Reply-To is legal@tuturuuu.com.
- Recipients (user decision “notify A”): owners (creators) and administrators
(MEMBER with an enabled
adminpermission through a role or member defaults) of non-deleted, non-personal (business) workspaces. Only confirmed, active, non-anonymous accounts that are not banned are included. Each address gets one email, however many workspaces it owns or administers. Personal-only accounts, members, students and parents get no email; they are covered by the in-app notice instead. - Suppression: every suppression is honoured, with no bypass. That covers hard
bounces, complaints, every
email_blacklistentry (do-not-email, domain blocks) and the global “Tuturuuu system emails” unsubscribe (recipient_unsubscribed). The email service’s own blacklist check also runs on every send. - Order of operations: the request defaults to a dry run. It returns counts only:
eligible, suppressed, already sent, previously failed, and (for the record) the
confirmed accounts excluded because they are not business-workspace owners or
admins. A test-list send (up to five addresses) needs a completed dry run. Test-list
addresses must be
@tuturuuu.comor listed in the server’sPOLICY_NOTICE_PREVIEW_ADDRESSES; the request cannot widen that list. A live send needs a completed dry run and a sent test-list delivery for the same notice version. Real sends also need the exactconfirmtoken:send-test:<version>orsend-live:<version>. - Ledger:
private.policy_notice_runsandprivate.policy_notice_deliveries(service role only) are keyed by notice id, notice version and the SHA-256 of the address. They store statuses, timestamps and the SES message id, never an address or message content. A recipient’s row is claimed before dispatch, so retries and restarts never send twice. Unknown outcomes are never retried, and there are no reminders. A notice goes out live in one version only. Any change to the content, subject, Reply-To or audience makes a new version, which needs its own dry run and test-list send. Thebouncedandcomplainedstatuses are set from SES notifications and count towards the automatic stop.recipient_hashis an unkeyed SHA-256, so the ledger is personal data: 90 days after a notice’s last activity, runselect private.policy_notice_purge('<notice id>');by hand. It refuses earlier and is not scheduled. - Pacing and stop: each call sends a bounded batch: by default 2 per second,
up to 200 per call, within 240 seconds. Repeat the call until the result says
done. Before each batch, the run stops itself when the bounce, complaint or unknown-outcome rate crosses its threshold (defaults 2%, 0.1% and 2%, measured over at least 100 attempts, a fixed value that requests cannot change).
apps/infrastructure/src/lib/policy-notice/template.ts. It carries
Cora’s final v4 wording, with inline styles only, no images and the phone number as
plain text. Regression coverage:
template.test.ts (the SES provider’s own sanitizer, Reply-To, the links allowlist,
no images and v4 parity), sender.test.ts, mailer.test.ts, the route’s
route.test.ts, and apps/database/scripts/policy-notice-ledger.test.mjs (the
migration and static rollback against PGlite). No email has been sent by these tests.
The in-app notice for accounts that get no email is separate. legalNotice only
renders on /legal/changes; no signed-in banner reads it yet.