Configuration and safe defaults for Campus Answers
Start from restricted defaults and publish only after the checks on this page pass. This page lists the settings a college sets, what stays optional, and how the live and readiness checks work. It holds no secret values.
What this page lists and what it does not list
This inventory is limited to what the site pack documents. Nothing in this list is invented.
Listed on this page
- The D1 database binding named DB and the R2 bucket binding named FILES
- App settings for name, colors, roles and permissions, and navigation
- The rule that every app table for a college holds a tenant_id field
- Safe defaults for a new college workspace and the checks before publishing
- The public live check and the signed-in readiness check on the status page
- The vault reference used on the server side, with no value shown
- The public request endpoint, the live check endpoint, and the signed-in readiness check
- The client opt-out flag CAMPUS_ANALYTICS_OPT_OUT and the Do Not Track and Global Privacy Control signals that stop in-memory analytics
- Private-by-default and opt-in defaults for workspace visibility, install settings, shared sources, scheduled summaries, exports, and widget embed code
- Production defaults comparison for base URL, MAJIC sign-in callback, cookie domain, and CORS, with documented status and fail-closed behavior for each, with no value shown
- Every operational timeout, retry, debounce, watchdog, suppression, and payload limit set in public/site.js, public/app/index.html, public/status.html, public/404.html, public/my-answers.html, and public/guides/index.html, with the safe production default for each
Not listed on this page
- No secret value, password, token, or API key is shown on this page or in any template
- No binding, setting, or variable name is added beyond what the site pack documents
- No environment variable name beyond the DB and FILES bindings is documented in this pack. Do not invent one. CAMPUS_ANALYTICS_OPT_OUT is a client window flag in public/site.js, not an environment variable.
- No environment variable name for base URL, MAJIC sign-in callback, cookie domain, or CORS is documented in this pack. Do not invent one as a college setting. Those values, where required, live only in locked platform files.
- Platform files that are locked for sign-in, sessions, tenancy, vault, browser, and media are not part of college setup
- Locked files include src core files, src index files, the core migration file, gate and brand scripts, the service worker file, and wrangler configuration
When a setting name is not documented in the site pack, do not invent one. Set the named settings in the app screens and in the guides linked from this page. Production values are not listed in this pack. The fail-fast checks below fail in production when a required value is missing or still a placeholder.
Bindings and settings inventory
Each entry shows whether it is required or optional, what it does, and the safe default for a new workspace.
| Entry | Required or optional | What it does | Safe default |
|---|---|---|---|
| DB, the D1 database binding | Required | Holds the college app data. Every app table holds a tenant_id field so work stays in one college workspace. | One database for the app. No extra database is needed for a pilot. |
| FILES, the R2 bucket binding | Required for file sources | Stores college files that staff add as file sources, such as a handbook or a form. | Private bucket with no public read. Files are cited only after the source is approved. |
| Vault reference, server side only | Optional unless a saved sign-in or key is used | Points code to a saved sign-in or key by reference and purpose. The value is never returned to a page. | No reference for a pilot that needs no saved sign-in or key. Never add a value to code, config, logs, or pages. |
| App name and colors | Required | Names the app and sets the theme colors shown in the app and on the widget. | Use the college name and the theme colors already shown on the public site. Bracket placeholders fail the placeholder check below. |
| Roles and permissions | Required | Decides who can view, build, approve, export, and publish. App roles sit on top of MAJIC roles. | A new workspace starts with only the first signed-in person as college administrator. No other role is assigned and no viewing, building, approving, or export permission is granted by default. Add each person later with the one role that fits the work, with the smallest group that can do the work. No person approves their own submission. A newly invited person starts with no role until a college administrator assigns one role in Team. A newly created role starts with no screen and no permission until a college administrator grants each one on purpose. |
| Navigation | Required | Lists each screen in the signed-in app. Each screen lists a permission. | A screen stays hidden until its listed permission is granted. Show a screen only when every role that should see it holds the listed permission. |
| Workspace visibility | Required | Controls whether a college workspace can be opened outside the signed-in app for its members. | Private and hidden. A new workspace is not listed on the public site, has no public link, and is not shown in system view detail. Only a person with an assigned role in that workspace can open it. Do not make a workspace public. |
| Install settings | Optional, off by default | Controls the install invitation in the signed-in app and the widget embed code for a college page. | Install invitation is shown only in the signed-in app after sign-in. Widget embed code is not created and no widget is live until the fail-fast checks below pass. No install promotion is shown in an empty workspace or on a public page. |
| Handoff office | Required before publishing | Names the office a person reaches when no approved source covers the question. | No assistant is published until a handoff office is named from the office directory for that college. Do not invent contact details. |
| Retention days or session-only mode | Required before student use | Sets how long question and answer records are kept for a college. | Set the rule in Governance before student use and confirm it on screen and in the audit entry. Session-only mode keeps nothing after the session ends. |
| Cross-college shared source | Optional, off by default | Allows system office governance staff to mark one source as shared across colleges. A private source stays in one college workspace. | Private to one college. A source stays in one college workspace until system office governance staff mark it shared in Sources. |
| Scheduled report summaries | Optional, off by default | Sends counts and themes for one college and one assistant to a chosen recipient list weekly or monthly. Summaries never carry full question text. | Off. No recipient is added and no summary is sent until authorized staff choose a recipient, a college, an assistant, and one cadence for that recipient. Only recipients who hold the export permission stay on the list. |
| Report exports and reading full question text | Optional, off by default | Downloads report counts, themes, or detail, and reads full question text on the list behind a number. | Off. Export needs the export permission. Reading full question text needs a separate detail permission. Files never include student identifiers by default. Each export and each view of full question text is audit logged. |
| Public request endpoint, /api/public/request | Required for demo and question forms | Receives the demo and question forms on this site with a request identifier. The form instructs the person not to add student record details. | Forms stay hidden after a successful send. A failed send keeps entries for one retry with the same request identifier. |
| Live check endpoint, /api/health | Required, public | Confirms the service is live with no sign-in. It shows only live or not live, with no dependency, version, or configuration detail. | Run fresh on the status page with no sign-in and no stored details. No polling is set up. |
| Readiness check, signed-in staff only | Required before publishing | Verifies the database, the MAJIC sign-in service, and the workspace store. It shows only ready or not ready for each item. | Run only with sign-in. It never runs in the public live check and shows no secrets, addresses, configuration values, or error text. |
| Analytics opt-out, CAMPUS_ANALYTICS_OPT_OUT | Optional | Stops the in-memory analytics events on marketing pages. Do Not Track and Global Privacy Control also stop those events. | No tracking request, beacon, cookie, or storage is used for these events. Events stay in memory and are capped at 100. |
| Widget title, welcome text, and colors | Optional before a test page | Tailors the website widget for a college page. | Use a plain title and welcome text that name the college and the assistant. Test on a test page before a live page. |
| Widget embed code | Optional, off by default | Places answers from one published assistant on one college page for visitors without an account. The code holds only the endpoint for that college and assistant. | Not created. The code is created only after at least one source is approved for that college, one assistant passes its test and is approved, a handoff office is named, and the retention rule is set. Preview links are for named staff only. |
| Additional assistants and starter questions | Optional | Adds more jobs, such as admissions and financial aid, IT help desk, or student services, and starter questions a person can try. | Start with one assistant for one job and one test question. Add more after the first answer passes. |
Production defaults for base URL, MAJIC sign-in callback, cookie domain, and CORS
Comparison against the site pack, with fail-closed behavior when a required platform value is missing. This page documents no new value and changes no locked file. College setup changes none of these four items.
| Entry | Documented in this pack | Safe production default | Fail-closed behavior when missing |
|---|---|---|---|
| Base URL | Canonical address https://campus.appmajic.ai/ is documented in page metadata on every public page. No environment variable name is documented. | Use the canonical deployment address only. Do not publish a widget or a public link under another address. | If the deployment address does not match the canonical address, or if no address is documented by the platform owner, do not publish. Do not invent a base URL setting in page text or in a form. |
| MAJIC sign-in callback | Sign-in at /app/ with a MAJIC account is documented. College identity provider with SAML 2.0 or OpenID Connect is documented where a college has set it up. No callback variable name or callback address is documented. | Callback is configured only in locked platform files, never in college setup, and matches the canonical deployment address. | If the callback is missing or does not match the canonical address, the readiness check shows not ready, sign-in does not fall back to a local or test address, and publishing is blocked. |
| Cookie domain and session scope | No cookie domain variable name or value is documented in this pack. | Host-only session for the deployment address. No broad domain is set in college setup. | If a domain value is missing, keep the host-only default and do not set a broader domain to fix sign-in. Do not invent a cookie domain setting on this page. |
| CORS origins for public endpoints | Documented public endpoints are /api/health and /api/public/request only. No CORS origin list or variable name is documented in this pack. | Only the documented public endpoints are public, with no wildcard origin set in college setup. | If an origin list is missing, do not add a wildcard origin to fix a form or a check. Record the endpoint as not ready until the platform owner documents the allowed origins in locked files. |
These four items are platform items. A college change that names a new value for any of them is out of scope for this page and must be documented by the platform owner in locked files through the normal build. No value for any of them is recorded in the template or in the validation result below.
Operational safe defaults: timeouts, payload limits, pagination, and duplicate handling
Values below are the values documented in this site pack. Change a value only in the named source file, through the normal build. Do not change a value in page text, in a link, or in a form field.
| Default | Documented value | Where it is set in this pack | Explicit override |
|---|---|---|---|
| Public form submit timeout | 30000 ms. On timeout the entries stay on the page. A retry with the same entries reuses the same request reference, so it does not create a duplicate request. | public/site.js, SUBMIT_TIMEOUT_MS | Change that constant in public/site.js in a release, then retest the demo and question forms on phone and desktop. Keep 30000 ms unless that retest supports a change. |
| Public form submit attempts and retry delays | 3 attempts at most, reusing the same request reference. Retry delays are 600 ms, then 1800 ms. A Retry-After header is capped at 5000 ms. | public/site.js, SUBMIT_MAX_ATTEMPTS and SUBMIT_RETRY_DELAYS_MS | Change those constants in public/site.js in a release, then retest both forms. Keep 3, 600 ms, 1800 ms, and 5000 ms unless that retest supports a change. |
| Status live check timeout | 8000 ms, with no sign-in, no stored details, and no cache. The check runs on page load and only again when the person chooses Check again. No polling is stated in this pack. | public/site.js, status probe | Change the timeout in public/site.js in a release, then retest the check on the status page. Do not add polling on this page. |
| Status live check attempts and retry delay | 2 attempts in total, 1 retry at most, with an 800 ms delay between attempts. Retry only on transient statuses 408, 502, 503, and 504 and on network, timeout, or non-JSON errors. Never retry 429 or other 4xx, and never poll. | public/status.html, HEALTH_MAX_ATTEMPTS and HEALTH_RETRY_DELAY_MS | Change those constants in public/status.html in a release, then retest the status page with a live, a not live, and a failed check. Keep 2 and 800 ms unless that retest supports a change. |
| Signed-in app load timeout | 10000 ms per load attempt, 4 attempts at most, with retry delays that start at 800 ms, double on each failed attempt, are capped at 8000 ms, and add up to 250 ms of jitter. The three retry delays are about 800 ms, 1600 ms, and 3200 ms before jitter. After the last attempt the page shows a clear reload message. | public/app/index.html, loadAppScript, scriptTimeoutMs, maxAttempts, baseRetryMs, maxRetryMs | Change scriptTimeoutMs, maxAttempts, baseRetryMs, or maxRetryMs in public/app/index.html in a release, then retest loading the app on phone and desktop. Keep 10000 ms, 4 attempts, 800 ms, and 8000 ms unless that retest supports a change. |
| Signed-in app reload fallback | 1500 ms. If a service worker update does not finish in that time, the reload proceeds anyway so the person is not left waiting. | public/app/index.html, reloadFresh fallback timer | Change the fallback timer in public/app/index.html in a release, then retest Reload the page on phone and desktop. |
| Signed-in app empty-content watchdog | Checks every 4000 ms after the app loads. After 2 consecutive checks with no visible main content, the page shows a runtime reload message. A dismissed error stays dismissed until the content check fails again. | public/app/index.html, startWatchdog, 4000 ms interval and emptyChecks threshold of 2 | Change the interval or the empty-check threshold in public/app/index.html in a release, then retest loading the app and the Keep viewing this page path on phone and desktop. |
| Signed-in app CFG thresholds | Nav breakpoint 900 pixels, valid range 320 to 2000. Keyboard height threshold 60 pixels, valid range 0 to 500. Focus scroll delay 120 ms, valid range 0 to 2000. Observer debounce 120 ms, valid range 0 to 2000. An invalid or missing value falls back to that default, the menu stays reachable by keyboard, focus stays visible, and the loader does not crash. | public/app/index.html, CFG navBreakpointPx, keyboardHeightPx, focusScrollDelayMs, and observerDebounceMs | Change CFG in public/app/index.html in a release, then retest nav drawer at 320, 768, 900, and 901 pixels, keyboard focus on a phone, and nav and table refresh after DOM changes. Keep 900, 60, 120, and 120 unless that retest supports a change. |
| Signed-in app CFG validator ranges for load constants, and return after sign-in | scriptTimeoutMs default 10000, valid range 1000 to 60000. maxAttempts default 4, range 1 to 10. baseRetryMs default 800, range 0 to 10000. maxRetryMs default 8000, range 0 to 60000. jitterMs default 250, range 0 to 1000. reloadFallbackMs default 1500, range 0 to 10000. watchdogIntervalMs default 4000, range 1000 to 30000. watchdogEmptyChecks default 2, range 1 to 10. scriptSrc, serviceWorkerSrc and serviceWorkerScope fall back to /app/app.js, /sw.js and / when the value does not start with /. Return after sign-in: RETURN_TTL_MS 1800000 ms, 30 minutes, stored only in session storage, an expired entry is removed and is not restored. | public/app/index.html, CFG num and txt validators and RETURN_TTL_MS | Change CFG or RETURN_TTL_MS in public/app/index.html in a release, then retest app loading, Reload the page, and return after sign-in on phone and desktop. Keep the defaults and ranges above unless that retest supports a change. |
| Service worker idle timeout and speech language fallback | Service worker registration is scheduled on idle with a 2000 ms idle timeout, with a setTimeout 0 fallback where idle callback is unavailable, and registration failure is caught. Speech language falls back to en-US when the page language is missing. When dictation is unavailable, the field stays open for typing and no voice is sent. | public/site.js, scheduleRegistration and recognition.lang | Change the timeout or the fallback in public/site.js in a release, then retest service worker registration and dictation status wording on phone and desktop. |
| Status page not-started watchdog | 20000 ms. If the live check has not started within 20 seconds, the status page shows Check did not start and offers Reload page and check again. | public/status.html, 20000 ms timeout | Change the timeout in public/status.html in a release, then retest the status page with the page script blocked and with a normal load. |
| 404 route-error suppression | 3000 ms. After the route-error banner is shown, a second show within 3 seconds is suppressed so the banner does not flicker on repeated resource errors. | public/404.html, lastShownAt 3000 ms check | Change the suppression window in public/404.html in a release, then retest the 404 page with repeated errors. |
| Form draft and filter debounce | Draft saving waits 250 ms after typing stops. The terminology filter waits 120 ms after typing stops before it applies. The My Answers search waits 120 ms after typing stops. | public/site.js, DRAFT_DEBOUNCE_MS and FILTER_DEBOUNCE_MS, and public/my-answers.html scheduleSearchRender | Change DRAFT_DEBOUNCE_MS or FILTER_DEBOUNCE_MS in public/site.js in a release, then retest saving a draft and filtering terminology on phone and desktop. |
| Analytics in-memory cap | 100 events in memory, no network request, beacon, cookie, or storage. | public/site.js, analytics block | Change that constant in public/site.js in a release. Keep in-memory only behavior. |
| Public form payload limits | Your name 120 characters, work email 254 characters, college or system office 200 characters, and what you want to try first 4000 characters. The form validation on the page uses the same limits. | public/request-demo.html, maxlength on each field | Change a maxlength in public/request-demo.html in a release and keep the page validation in step. Do not accept a larger payload in page text. |
| Saved item limits on the guides index | Question or answer title 200 characters, topic 80 characters, and source link 500 characters. | public/guides/index.html, maxlength on each field | Change a maxlength in public/guides/index.html in a release. Keep the saved list on the same device and browser. |
| Saved item limits on My Answers | Title 200 characters, question 2000 characters, short answer 4000 characters, source title 200 characters, source link 500 characters, last checked date 80 characters, collection name 80 characters, college workspace 120 characters, and assistant 120 characters. History keeps the 20 most recent opened or re-asked items. | public/my-answers.html, maxlength on each field and history slice of 20 | Change a maxlength or the history slice in public/my-answers.html in a release, then retest saving, editing, and exporting answers on phone and desktop. Keep the saved library on the same device and browser. |
| Saved-item page size and import limits | My Answers shows 20 items per Show more page. One import adds at most 500 answers, 100 collections, and 100 history entries from a file of at most 2 MB. Offline import processes 50 entries per batch and renders 50 entries at a time. Sample history keeps 20 items on the device. A personal collection name is at most 40 characters. | public/my-answers.html, public/offline.html, public/try-sample.html, and public/guides/ask-and-check-sources.html | Change the named constant in its named file in a release, then retest saving, importing, and showing more on phone and desktop. Keep the saved library on the same device and browser. |
| Notification quotas for a new workspace | At most 3 notifications per person per college workspace per college local day across all kinds, with a scheduled summary counting as 1. At most 5 non-essential notifications per person per week, with a send past a cap queued for the next daily or weekly digest. One unsent item per thread, theme, or source per recipient, with a second trigger within 24 hours updating that item. At most 1 reminder per thread per 24 hours and at most 2 reminders per thread without a reply. A duplicate is suppressed for 72 hours after the recipient read the thread or opened the summary in the last 24 hours. No non-essential send between 21:00 and 08:00 college local time, with a send in quiet period queued for 08:00 the next day. Source review reminders are at 14 days before, 7 days before, and 1 day before the review date, then one weekly overdue digest, with no daily repeat. Scheduled summaries are off by default, one cadence per recipient, weekly or monthly, not both. | public/notifications.html and public/guides/read-reports.html | Change a quota in the app in a release and state the new quota on the notifications page in the same change. Do not set a quota in page text, in a link, or in a form field. Keep every reminder off by default for a new workspace. |
| List maximum in the documented sample | 200 rows. The APPKIT.md sample list query uses LIMIT 200. For a new list, start at or below 200 rows per list query and open the list behind a number instead of loading every row. | APPKIT.md, sample list query | Change the row limit in the list query in the app source in a release, with a test that the list still opens on a phone. Do not state a server pagination maximum on this page until it is documented in the pack. |
| Duplicate handling, rate handling, and model use | No new rate limit, token cap, or throttle is added on this page for Majic model use. Existing duplicate prevention in public/site.js blocks a second submit while one is in progress and after a successful send. A scheduled summary or reminder is not added on this page for per-question or per-rating sends. | public/site.js, form submit guard and request reference | None on this page. A rate limit change, if ever documented, ships as its own reviewed change and is not set in page text. |
If a value is not listed here, it is not documented in this site pack. Do not invent a timeout, payload limit, pagination maximum, or rate limit on this page. Ask for the server value in the demo walkthrough and add it here in the same change that ships it. Read Status for the live check and Get started for first steps.
Safe-defaults template for a new college workspace
Copy this checklist into your pilot plan. Set each required item in the app before you move to the next item.
Sign in and confirm the college name
Open Sign in and confirm the college name at the top of the app. If the name is wrong, stop and switch workspace before you add anything. One workspace holds one college.
Confirm the DB and FILES bindings are in place
Confirm that the D1 database binding named DB is bound for the app and that the R2 bucket binding named FILES is bound for file sources. Do not add secret values to pages, code, or forms.
Set name, colors, roles, and navigation
Set the app name and colors. Keep the first signed-in person as the only college administrator and assign no other role. Set navigation so each screen stays hidden until its listed permission is granted to every role that should see it.
Keep the workspace restricted
A new workspace starts with only the first signed-in person as college administrator, and with nothing else granted. No other role is assigned, and no view full questions permission, no export permission, and no approval permission is granted by default. No source is approved, no assistant is published, no widget is live, no scheduled summary is scheduled, no report export is available, and no source is shared across colleges. A widget embed code is not created, and no widget is live, until at least one source is approved for that college, one assistant is tested and approved, a handoff office is named, and the retention rule is set. Private sources stay in one college workspace until system office governance staff mark a source shared in Sources. The workspace itself stays private and hidden, with no public link. A newly invited person starts with no role until a college administrator assigns one role in Team, and a newly created role starts with no screen and no permission until each one is granted on purpose. The install invitation stays off and the widget embed code stays not created until the checks below pass.
Approve one source
Follow Approve a source. Add one college web page, file, or collection, name the owner office, set the review date, and get it approved by a different person.
Build and test one assistant
Follow Build an assistant and Test answers. Choose only approved sources for this college, name the handoff office, open the test panel, and mark the result pass before approval.
Set retention and access, then publish the widget
Follow Set retention and access and confirm each rule on screen and in the audit entry. Then follow Publish the widget. Publish to a test page first, test as a visitor, then publish on a live page.
Template in plain text
Documentation template only. Do not paste secret values into this template or into any page.
# Required bindings (from APPKIT.md)
DB = D1 database binding. Required. One database for the app.
FILES = R2 bucket binding. Required for file sources. Private. No public read.
# Optional server reference
vault_reference: by reference and purpose only, server side only, never returned. No value in this template.
# Required app settings (set in the app)
app_name: Campus Answers
colors: theme colors for the college
roles_and_permissions: least privilege. One role per person. The first signed-in person is college administrator only. No other role is assigned. No view full questions, no export, and no approval permission is granted by default.
navigation: a screen stays hidden by default. List a screen only when every role that should see it holds the listed permission.
# Production defaults comparison (no values, no new names)
base_url: canonical https://campus.appmajic.ai/ as documented in page metadata. No variable name documented. Fail closed if deployment address does not match canonical address.
majic_auth_callback: no variable name or address documented in this pack. Configured only in locked platform files. Fail closed to not ready when missing or mismatched. No local or test fallback.
cookie_domain: no variable name or value documented in this pack. Host-only session default. Fail closed to host-only when missing. No broad domain set in college setup.
cors_origins: no origin list or variable name documented in this pack. Public endpoints documented are /api/health and /api/public/request only. Fail closed with no wildcard origin when missing.
# Required safe defaults for a new college workspace. Private by default.
roles_assigned: creator as college administrator only
new_user_default_role: none_assigned. A newly invited person has no role until a college administrator assigns one role in Team.
new_role_default_permissions: none_granted. A newly created role has no screen and no permission until a college administrator grants each one on purpose.
workspace_visibility: private_hidden. Not listed on the public site, no public link, not shown in system view detail. Only members with an assigned role can open it.
published_assistants: none
approved_sources: none
widget_live: no
widget_embed_code: not created
install_invitation: off_until_signed_in_and_published. Shown only in the signed-in app after sign-in.
sign_in: MAJIC account required for personal questions
public_widget: public approved sources only
retention: retention days or session-only mode, set in Governance before student use and confirmed on screen and in the audit entry
handoff_office: required in the office directory before publishing an assistant. Do not invent contact details.
# Opt-in settings. Off by default. Turn each one on in the app only when the college is ready.
cross_college_shared_sources: off. A source stays in one college workspace until system office governance staff mark it shared in Sources.
scheduled_summaries: off. No recipient until staff choose a recipient, a college, an assistant, and one cadence for that recipient. Only recipients who hold the export permission stay on the list. Counts and themes only, never full question text.
report_exports: off. Export needs the export permission. Reading full question text needs a separate detail permission. Files never include student identifiers by default.
# Endpoints (no values)
live_check: /api/health with no sign-in. Public. Shows only whether the service is live.
readiness_check: signed-in staff only. Shows only ready or not ready for the database, MAJIC sign-in, and workspace store.
public_request: /api/public/request for demo and question forms only.
# Optional items
widget_title_and_welcome: plain text that names the college and the assistant
starter_questions: three to five starter questions for the assistant job
additional_assistants: add one job at a time after the first assistant passes
language: English, and Spanish where the college offers both
analytics_opt_out: CAMPUS_ANALYTICS_OPT_OUT, Do Not Track, or Global Privacy Control stops in-memory analytics
# Operational safe defaults (documented in this pack, see table above)
# Override rule: change only the named source file in a release, retest on phone and desktop, keep the safe default unless that retest supports a change.
form_submit_timeout_ms: 30000
form_submit_max_attempts: 3
form_submit_retry_delays_ms: 600, 1800
form_submit_retry_after_cap_ms: 5000
status_probe_timeout_ms: 8000
status_probe_max_attempts: 2
status_probe_retry_delay_ms: 800
app_load_attempt_timeout_ms: 10000
app_load_max_attempts: 4
app_load_base_retry_ms: 800
app_load_max_retry_ms: 8000
app_load_jitter_ms: up to 250
app_reload_fallback_ms: 1500
app_watchdog_interval_ms: 4000
app_watchdog_empty_checks: 2
app_nav_breakpoint_px: 900
app_keyboard_height_px: 60
app_focus_scroll_delay_ms: 120
app_observer_debounce_ms: 120
app_cfg_validator_ranges: scriptTimeoutMs 1000 to 60000, maxAttempts 1 to 10, baseRetryMs 0 to 10000, maxRetryMs 0 to 60000, jitterMs 0 to 1000, reloadFallbackMs 0 to 10000, watchdogIntervalMs 1000 to 30000, watchdogEmptyChecks 1 to 10, navBreakpointPx 320 to 2000, keyboardHeightPx 0 to 500, focusScrollDelayMs 0 to 2000, observerDebounceMs 0 to 2000
app_return_after_signin_ttl_ms: 1800000
service_worker_idle_timeout_ms: 2000
speech_language_fallback: en-US
status_watchdog_ms: 20000
route_error_suppression_ms: 3000
draft_debounce_ms: 250
filter_debounce_ms: 120
my_answers_search_debounce_ms: 120
analytics_max_events_in_memory: 100
public_form_max_characters: name 120, email 254, college 200, message 4000
guides_index_max_characters: title 200, topic 80, source_link 500
my_answers_max_characters: title 200, question 2000, answer 4000, source_title 200, source_link 500, last_checked 80, collection 80, workspace 120, assistant 120
my_answers_history_max: 20
my_answers_page_size: 20
my_answers_import_max_bytes: 2097152
my_answers_import_max_answers: 500
my_answers_import_max_collections: 100
my_answers_import_max_history: 100
offline_import_chunk: 50
offline_render_window: 50
sample_history_max_items: 20
personal_collection_name_max_characters: 40
list_sample_max_rows: 200
notification_daily_cap_per_person_per_workspace: 3
notification_weekly_cap_non_essential: 5
notification_dedupe_window_hours: 24
notification_per_thread_max_without_reply: 2
notification_suppression_after_read_hours: 72
notification_quiet_period: 21:00 to 08:00 college local time
source_review_reminder_days_before: 14, 7, 1, then weekly overdue digest
model_token_cap: none added on this page
new_rate_limit: none added on this page
Fail-fast validation before publishing
Run these checks in order. Any fail stops publishing. The checks show pass or fail and ready or not ready only. They never show a secret value, an address, or a configuration value.
Check the college workspace first
Confirm the college name at the top of the app and that Today shows work for that college only. Fail action: stop, switch workspace, and do not add or publish work in another college workspace.
Check the required bindings
Confirm DB is bound for the app and FILES is bound when file sources are used. Fail action: do not publish. Ask the platform owner to bind the named item and run the readiness check again.
Check for placeholder production values
Search every production field for bracket placeholders such as college name, covered topics, handoff office name, or your college, and for filler wording that is not a real college value. A starter question that matches a real approved source is not a placeholder. Fail action: replace the placeholder with a real college value from the office directory or the approved source, then re-run this check. Do not publish while any placeholder remains.
Check required settings are set on purpose
Confirm roles and permissions, navigation permissions, retention days or session-only mode, and a named handoff office. Confirm the workspace is still private and hidden with no public link, confirm every invited person who should see work has one assigned role in Team and every other invited person has no role, confirm every role has only the screens and permissions granted on purpose, and confirm the install invitation is off and the widget embed code is not created. Fail action: set the missing item in the app, save it, and confirm the audit entry where the guide asks for one. Do not publish with a blank required setting, with a public workspace, with an unassigned role that can see work, or with an install invitation or embed code created early.
Check the live check, then the readiness check
Run the live check on Status with no sign-in. It must show live. Then sign in and run the readiness check on the same page. Each dependency must show ready. Also confirm base URL matches the canonical address, MAJIC callback matches the canonical address in locked files, cookie session is host-only, and only documented public endpoints are public with no wildcard origin. If any of those four checks fails, the readiness result is not ready and publishing is blocked. No value is recorded for any of them. Fail action: do not publish. Check the connection, confirm the college name, and try again. A 401 or 403 answer means sign-in is required.
Check the first answer before you publish
Open the test panel, ask one question the approved source can answer, open each source link, and confirm the source title, link, and last checked date match the source record. Fail action: fix the source or wording and test again. Do not publish an answer with no listed source.
Validation result in plain text
Record the result for the pilot plan. Record pass or fail and the date checked. Do not record a secret value or a configuration value.
college_workspace: pass or fail. College name at top of app matches this college.
db_binding: pass or fail. Required. No value recorded.
files_binding: pass, fail, or not needed. Required for file sources. No value recorded.
placeholder_check: pass or fail. No bracket placeholder or filler value remains in a production field.
required_settings: pass or fail. Roles, navigation permissions, retention or session-only mode, and handoff office are set.
workspace_visibility: pass or fail. Private and hidden, no public link, not shown in system view detail.
install_settings: pass or fail. Install invitation off until signed in and published, widget embed code not created.
base_url_check: pass or fail. Deployment address matches canonical https://campus.appmajic.ai/ documented in page metadata. No value recorded.
auth_callback_check: pass or fail. Callback configured in locked platform files and matches canonical address. No value recorded.
cookie_domain_check: pass or fail. Host-only session default in place. No broad domain set in college setup. No value recorded.
cors_check: pass or fail. Only documented public endpoints are public. No wildcard origin set in college setup. No value recorded.
live_check: pass or fail. Public. Shows only live or not live.
readiness_check: pass or fail. Signed-in only. Shows only ready or not ready per dependency.
first_answer: pass or fail. At least one source link opens and matches the source record.
publish: allowed only when every line above is pass. Any fail stops publishing.
Fail-fast for missing bindings and missing secrets
Run this matrix in order before publishing. Any fail stops publishing. The check shows pass or fail and ready or not ready only. It never shows a secret value, an address, or a configuration value.
| Missing or wrong item | What the check shows | Stop action |
|---|---|---|
| DB binding missing | Readiness not ready for the database | Do not publish. Ask the platform owner to bind DB and run readiness again. Do not use a fallback database. |
| FILES binding missing when file sources are used | Readiness not ready for file sources, as a separate fail-fast binding check. The readiness route returns exactly database, sign_in and workspace_store and does not add a fourth FILES key | Do not publish file sources. Ask the platform owner to bind FILES. Do not use public storage as a fallback. |
| Vault reference missing, or a secret value in code, config, logs, or a page | Fail. That feature is unavailable | Remove the value from code, config, logs, and pages. Use a reference only, on the server side, with a purpose. Never return the value to a page. |
| Bracket placeholder or filler wording in a production field, such as college name, covered topics, handoff office name, or your college | Fail on the placeholder check | Replace the placeholder with a real college value from the office directory or the approved source, then re-run the check. Do not publish while any placeholder remains. |
| Roles, navigation permissions, retention or session-only mode, or handoff office blank | Fail on required settings | Set the missing item in the app, save it, and confirm the audit entry where the guide asks for one. Do not publish with a blank required setting. |
| Live check does not show live | Not live, or check did not complete | Do not publish. Check the connection and run the check again on Status. A 503 answer means the service answered but is not confirmed as live. |
| Readiness shows not ready for database, MAJIC sign-in, or workspace store | Not ready for that item, signed-in staff only | Do not publish. Sign in first, confirm the college name, and try again. A 401 or 403 answer means sign-in is required. The public live check never runs this check. |
| First test answer lists no source, or title, link, or last checked date does not match the source record | Fail on first answer | Fix the source or wording and test again. Do not publish an answer with no listed source. |
| College name at the top of the app is wrong, or no workspace for the college is shown | Fail on college workspace | Stop, switch workspace, and do not add or publish work in another college workspace. If no workspace is shown, request a demo first. |
Health checks and status
Use the status page for a fresh check without sharing internal detail.
Live check
The live check asks the live address with no sign-in and always fresh. A success answer means the service is live. It never shows database, sign-in service, or workspace store status, and it never shows version or configuration detail. Read more on Status.
Readiness check for signed-in staff
The readiness check runs only with your sign-in. It verifies the database, the MAJIC sign-in service, and the workspace store for a college workspace, and shows only ready or not ready for each item. It never runs in the public live check.
If the live check does not complete, check the connection and run the check again. If the readiness check does not complete, sign in first, confirm the college name, and try again.
Secrets, vault references, and locked files
Keep secrets out of this template and out of every page, code file, log, and form.
- Code reads a saved sign-in or key by vault reference only, on the server side, and never returns it. Use the server helper that takes a vault reference and a purpose.
- Do not add a secret value, password, token, or API key to code, config, logs, pages, or output. Do not add one to this template.
- Do not change platform files that are locked for sign-in, sessions, tenancy, vault, browser, media, files, and router. Do not change deploy workflows, CI files, infrastructure scripts, or database migrations for a college setup.
- File uploads use the signed-in app upload step. Public routes return only what that page needs and find the college from the record they serve.
- Every app SQL statement is scoped by tenant_id. App tables each hold a tenant_id field.
Read Security and privacy for what is kept, where it is kept, and how long each college rule keeps it. Read Get started for the order of first steps.
Start with one source and one assistant
Set the required bindings, keep the workspace restricted, and publish only after a source is approved and an assistant passes its test.