Guide

Configuration and safe defaults

Program administrators and operations staff who need a plain record of settings, missing-value behavior and safe defaults

Purpose

What this guide covers and what it does not cover

This guide inventories only the configuration constants that are present in the files in this site pack. It lists each default, what happens when a value is missing or invalid, and the corrected safe default to keep. No environment variable, secret, API key or signed-in workspace setting is present in any file in this pack. Signed-in app settings live in locked files outside this pack, and this guide does not list them or invent values for them. Do not add a secret value to a page, a script or a guide.

Use the matrix below when you review a change. If a value is missing, the safe behavior is to keep the feature unavailable or to show the static content that was authored, rather than to invent a permissive value. A change that would weaken a default in the corrected column should not ship.

Matrix

Configuration matrix for this site pack

Each row names a setting that is in this pack, its current default, its missing or invalid value behavior, and the corrected safe default to keep.

SettingDefault in this packWhen missing or invalidCorrected safe default to keep
Public request timeout12000 msNo reply within timeout: form keeps entries and shows a plain errorKeep 12000 ms and 0 automatic retries
Public request retries0 retriesTimeout or server error: no automatic retry, person tries again by handKeep 0 retries for a write that creates a request
Service worker timeout and retries8000 ms, 1 retry, 600 ms backoff, read onlyRegistration stops after retry, pages still loadKeep read only retry only, never retry a write
Field length limits by fieldName 200, email 254, phone 40, organization 200, message 1000 characters, organization type, program size and topic by list onlyField too long, bad email or phone, or value not in the list: submit stops, entries stay on the page, error names the field and the limit, and focus moves to that fieldKeep the per-field limits from the form rules, do not use one shared 1000 character limit for every field
Request kind when topic is missingTopic is required and must be in the listMissing or invalid topic: submit stops with a named field error before kind is derived, with no extra accessKeep topic required, kind is derived only after validation passes and grants no access
Request page fieldPath only, truncated to 200 charactersMissing path: no form content is added as pageKeep path only, never send form content as page
Guide filters when role or sort is invalidAll roles, guide orderInvalid value: public guide list shows all roles in guide orderKeep all and order for public guides only, they grant no signed-in access
Guide controls when a control is missingStatic grid as authoredMissing control: filtering cannot runCorrected standard: skip filtering wiring when a control is absent and keep the static grid
Draft storage when storage is unavailableNo draftSave and restore are skipped, form still submitsKeep storage as a convenience only, never required to submit
Request id when randomUUID is unavailableGenerated id from date and Math.random after randomUUIDMissing randomUUID: fallback id is generated and could repeatKeep randomUUID first, id is a deduplication hint only and grants no access
Footer and nav when a list is missingFixed list in codeMissing footer: no links are invented and no current page marker is setKeep fixed list, do not invent links
Install help when install event is missingHelp textNo install event: help text is shown and no install is claimedKeep help text, browser use stays available
App shell theme and manifestTheme color #1A2B33, manifest at /manifest.webmanifestMissing manifest or icon: page text remains usable in a browserKeep one theme color on every page so a missing value is visible in review
Page robots markingindex follow for main pages, noindex for app, 404 and offlineMissing marking: search engines use their defaultKeep noindex on app, 404 and offline pages
Offline page auto-checkAt most 3 checks, 800 ms base backoff doubling to an 8000 ms cap plus up to 500 ms jitter, 5000 ms check timeout, at most 3 automatic reloads in 60 secondsNo connection or check timeout: status stays on the offline page, no case, message or form changes, and no reload loop runsKeep at most 3 checks and at most 3 automatic reloads in 60 seconds, and keep the 5000 ms check timeout
App shell boot health check15000 ms to show a load failure, at most 1 automatic retry after 800 ms, retry count kept per tab sessionApp file fails to load or times out: the loading page shows the failure with a Try again action and a Go to the home page action, and server work is not changedKeep 15000 ms failure display and at most 1 automatic retry, and keep the retry count per tab session
Timestamp storage and displayInstants in UTC, date-only values as calendar dates, survivor timezone by nameNo timezone recorded, or a date-only value read as UTC midnight: the day can shift and a deadline can look overdue earlyKeep UTC storage for instants, calendar dates for date-only values, and local display with the timezone by name
Complete inventory

Complete inventory of every key in this site pack

This section is the complete table for this pack. It was built by reading every file in the pack for environment variables, storage keys, endpoint constants, limits and caps, and comparing the result with the documented examples in the app kit notes in this pack. The app kit examples name a D1 database, an R2 bucket and vault or config secrets read by reference. Those items live in locked files outside this pack. They are marked outside this pack below. No value is invented for them. Every key in tables B to D is required by no deployment and is not secret. A fresh deployment of the public site needs no environment variable set.

Table A. Deployment environment variables and Worker bindings

KeyPurposeRequired or secretSafe default and missing value behavior
No environment variable is read in this packNo file in this pack reads process.env, import.meta.env or a Worker env binding. The public site files set every constant in code.Required: no. Secret: no.Safe default: deploy the public site with no environment variable set. Missing value behavior: all pages, forms, guides, health check and offline page load from the constants in tables B to D. Do not add an environment variable to this pack to change a timeout, a limit or a storage key.
D1 database binding DB, R2 bucket FILES, vault or config secrets by referenceSigned-in app data, files and secrets for the Worker. Named in the app kit notes in this pack as the place app code reads secrets by reference only.Required for the signed-in app: outside this pack. Secret: yes, for vault or config secrets only. Never in a page, script, log or output.Not in the record provided in this pack. No default value is stated here and none should be invented from this guide. A signed-in feature that needs a secret keeps that feature unavailable when the reference is missing. It never falls back to a value in code. Flag for a fresh signed-in install: required flags, binding names and secret references for the app cannot be verified from this site pack alone and must be confirmed from locked files outside this pack before a fresh install is relied on.
Signed-in workspace settings, app roles and permissions in src/app.jsonApp name, colors, roles, permissions and navigation for the signed-in app.Required for the signed-in app: outside this pack. Secret: no.Not in the record provided in this pack. This guide lists no value from that file. A missing role or permission keeps the matching button hidden and the server check on save decides.

Table B. Browser storage keys. All are required by no deployment and are not secret.

KeyPurposeRequired or secretSafe default and missing value behavior
safeconnect-draft- followed by the form kind, sessionStorageSaves a public request form draft in the tab and clears it on a confirmed submit.Required: no. Secret: no. It holds form content, so it ends with the tab.Default: no draft. When storage is unavailable, save and restore are skipped and the form still submits.
sc-attribution-v1, sessionStorage, with an in-memory copyHolds utm_source, utm_medium, utm_campaign, utm_term and utm_content capped at 80 characters each, external referrer host and path only, and the first landing page in the tab. Carried on links to /request-demo only. Not sent with the request form.Required: no. Secret: no. Email-like values are dropped.Default: direct landing page only. When storage is unavailable, the in-memory copy holds the values for the tab only and a later page starts as direct.
sc-funnel-v1, sessionStorage, with an in-memory copy, capped at 100 entriesLocal funnel list for public page served, demo click, form started, validation stopped, attempt, confirmed, failed, guide search, install and service worker steps. Local browser session only, never sent to a server.Required: no. Secret: no. It never holds form values, search text, a client request id, a diagnostics reference or draft content.Default: in-memory list only. When storage is unavailable, the list holds at most 100 entries in memory and clears when the tab ends. It is never a server count source.
sc-intended-path and sc-resume-pending, sessionStorageReturns a signed-in user to the saved app path after sign-in, at most 2 resume attempts within 2 hours. Token-like address values are removed before a path is kept.Required: no. Secret: no.Default: /app/. When the keys are missing or expired, sign-in opens /app/ and no path is resumed.
sc-boot-retries, sessionStorageCounts app boot retries per tab session, at most 1 automatic retry after 800 ms.Required: no. Secret: no.Default: 0. When storage is unavailable, the count is treated as 0 and the loading page still offers Try again and Go to the home page.
sc-offline-auto-reloads, sessionStorageCounts automatic reloads on the offline page, at most 3 in 60 seconds.Required: no. Secret: no.Default: 0 in a new 60 second window. When storage is unavailable, automatic reloads stop after the in-memory count reaches 3.
sc-error-log-v1, sessionStorage, capped at 20 entries, with window.__scErrorLog as a mirrorHealth page error log. Entry text is cleaned, address text is replaced, token-like values are redacted, and text is capped at 160 characters.Required: no. Secret: no, by the cleaning rule above.Default: empty log. When storage is unavailable, the in-memory log holds at most 20 entries for the tab only.
sc-reconciliation-checks and sc-reconciliation-draft-v1, sessionStorageReports page reconciliation checks and the unsaved draft for that form, in this browser tab only. Counts only, with no survivor detail entered.Required: no. Secret: no.Default: no saved checks and no draft. When storage is unavailable, a check cannot be saved in the browser and the form states that entries are still on the page.
sc-myday-checklist-v1 and sc-myday-closeout-v1, sessionStorageMy Day guide checklists. Ticks only, with no case data and no send to a server.Required: no. Secret: no.Default: 0 of 6 and 0 of 5 steps done. When storage is unavailable, ticks are held in memory for the tab only.
sc-myday-briefing-v1: followed by the local date, localStorageMy Day morning briefing tracker. Workspace label capped at 80 characters, morning and close-out step ticks, carried over items and adoption counts derived on the page, in this browser only, with no case data and no send to a server.Required: no. Secret: no. It holds a workspace label and ticks only.Default: no entry for a new local date, 0 of 6 and 0 of 5 steps done, no carried over items. When storage is unavailable, the tracker does not persist and a reload starts at 0. Flagged difference: this key uses localStorage, not sessionStorage, so it persists after the tab closes with no expiry date, unlike the My Day checklists above. On a shared device, select Clear all local history when the shift ends so the next person does not read the ticks.
safeconnect-setup-progress-v1 and safeconnect-setup-dismissed-v1, localStorageSet up your workspace owner checklist. Step numbers and a date only, plus a dismissed flag on that browser.Required: no. Secret: no. It holds no survivor name, case detail, note text, message content or access code.Default: no saved progress and not dismissed. When storage is unavailable, progress is not saved and the checklist starts at step 1 on each load.
sc-setup-tracker-v1: followed by the workspace label, and sc-setup-tracker-v1:last, localStorageSet up your workspace first session tracker. Workspace label capped at 80 characters, one state per step as open, done or blocked, Step 5 blocker owner and date, and an updated date.Required: no. Secret: no.Default: label default, every step open, no blocker. When storage is unavailable, the tracker does not persist and a reload starts at 0 of 6.
window.__scFunnelEvents, window.__scBootFailed, window.__scAuthExpired, window.__scAuthFailedIn-memory mirrors shared between the app loading shell and the signed-in app script, which is outside this pack.Required: no. Secret: no.Default: false for the failure flags and the in-memory funnel list. When a value is missing, the loading page treats the app as not ready and shows the failure state with Try again.

Table C. Network endpoints, timeouts and retries. All are required by no deployment and are not secret.

KeyPurposeRequired or secretSafe default and missing value behavior
POST /api/public/request, 12000 ms timeout, 0 retriesThe only write endpoint in this pack. Creates a public request. X-Client-Request-Id is a deduplication hint only, reused on a manual retry.Required: no. Secret: no. No credentials are sent with this call.Default: fail fast. On timeout, an unclear reply or a server error, entries stay on the page, the draft is kept, and the person tries again by hand. Success shows only when the reply is a plain object with ok exactly true.
GET /api/me for the health readiness check, 8000 ms timeout, 1 retry, 600 ms backoff doublingHealth page sign-in service check. Only a 200 reply with ok exactly true at /api/me counts as responding. A 401 reply with ok exactly false counts as sign-in required.Required: no. Secret: no. Response text is discarded and never shown.Default: not checked yet, because no check runs on load. When the check gets no reply, the result is not responding. When the reply is not a ready reply, the result is degraded. Neither result states a cause. Flagged unsafe fallback in code: the health page code currently also counts a 200 reply with no JSON ok body as responding, and allows an empty final path. Corrected safe default to keep: readiness requires a 200 reply, a final path of /api/me, and a JSON body with ok exactly true. Do not rely on a status-only 200 on a fresh install until that check is corrected in code.
GET /app/ for the health app check, 8000 ms timeout, 1 retry, 600 ms backoff doublingHealth page signed-in app check. Only a 200 reply with a final address of /app/ or /app counts as responding.Required: no. Secret: no.Default: not checked yet. When the check gets no reply, the result is not responding. Any other reply is degraded.
GET /theme.css, /site.css and /manifest.webmanifest, 8000 ms timeout, 1 retry, 600 ms backoff doublingHealth page site assets and configuration check. Each asset must answer 200 at its own address.Required: no. Secret: no.Default: not checked yet. A missing or invalid asset counts as degraded even when the site itself responded. Flagged unsafe fallback in code: the health page code currently counts an asset on status 200 alone with no final-path check, so a fallback 200 for a missing asset can count as responding. Corrected safe default to keep: an asset counts as responding only on a 200 reply whose final path matches that asset address.
GET /health, unauthenticated, no dependencyMachine liveness probe. A 200 response is liveness. This page loading is liveness.Required: no. Secret: no.Default: liveness only. Do not use an unauthenticated request to /api/me as a readiness alert. Readiness needs a signed-in session.
GET /sw.js, scope /, 8000 ms timeout, 1 retry, 600 ms backoff, read onlyService worker registration for offline support. One registration promise is shared per page load.Required: no. Secret: no.Default: pages load without the service worker. On final failure a status with a Retry action shows, and registration retries once when the browser reports online or the page becomes visible.
GET / for the offline page check, 5000 ms timeout, at most 3 checks, 800 ms base backoff doubling to an 8000 ms cap plus up to 500 ms jitterOffline page connection check before an automatic reload.Required: no. Secret: no.Default: stay on the offline page. When checks are exhausted or the reply is not a ready reply, no reload runs and no case, message or form changes.
GET /api/me probe in the app shell, after 2500 ms, 5000 ms timeoutApp loading screen session expired probe. A 401 reply or a redirect shows the session expired message with Sign in and resume.Required: no. Secret: no. It is a read only probe and stores no name or email.Default: no probe result shown until the probe answers. When the probe gets no reply, the loading page is unchanged.
Guide and capability search debounce, 150 msPublic guides library and requested capabilities search. Search and filter combine, sort changes order only, and q, role, sort or topic stay in the address bar.Required: no. Secret: no. Search covers public guides and public pages only.Default: all roles, guide order or rank order, blank search. An invalid role or sort falls back to all and order. When a control is missing, the static list as authored shows.

Table D. Local limits, validation and presentation constants. All are required by no deployment and are not secret.

KeyPurposeRequired or secretSafe default and missing value behavior
Field limits: name 200, email 254, phone 40, organization 200, message 1000 charactersPublic request form validation in site.js. Email needs one at sign. Phone allows digits with plus, parentheses, hyphen, dot and spaces, 7 to 15 digits.Required: no. Secret: no.Default: a field over its limit, a bad email or phone, or a missing required field stops the submit, entries stay on the page, the error names the field and the limit, and focus moves to that field.
Enum lists: organization type 9 values, program size 4 values, topic 17 values in the union of the demo and guide feedback formsPublic request form choice fields. Guide feedback topics map to question kind. Demo topics map to demo, question or pilot kind as stated in site.js.Required: no. Secret: no.Default: no value selected. A value not in the list stops the submit with a named field error. Unknown fields are stripped and never sent.
Server field errors shown: at most 8, message cleaned and capped at 200 charactersA 422 reply with field errors is shown with the same per-field summary as client validation, using only known fields on the current form.Required: no. Secret: no.Default: no field error shown. An unknown field in a 422 reply is ignored and the general message shows instead.
Page field truncated to 200 characters, attribution values capped at 80 characters each, funnel list capped at 100 entries, error log capped at 20 entriesKeeps page, campaign, funnel and error values short and bounded in the tab.Required: no. Secret: no.Default: the truncated or capped value is used. A longer value is cut, never sent in full.
Analytics calculator limits: input 10000000 characters, file 10000000 bytes, rows 100000, columns 32, field 200 characters, threshold 0 to 1000000 as a whole numberRetention and engagement calculator on its own page. The calculation runs in that page only and nothing is sent or stored.Required: no. Secret: no.Default: no threshold entered means no suppression on that page. An input, file, row, column or field over its limit stops the calculation with a plain error and no table is filled.
Integrity check limits: input 10000000 characters, file 10000000 bytes, no row, column or field cap in codeWorkspace record integrity check on its own page. The check runs in that page only and nothing is sent or stored.Required: no. Secret: no.Default: an input or file over 10000000 stops the check with a plain error. Flagged missing cap: the page has no maximum rows, columns or field length and no duplicate header check, unlike the calculator above, so a paste near 10000000 characters can freeze the page before any finding is shown. Corrected safe default to keep: keep the 10000000 character and byte limits, and do not rely on the page for large member lists until row, column and field caps matching the calculator are added in code.
Origin https://safeconnect.appmajic.ai, theme color #1A2B33, manifest /manifest.webmanifest, icon /icons/icon.svgCanonical address, theme, manifest and icon used in page heads and in the SEO enhancement in site.js.Required: no. Secret: no.Default: the values above on every page. When a manifest or icon is missing, page text remains usable in a browser and no install is claimed. Flag for a fresh install on a different host: canonical and social addresses are set to the origin above in code on every page, so a deployment on another host will carry the wrong canonical until those values are changed in the same release.
Address cleaning: code, token, access_token, refresh_token, id_token, session, session_id, auth, jwt and api_key removed from kept paths404 page, offline page and app loading screen keep a resume path without token-like values.Required: no. Secret: yes, which is why the values are removed and never kept.Default: keep the path without those values. A path that cannot be cleaned falls back to /app/ or /.
  • Result of the comparison with documented examples: the app kit examples for D1, R2, vault and assist are outside this pack, so this guide states no default for them and a fresh public site deployment needs none of them
  • Every key in tables B to D is required by no deployment and is not secret, except the address cleaning row, where the removed values are secret and are never kept
  • When any key in tables B to D is missing or invalid, the safe behavior in the last column applies and the page or form stays usable with the authored content
  • A change to a timeout, a retry count, a limit, a cap or a storage key is a change to this guide in the same release, with the missing value behavior stated before it ships
  • Health check retry count in this guide now matches health.html: 1 retry with 600 ms backoff doubling for the app, sign-in and asset checks, at 8000 ms timeout. Earlier text stating 2 retries for the app and sign-in checks and no retry for assets did not match the code and should not be used for monitoring timeouts.
  • Flagged unsafe defaults that can break a fresh install review: the health readiness fallback on a status-only 200, the health asset check on a status-only 200 with no final-path check, the missing row, column and field caps on the integrity check page, and the localStorage persistence of the morning briefing tracker on a shared device. Each flag names the corrected safe default in its table row.
Not in this pack

Settings that live outside this pack

The signed-in app script, locked core files, database migrations and deploy files are outside this pack. An operations review of those files must be done from the locked source. This guide makes no change to sign-in, sessions, roles, tenancy, secrets handling, deploy files or database files, and it lists no value from those files.

  • No secret value, password, API key or access code is listed in this guide or in any page in this pack
  • Code in this pack reads secrets by reference only, as stated in the app kit notes in this pack
  • The app, the 404 page and the offline page carry noindex, and their titles carry no private detail
  • A missing manifest, icon or theme value leaves the page text usable in a browser, with no install claimed
Corrected defaults

Safe defaults to keep on every change

Keep these defaults. When a new setting is added, state its missing value behavior in a matrix like this one before it ships.

  • Writes that create a request: 12000 ms timeout, 0 automatic retries, manual retry reuses the same request id
  • Reads that only load a page, style, script or service worker: 8000 ms timeout, at most 1 retry, 600 ms backoff
  • Health page app, sign-in and asset checks: 8000 ms timeout, 1 retry, 600 ms backoff doubling, because those checks are read only and state no cause. Readiness requires a 200 reply with a final path of /api/me and a JSON body with ok exactly true. An asset requires a 200 reply whose final path matches that asset.
  • Public filters: whitelist roles and sorts, fallback to all roles and guide order, with no signed-in access granted
  • Errors: name the field and the limit, keep entries on the page, and move focus to the field that needs fixing
  • Optional wiring: when a control, nav, footer or service worker is absent, skip that wiring and keep the authored page
  • Request ids: randomUUID first, a generated fallback id second, and the id is a deduplication hint only
  • Offline auto-check: at most 3 checks with 800 ms base backoff to an 8000 ms cap, 5000 ms check timeout, and at most 3 automatic reloads in 60 seconds
  • App shell boot: 15000 ms to show a load failure, at most 1 automatic retry after 800 ms, with the retry count kept per tab session
  • App shell session probe: after 2500 ms, 5000 ms timeout, read only, with no name or email stored
  • Resume after sign-in: at most 2 attempts within 2 hours, with token-like address values removed before a path is kept
  • Calculator: at most 10000000 characters or bytes, 100000 rows, 32 columns, 200 characters per field, and a whole number threshold from 0 to 1000000 or blank for no suppression
  • Integrity check: at most 10000000 characters or bytes for input and file, with no row, column or field cap in code today. Do not use the page for large lists until caps are added.
  • Timestamps: store instants in UTC, store date-only deadlines as calendar dates, and show local time with the survivor timezone by name
Style sheet

Canonical style sheet for names, dates, numbers, units and status labels

Use this table on every marketing page, guide and signed-in screen. Stored values are lower case. Display labels capitalize the first letter only. Dates use United States order. Numbers use digits with one space before the unit. A term in the Do not use column is never a stored value and never a display label.

TopicCanonical formDo not useRule and correction applied
Names and rolesadministrator, supervisor, advocate, partner, reporter, survivorcase manager as a stored role; partner collaborator for partner staffA case manager uses the advocate role. Write advocates, including case managers only as an audience phrase, never as a role list. Write partner staff for a person and partner agency for an organization.
Product and company namesSafeConnect, MAJIC, Majic HoldingsSafe Connect; Majic alone for the companyMAJIC names the sign-in account. Majic Holdings names the company. SafeConnect is one word.
Dates and timesNovember 6, 2026; January 1, 1970; period start and period end; Monday to Sunday; survivor timezone by name such as America/New_York; instants stored as 2026-11-06T20:30:00Z; date-only values stored as 2026-11-066 November 2026; 1 January 1970; date range for a grant period; a bare local time with no timezone name; a date-only value stored as UTC midnightCheck consent guide now reads January 1, 1970 and November 6, 2026. Instants are stored in UTC and shown in the survivor timezone by name. Date-only values are stored as calendar dates, are never converted through UTC midnight, and a due date means the end of that date in the survivor timezone.
Numbers and units12000 ms, 8000 ms, 600 ms, 200 characters, 30 minutes, 22 of 22 guides shown12 second and 8 second for a public timeout; one shared 1000 character limit for every field; numbers spelled out for countsUse the ms form and the per-field limit in public text. Counts and step times use digits.
Consent statusactive, expiring, expired, revokedcurrentCheck consent guide step 1 now reads active, expiring, expired and revoked.
Case, intake, service note and enrollment statusCase active, closed; Intake new, reviewed; Service note draft, saved; Enrollment enrolledcurrent caseUse active case. A closed case is read-only except for a dated correction entry.
Referral statussent, received, accepted, declined, needs information, connected, warm handoff, follow-up, closedwarm handoff done; first connection as a statusFirst connection is a date. Only first connection counts toward connected.
Thread, reminder and queue labelsThread waiting on survivor, waiting on staff; Reminder active, paused, stopped; Queue filter Awaiting replyAwaiting reply as a thread state; resume as a reminder stateAwaiting reply is a queue filter only. Resume returns a reminder to active after the channel, timezone and quiet hours are checked again.
Service unitsdirect minutes, on-behalf minuteson behalf minutes with no hyphen before minutesHyphenate on-behalf before minutes. Direct and on-behalf minutes stay on separate lines.
Guide and first value counts22 of 22 guides shown; 22 guide pages besides the guides index; about 30 minutes for seven steps as 2 plus 2 plus 5 plus 5 plus 5 plus 6 plus 5 minutes13 of 13 guides shown; 15 guide pages; about 25 minutes for six stepsKPI dictionary guide library count entry now reads 22 of 22, 22 guide pages, and about 30 minutes for the seven steps in the guides index.
  • Check consent guide: current now reads active in step 1, 1 January 1970 now reads January 1, 1970 in the times section, and 6 November 2026 now reads November 6, 2026 in the version history
  • KPI dictionary: the guide library count entry now reads 22 of 22 guides shown, 22 guide pages besides the guides index, and about 30 minutes as 2 plus 2 plus 5 plus 5 plus 5 plus 6 plus 5 minutes for the seven steps in the guides index
  • Every other page: search for a Do not use term before you ship, and replace it with the canonical form in the same change
Timestamps

Timestamp, deadline and reminder normalization

Use one rule for every stored time in this pack. The server stores the time. The screen shows the time in the survivor timezone by name. A client clock never decides whether a consent, a link, a visit or a reminder is due or expired.

Three kinds of time, stored in three ways

Keep the three kinds apart on the record. Do not store a date-only deadline as a UTC instant at midnight, and do not store an instant as a bare local time. The kind decides the storage, the display and the deadline meaning in the table below.

Time kindExamples in this packStored formDisplay formDeadline meaning
InstantSigned date and time, revocation date and time, visit start and end, reminder send time, last used time for a safe link, audit time, report run timeISO 8601 in UTC with Z, such as 2026-11-06T20:30:00ZMonth Day, Year at time in the survivor timezone by name, such as November 6, 2026 at 3:30 PM America/New_YorkThe exact stored instant. Expiry and send checks compare UTC instants.
Date onlyService date, signed date and expiry date given as a date, follow-up due date, first connection date, closure date, period start and period end given as a dateCalendar date as YYYY-MM-DD, such as 2026-11-06, with the survivor timezone by name recorded on the recordMonth Day, Year, such as November 6, 2026, with the timezone by name stated for the deadlineDue at the end of that date in the survivor timezone. Never converted through UTC midnight.
Local windowQuiet hours start and end, safe times, reminder local timeLocal wall time with the survivor timezone by name, converted to a UTC instant for the sendLocal time with the timezone by name, such as 9:00 PM America/New_YorkChecked in the survivor timezone on that date, including daylight saving rules for that date.
Identifier onlyPage load diagnostics reference, client request id, draft saved time on a deviceIdentifier text only, with no deadline meaningIdentifier text onlyNo deadline. Never used for expiry, due or send decisions.

How a deadline is read

A date-only deadline, such as a follow-up due date, an expiry date, a first connection date or a period start or period end given as a date, is due at the end of that date in the survivor timezone by name. It becomes overdue only when the local date in that timezone is after the due date. For example, a due date of November 6, 2026 in America/New_York is not overdue at 2026-11-07T02:00:00Z, because that instant is still November 6 in that timezone. An instant deadline, such as a visit start, a reminder send time or a link expiry time, is read as the exact UTC instant stored, and is shown in the survivor timezone by name for the person who must act on it.

Reminders, quiet hours and daylight saving

Store a reminder send time as a UTC instant. Store quiet hours and safe times as local wall times with the survivor timezone by name. At send time, convert the local window to a UTC instant using the timezone rules for that date, check whether the send time falls inside quiet hours in that timezone, and move the send time to the first safe time after quiet hours when it does. Reconfirm the timezone by name and the quiet hours after a daylight saving change or when the survivor says the device timezone changed, then save one new UTC instant. Do not create a second reminder for the same purpose in the same window. Check the case folder for the latest reply, visit outcome, follow-up status and referral status before you send, and stop the active reminder at once when the item is resolved.

Clock drift and the server clock

The server clock is the source of truth for created times, expiry checks, visit times and reminder sends. A browser clock is never used to decide expiry or a due date. Times made on a device, such as a page load diagnostics reference, a draft saved on the device or a client request id, are identifiers only. They carry no deadline meaning and are never compared with a stored expiry or due date. When a device clock and the server clock differ, the server time wins. Compare stored UTC instants with stored UTC instants, never with a local string and never with a device clock.

Ambiguous local times and corrections

When a local time falls in a daylight saving gap or a repeated hour, do not pick a value silently. Record the timezone by name, confirm the intended local time with the survivor or a supervisor, save the confirmed time as a UTC instant, and show the local time and the UTC instant on the confirmation screen. Do not edit a signed consent, a saved service entry or a filed report in place to fix a timezone. Pause sharing, create a new dated entry or a new point in time that supersedes the old one with the correct timezone, and keep the prior row readable for audit with no survivor detail in the audit entry.

  • Every instant shows the survivor timezone by name, and every date-only deadline states the timezone in which the end of the date is read
  • Every reminder shows one active send time as a UTC instant, with quiet hours checked in the survivor timezone on that date
  • No consent, link, visit or reminder decision is made from a device clock
  • A corrected time is a new dated entry, and the prior row stays in the audit history
Check

How to check after a change

Confirm these items before you move to the next task.

  • Open the demo form and submit a name longer than 200 characters, then confirm the submit stops, the error names the field and the limit, and entries stay on the page
  • Open guides, search and filter, then confirm the count updates and the back button keeps the same list
  • Open the app, 404 and offline pages, then confirm noindex in the page source
  • Search the pack files for a secret value, password, API key or access code, then confirm no such value is present
  • Search the public and guide files for current as a consent or case status, for Day Month Year dates, and for second as a public timeout unit, then confirm no such term remains as a stored value or display label
  • Open Check consent, KPI dictionary and this guide, then confirm active, January 1, 1970, November 6, 2026, 22 of 22 guides shown and about 30 minutes match this style sheet
  • Open the offline page with no connection, then confirm the status stays on the page, automatic checks stop after 3, and no case, message or form is changed
  • Open the app with a slow or blocked app file, then confirm the loading page shows the failure after 15000 ms, retries at most once, and offers Try again and Go to the home page
  • Open the health page and select Check again, then confirm the app check, the sign-in check and the assets check each retry at most 1 time with 600 ms backoff at 8000 ms timeout, and response text is never shown. Confirm a status-only 200 with no JSON ok body for /api/me and a status-only 200 with no final-path match for an asset are not counted as responding under the corrected safe default in Table C.
  • Open Check consent and Send a safe link, then confirm a signed time, an expiry date and a reminder time each show the survivor timezone by name, and a date-only due date is not read as UTC midnight
  • Open a case with a follow-up due date, then confirm the queue reads the due date as the end of that date in the survivor timezone, and no expiry or reminder decision uses the device clock
  • Open the retention calculator and paste more than 100000 rows, then confirm the calculation stops with a plain error and no table is filled
  • Open the integrity check page and confirm Table D in this guide states its 10000000 character and byte limits and its missing row, column and field caps, and open the My Day morning briefing page and confirm this guide lists sc-myday-briefing-v1: in localStorage in Table B

Next guides

Set up the workspace, then confirm roles and membership before live use.