Operations

Configuration manifest for Campus Answers

Complete inventory of bindings, environment variable names, config constants, and feature flags referenced in this pack, with required or optional status, safe defaults, and fail-fast checks. Read with Configuration and safe defaults and Status.

How to read this manifest

Required means the item must be set before publishing or before student use. Optional means the safe default is off or unset. Safe default means the value already documented in this pack. Fail-fast means the check fails, publishing stops, and no fallback value is used.

  • Required items have no fallback. A missing required binding, setting, or handoff office stops publishing.
  • Optional items stay off by default. Turning one on is a deliberate choice in the app, in the named source file, in a release.
  • No secret value, password, token, or key is listed here. Code reads a saved sign-in or key by reference only, on the server side, and never returns it.
  • When a name is not documented in this pack, do not invent one. Set only the named items in the app screens and in the guides linked from this page.
  • A value is changed only in the named source file, through the normal build, after a retest on phone and desktop. Do not change a value in page text, in a link, or in a form field.

Bindings and environment variables

Every app table holds a tenant_id field, so work stays in one college workspace. No environment variable name beyond the two bindings below is documented in this pack.

Bindings, with required or optional status, safe default, where set, and fail-fast behavior
EntryRequired or optionalSafe defaultWhere set in this packFail-fast when missing
DB, the D1 database bindingRequiredOne database for the app. No extra database is needed for a pilot.APPKIT.md, app kit Worker with D1 database DBReadiness shows not ready for the database. Do not publish. No fallback database is used.
FILES, the R2 bucket bindingRequired for file sourcesPrivate bucket with no public read. Files are cited only after a source is approved.APPKIT.md, R2 bucket FILES, file upload helperFile sources are unavailable. Do not publish file sources. No fallback public storage is used. This is a separate fail-fast binding check. The readiness route in Health endpoints returns exactly database, sign_in and workspace_store and does not add a fourth FILES key.
Vault reference, server side onlyOptional unless a saved sign-in or key is usedNo reference for a pilot that needs no saved sign-in or key. Never add a value to code, config, logs, or pages.APPKIT.md, saved sign-in or key by reference and purposeThat feature is unavailable. Do not embed a secret as a fallback and do not return a value to a page.
Any other environment variable nameNot documentedDo not invent a name. Use only DB and FILES above.Operations page states no other name is documented in this packStop and ask for the documented name in the demo walkthrough. Do not add an undocumented name in a release.
MAJIC sign-in service and college identity providerRequired before student useSign in with a MAJIC account for the college company. Where a college has set it up, sign in through the college identity provider using SAML 2.0 or OpenID Connect.Security and privacy, get started guide, status readiness checkSign-in fails or readiness shows not ready. A failed or missing sign-in routes to the handoff office, never to a public answer. Do not publish personal assistants.
CAMPUS_ANALYTICS_OPT_OUTOptionalUnset. In-memory events stay on the page, capped at 100, with no network request, beacon, cookie, or storage.public/site.js, client window flag, not an environment variableNo failure. Absence means the default in-memory behavior applies. Setting the flag to true suppresses all events.

Feature flags and toggles

Each toggle is per college workspace unless stated as personal. A toggle for one college does not change another college.

Feature flags, with required or optional status and safe defaults
FlagRequired or optionalSafe defaultWhere set in this pack
Do Not Track signalOptionalWhen present, in-memory analytics events are suppressedpublic/site.js, analytics block
Global Privacy Control signalOptionalWhen present, in-memory analytics events are suppressedpublic/site.js, analytics block
Test and staff preview label, is_testRequired labelingTest sessions are labeled as test and excluded from usage and satisfaction countsReports, test answers guide, answer quality guide
Retention days or session-only modeRequired before student useSet in Governance and confirmed on screen and in the audit entry. Session-only mode keeps nothing after the session endsSet retention and access guide, operations template
Cross-college shared sourceOptional, off by defaultPrivate to one college. A source stays in one workspace until system office governance staff mark it shared in SourcesOperations bindings table, sources page
Scheduled report summariesOptional, off by defaultOff. No recipient, no cadence, until authorized staff choose a recipient, a college, an assistant, and one cadence, weekly or monthly, not bothOperations bindings table, reports page, read reports guide
Report exports and reading full question textOptional, off by defaultOff. Export needs the export permission. Reading full question text needs a separate detail permission. Each is audit loggedOperations bindings table, reports page
Widget embed code creationOptional, off by defaultNot created. Created only after at least one source is approved, one assistant is tested and approved, a handoff office is named, and retention is setOperations bindings table, publish widget guide, widget page
Mute all reminders for one collegeOptionalOff. Turning mute all on pauses every type in that workspace only, and work in the app is not changedNotification preferences page
Speech dictation, Dictate buttonOptional, off where unsupportedNo Dictate button when SpeechRecognition is missing or the context is not secure. The field stays open for typing and no voice is sent. Language falls back to en-US when document lang is missing. Dictation never sends a form on its own.public/site.js, dictation block, accessibility voice use section
Service worker registrationOptionalRegister on idle or load with a 2000 millisecond idle timeout, failure caught. The page works without the service worker. No polling is added.public/site.js, service worker registration, public/app/index.html registerServiceWorkerOnce

Config constants: timeouts, retries, debounce, and watchdogs

Safe default means the value already in code in this pack. Rows marked new close a gap where the operations page did not list the constant.

Timeout, retry, debounce, and watchdog constants
ConstantSafe defaultWhere set in this packOverride rule
Public form submit timeout, SUBMIT_TIMEOUT_MS30000 ms. Entries stay on the page on timeoutpublic/site.jsChange that constant in public/site.js in a release, then retest demo and question forms on phone and desktop
Public form submit attempts, SUBMIT_MAX_ATTEMPTS, new3 attempts at most, reusing the same request reference, so a retry does not create a duplicate requestpublic/site.jsChange that constant in public/site.js in a release, then retest both forms. Keep 3 unless that retest supports a change
Public form retry delays, SUBMIT_RETRY_DELAYS_MS, new600 ms, then 1800 ms. A Retry-After header is capped at 5000 mspublic/site.js, retryDelayMs and retryAfterMsChange those values in public/site.js in a release, then retest retries. Keep 600, 1800, and 5000 unless that retest supports a change
Status live check timeout8000 ms, no sign-in, no stored details, no cache. Runs on page load and only again on Check again. No pollingpublic/site.js, status probeChange the timeout in public/site.js in a release, then retest the status page. Do not add polling
Signed-in app load, scriptTimeoutMs, maxAttempts, baseRetryMs, maxRetryMs10000 ms per attempt, 4 attempts at most, retry delays starting at 800 ms, doubling, capped at 8000 ms, with up to 250 ms jitter. Delays are about 800, 1600, and 3200 ms before jitterpublic/app/index.html, loadAppScriptChange those values in public/app/index.html in a release, then retest app loading on phone and desktop
Signed-in app reload fallback1500 ms. Reload proceeds if a service worker update does not finish in that timepublic/app/index.html, reloadFresh fallback timerChange the fallback timer in public/app/index.html in a release, then retest Reload the page
Signed-in app empty-content watchdogChecks every 4000 ms. After 2 consecutive checks with no visible main content, shows a reload messagepublic/app/index.html, startWatchdogChange the interval or threshold in public/app/index.html in a release, then retest loading and Keep viewing this page
Signed-in app nav breakpoint, navBreakpointPx, new900 pixels. Valid range 320 to 2000 in the CFG validator. An invalid or missing value falls back to 900. At or below this width the signed-in app shows the navigation toggle and drawer. Above this width the navigation is shown in place. Failure mode when unset: the mobile nav drawer breakpoint falls back to 900, the menu stays reachable by keyboard, and the loader does not crashpublic/app/index.html, CFG navBreakpointPx, app config validation before useChange CFG in public/app/index.html in a release, then retest nav drawer at 320, 768, 900 and 1024 pixels and navigation on phone and desktop. Keep 900 unless that retest supports a change
Signed-in app keyboard height threshold, keyboardHeightPx, new60 pixels. Valid range 0 to 500. An invalid or missing value falls back to 60. The app marks the keyboard open only when the visual viewport height falls by more than this amount. Failure mode when unset: the kb-open class threshold falls back, layout does not shift and no crash occurspublic/app/index.html, CFG keyboardHeightPx, keyboard viewport handlingChange CFG in public/app/index.html in a release, then retest on a phone with the on-screen keyboard open, and retest focus and scrolling on a phone with a software keyboard. Keep 60 unless that retest supports a change
Signed-in app focus scroll delay, focusScrollDelayMs, new120 milliseconds. Valid range 0 to 2000. An invalid or missing value falls back to 120. The delay applies after focus on a field before scrolling it into view. Failure mode when unset: focus scroll uses the 120 millisecond delay, focus stays visible, no crashpublic/app/index.html, CFG focusScrollDelayMs, focus handlingChange CFG in public/app/index.html in a release, then retest keyboard focus scroll on phone and desktop and keyboard focus on a phone. Keep 120 unless that retest supports a change
Signed-in app observer debounce, observerDebounceMs, new120 milliseconds. Valid range 0 to 2000. An invalid or missing value falls back to 120. Navigation and table observers wait this long after a change before refreshing. Failure mode when unset: MutationObserver refresh uses the 120 millisecond debounce, no refresh loop, no crashpublic/app/index.html, CFG observerDebounceMs, navigation and table observersChange CFG in public/app/index.html in a release, then retest nav and table refresh after DOM changes and navigation and table labels after a screen change. Keep 120 unless that retest supports a change
Public site service worker registration idle timeout, new2000 milliseconds passed to requestIdleCallback, with a setTimeout 0 fallback where idle callback is unavailable. Registration failure is caught. Failure mode when unset or unsupported: no service worker is registered, the page works normally, and no polling is addedpublic/site.js, scheduleRegistrationChange the timeout in public/site.js in a release, then retest service worker registration on phone and desktop
Speech dictation language fallback, newdocument.documentElement.lang, falling back to en-US when missing. Failure mode when unset or unsupported: the status states dictation is not available, the field stays open for typing, and no voice is sentpublic/site.js, recognition.lang, accessibility voice use sectionChange the fallback in public/site.js in a release, then retest dictation status wording on the accessibility page
Status page not-started watchdog20000 ms. If the live check has not started in 20 seconds, shows Check did not startpublic/status.htmlChange the timeout in public/status.html in a release, then retest with the page script blocked and with a normal load
404 route-error suppression3000 ms. A second show within 3 seconds is suppressedpublic/404.htmlChange the window in public/404.html in a release, then retest the 404 page with repeated errors
Form draft debounce, DRAFT_DEBOUNCE_MS250 ms after typing stopspublic/site.js, guides index draft saveChange that constant in the named file in a release, then retest draft saving
Filter debounce, FILTER_DEBOUNCE_MS, and My Answers search debounce, new120 ms after typing stops, on terminology, guides, and My Answerspublic/site.js, public/guides/index.html, public/my-answers.html scheduleSearchRenderChange the value in the named file in a release, then retest filtering on phone and desktop
Analytics in-memory cap, MAX_EVENTS, new in operational table100 events in memory, no network request, beacon, cookie, or storagepublic/site.js, analytics blockChange that constant in public/site.js in a release. Keep in-memory only behavior
Status live check attempts, HEALTH_MAX_ATTEMPTS, new2 attempts in total, 1 retry at most. 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, live checkChange that constant in public/status.html in a release, then retest the status page with a live, a not live, and a failed check. Keep 2 unless that retest supports a change
Status live check retry delay, HEALTH_RETRY_DELAY_MS, new800 ms between the two live check attemptspublic/status.html, live checkChange that value in public/status.html in a release, then retest the status page. Keep 800 unless that retest supports a change

Config constants: payload limits and list limits

Keep page validation, maxlength on each field, and server limits in step. Do not accept a larger payload in page text.

Payload and list limits
LimitSafe defaultWhere set in this pack
Public form fieldsName 120 characters, work email 254, college or system office 200, message 4000public/request-demo.html, maxlength on each field
Guides index saved itemsTitle 200 characters, topic 80, source link 500public/guides/index.html, maxlength on each field
My Answers saved itemsTitle 200, question 2000, short answer 4000, source title 200, source link 500, last checked date 80, collection name 80, college workspace 120, assistant 120public/my-answers.html, LIMITS and maxlength on each field
My Answers history20 most recent opened or re-asked items keptpublic/my-answers.html, history slice of 20
My Answers list page size, PAGE_SIZE, new20 items per Show more page. Failure mode when unset: the list renders in pages of 20, Show more adds 20, no crash and no full-list loadpublic/my-answers.html, PAGE_SIZE and shownLimit
My Answers import, newFile 2 MB at most, 500 answers, 100 collections, and 100 history entries per import. Extra entries are skipped and counted. A file that is empty, over 2 MB, not JSON, or not in my-answers.json form is rejected without changing the saved librarypublic/my-answers.html, IMPORT_MAX_BYTES, IMPORT_MAX_ANSWERS, IMPORT_MAX_COLLECTIONS, IMPORT_MAX_HISTORY, and import help text
Offline tools import chunk and render window, IMPORT_CHUNK and RENDER_WINDOW, new50 entries processed per import batch, and 50 entries rendered initially with Show more adding 50. Failure mode when unset: import runs in batches of 50 and stops incomplete with a resume or discard choice if storage fails, and is not counted as imported until every entry is saved and checked. The render window does not change saved itemspublic/offline.html, IMPORT_CHUNK and RENDER_WINDOW
Sample history cap, MAX_ITEMS, new20 sample questions kept on this device, oldest dropped. Failure mode when unset: the list is capped at 20, no crash, and no sample item is sent to a serverpublic/try-sample.html, MAX_ITEMS
Personal collection name, new40 characters at mostpublic/guides/ask-and-check-sources.html, personal collection name field
List sample maximum200 rows in the documented sample list query. Start a new list at or below 200 rows per queryAPPKIT.md, sample list query with LIMIT 200
Public request endpoint/api/public/request for demo and question forms only. Forms stay hidden after a successful send. A failed send keeps entries for one retry with the same request identifierOperations bindings table, request demo page, public/site.js form submit
Live check endpoint/api/health with no sign-in. Shows only live or not live, with no dependency, version, or configuration detailOperations bindings table, status page, public/site.js status probe

Notification limits already stated in this pack

These limits are stated on the notification preferences page, the reports page, the read reports guide, and the work unanswered guide. They are inventoried here so a scheduled send is not set from memory.

  • Per person per college workspace per college local day: at most 3 notifications across all kinds. A scheduled summary counts as one.
  • Per person per week: at most 5 non-essential notifications. A send past a cap queues for the next daily or weekly digest and is not sent the same day.
  • Deduplication: one unsent item per thread, theme, or source per recipient. A second trigger within 24 hours updates the item and adds to its count. It does not create a second send.
  • Per thread: at most 1 reminder per thread per 24 hours and at most 2 reminders per thread without a reply. After the second, the item stays in the work queue only.
  • Suppression after read: if the recipient read the thread or opened the summary in the last 24 hours, a duplicate for that item is suppressed for 72 hours.
  • Quiet period, safe default: no non-essential send between 21:00 and 08:00 college local time. A send in quiet hours queues for 08:00 the next day. That 21:00 start is stated on the notification preferences page, the reports page, and the work unanswered guide. One anti-spam section in the read reports guide states 22:00. Do not use 22:00 as an override until that section is corrected to match the other three places.
  • Source review reminders: 14 days before, 7 days before, and 1 day before the review date, then one weekly overdue digest. No daily repeat. Reminders stop after re-approval, suspension, expiry, or retirement.
  • Scheduled summaries: one cadence per recipient per college and assistant, weekly or monthly, not both. At most 1 scheduled summary per recipient per day in the read reports anti-spam rules.
  • After the work is done, pending reminders for that item are canceled the same day. After unsubscribe, scheduled sends stop for that person from the unsubscribe time for the next scheduled send. Resubscribe is by explicit opt-in in the app only.

Test and staff preview sessions never send a notification and never count toward a cap. Each send, queue, and suppression is recorded with college workspace, recipient, kind, item, college local time, and reason where it applies. Read Notification preferences and Read reports before scheduling a summary.

Fail-fast matrix for missing secrets and required items

Run these checks in order before publishing. 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.

Missing item, what the check shows, and the stop action
Missing or wrong itemWhat the check showsStop action
DB binding missingReadiness not ready for the databaseDo 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 usedReadiness 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 keyDo 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 pageFail. That feature is unavailableRemove 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 collegeFail on the placeholder checkReplace 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 blankFail on required settingsSet 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 liveNot live, or check did not completeDo 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 storeNot ready for that item, signed-in staff onlyDo 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 recordFail on first answerFix 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 shownFail on college workspaceStop, switch workspace, and do not add or publish work in another college workspace. If no workspace is shown, request a demo first.

Template in plain text

Documentation template only. Do not paste secret values into this template or into any page. Set each required item in the app before you move to the next item.

# Required bindings
DB = D1 database binding. Required. One database for the app. Every app table holds tenant_id.
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
app_name_and_colors: set in the app. Bracket placeholders fail the placeholder check.
roles_and_permissions: least privilege. First signed-in person is college administrator only. No other role by default. No view full questions, no export, and no approval permission by default.
navigation: a screen stays hidden until its listed permission is granted to every role that should see it.
handoff_office: required in the office directory before publishing. Do not invent contact details.
retention_or_session_only: required before student use. Set in Governance and confirmed on screen and in the audit entry.

# Opt-in settings, off by default
cross_college_shared_sources: off. Private to one college until system office governance staff mark a source shared.
scheduled_summaries: off. One cadence per recipient, weekly or monthly, not both. Counts and themes only.
report_exports: off. Export needs the export permission. Reading full question text needs a separate detail permission.
widget_embed_code: not created until a source is approved, an assistant is tested and approved, a handoff office is named, and retention is set.

# Feature flags, optional
analytics_opt_out: CAMPUS_ANALYTICS_OPT_OUT, Do Not Track, or Global Privacy Control stops in-memory analytics.
test_label: test and staff preview sessions are labeled as test and excluded from counts.
mute_all: off. Per college workspace only. Work in the app is not changed.
speech_dictation: no Dictate button when SpeechRecognition is missing or the context is not secure. Language falls back to en-US. Type instead, no voice sent.
service_worker_registration: register on idle or load, 2000 ms idle timeout, failure caught. Page works without service worker.

# Endpoints, no values
live_check: /api/health with no sign-in. Public. Shows only live or not live.
readiness_check: signed-in staff only. Shows only ready or not ready per dependency.
public_request: /api/public/request for demo and question forms only.

# Operational safe defaults
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
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_import_max_bytes: 2097152
my_answers_import_max_answers: 500
my_answers_import_max_collections: 100
my_answers_import_max_history: 100
my_answers_history_max: 20
my_answers_page_size: 20
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
new_rate_limit: none added on this page for answer generation
new_token_cap: none added on this page for answer generation

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.

Checks before you use this manifest

Verify each value in the named source file before you rely on it in a meeting or a pilot plan.

  • DB and FILES are bound, and the vault reference, if any, is by reference only with no value in code, config, logs, or pages
  • No bracket placeholder remains in a production field, and each required setting is set on purpose in the app
  • The live check shows live, then the signed-in readiness check shows ready for each dependency, before publishing
  • The first test answer lists a source with title, link, and last checked date that match the source record
  • Timeout, retry, debounce, import, and payload values above match the named source file at the shipped revision
  • Notification caps and quiet hours above match the notification preferences page, and the single 22:00 mention is not used as an override

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.