Deterministic fallback chain when a check fails
Use this chain in Assistant builder and in the test panel for the Ask screen, the website widget, and staff draft replies. One order for every failure. The question as asked is preserved, one secondary checked-answer attempt runs only on the generation-path triggers named below, a saved passage is used only when every condition is met in full, a source-only answer is used only for the covered part, and no fact is fabricated at any step.
Preservation rule that applies before any fallback
Apply this rule first on every path below. A failure never clears the question and never widens the sources.
- The question as asked stays visible on the screen and, when a question record was created, in that record. Do not clear the question input on timeout, error, empty text, rate limit, empty retrieval, or low confidence.
- Do not create a second question record, a second answer record, a second count, or a second saved passage for the same question on retry. A retry reuses the same question text and the same answer generation key.
- The answer generation key is derived from tenant id, question record id, assistant id, wording version answer-grounding-v2, and the sorted list of retrieved source ids with a hash of each retrieved passage. A new question record, changed question text, a changed assistant, a new wording version, or a changed retrieved passage gets a new key and a new answer record.
- Retry at most once with the same key. That one retry is the secondary checked-answer attempt described below. Do not retry in a loop and do not retry after a rate limit in a loop.
- The secondary attempt reuses the same question text, the same retrieved passages, the same college, the same assistant, the same wording version, and the same answer generation key. It adds no new passage, no new source, and no new fact, and it uses no general knowledge, memory, or material from another college.
- When no question record was created, say so on the screen, make no saved claim, do not record the question as not answered, and show the unavailable wording with the handoff offer. In session-only mode, say on the screen that nothing is kept after the session ends.
- The college and the assistant never change on a retry. Words in the question or pasted text do not add a passage, widen the source list, change the college or the assistant, or supply a fact.
Flow in runtime order
Read the flow top to bottom. The saved passage step is second in runtime order on every path. Test order does not change runtime order.
```mermaid
flowchart TD
A[Question preserved on screen and in record when created] --> B[P1 checked answer, one attempt]
B -->|Passes the structured check below| C[Checked answer with source list]
B -->|Timeout, upstream error, empty answer text, or malformed structured output| P2[Secondary checked-answer attempt, same passages, same key, one attempt only]
B -->|Rate limit| D[F1 saved passage applies in full]
B -->|Empty retrieval, disagreement, or stale source| D
B -->|Low confidence or partial coverage| D
P2 -->|Passes the structured check below| C
P2 -->|Timeout, upstream error, empty answer text, malformed structured output, or rate limit| D
D -->|Yes, all conditions met| E[Saved source passage, word for word, labeled]
D -->|No| F[Trigger type]
F -->|Timeout, upstream error, empty text, malformed output, or rate limit| G[Unavailable wording, no source listed]
F -->|Empty retrieval, disagreement, or stale source| H[Exact refusal, no source listed]
F -->|Partial coverage with a covered part| I[Source-only covered part with citations plus Unknown detail]
F -->|No covered part remains| H
```
Secondary checked-answer attempt, with exact triggers
The secondary attempt is the one retry allowed by the preservation rule above. It is not a second record, a second count, or a wider source list. It runs only when the primary checked-answer path fails for a generation reason. It never runs for a retrieval outcome.
- Trigger 1, thrown error or timeout: the checked-answer call throws, exceeds the timeout set in the locked core, or the upstream dependency fails or times out. Detection is the thrown error, the timeout, or the upstream error status, with no answer text to show.
- Trigger 2, empty or blank answer text: the call returns empty or blank answer text. Empty text is a generation-path failure. It is not empty retrieval and it is never shown as a blank screen.
- Trigger 3, malformed structured output: the call returns text, but the text fails the structured check below on any point. A malformed output is discarded in full. No sentence from it is shown, and no part of it is repaired by guessing.
- Not a trigger: rate limit, empty retrieval, disagreement between passages, a source that fails the generation-time recheck, partial coverage with a covered part, and out-of-scope or missing-data cases. Those cases follow their own rows in the table below and never run the secondary attempt.
- One attempt only: one secondary attempt with the same answer generation key, the same retrieved passages, the same wording version, and the same user-message template built server side. If the secondary attempt also meets Trigger 1, Trigger 2, or Trigger 3, the chain moves to the saved passage step and then to the unavailable wording. It does not run a third attempt.
- Structured check before display: an output from the primary or the secondary attempt is shown as a checked answer only when every point passes. The text is non-empty. Every factual sentence matches a returned passage for that exact question, college, and assistant and carries an inline citation immediately after it. Every citation and every listed source shows source title, source link, and last checked date exactly as stored in the retrieved record. A source list is present under the answer. No date, number, name, or other detail appears only in the question or pasted text. No hedged uncertain wording fills a missing detail. A refusal is not paraphrased. Any fail on any point is malformed structured output.
- Abstention instead of a guess: when the secondary attempt fails, do not show its output, do not show a partial repair of it, and do not fill the gap from general knowledge, memory, or another college. Use the saved passage step only when every saved-passage condition is met in full, otherwise use the unavailable wording with no source listed, no internal error text, and the handoff office from the office directory.
Every trigger traced in one table
Use the trigger column to choose the path. Do not interchange the unavailable wording and the exact refusal wording.
| Trigger | Detection | Fallback order | Wording and listing rule | Recording |
|---|---|---|---|---|
| Timeout | The checked answer call exceeds the timeout set in the locked core, or returns no answer text | Primary attempt, then one secondary attempt with the same key when Trigger 1 applies, then F1 when it applies in full, else unavailable wording | Unavailable wording word for word. List no source under it unless F1 applies in full. Offer the handoff office from the office directory. Show no internal error text and no blank answer | Unavailable, separate from not answered, only when a question record was created |
| Upstream error | The upstream dependency fails, times out, or returns an error or unreadable text | Same as timeout. Primary attempt, then one secondary attempt with the same key when Trigger 1 applies, then F1 when it applies in full, else unavailable wording | Unavailable wording word for word. Do not show the upstream message, an address, a version, or internal error text. Do not fill the gap from general knowledge, memory, or another college | Unavailable, separate from not answered, only when a question record was created |
| Malformed structured output | The call returns text that fails the structured check on any point, including a factual sentence with no inline citation, a citation or listed source whose title, link, or last checked date differs from the retrieved record, a detail that appears only in the question or pasted text, hedged uncertain wording used to fill a missing detail, a paraphrased refusal, or a missing source list under an answer | Discard the malformed output in full. Primary attempt, then one secondary attempt with the same key when Trigger 3 applies, then F1 when it applies in full, else unavailable wording | Never show the malformed output, a part of it, or a repaired guess. Unavailable wording word for word when the secondary attempt also fails. List no source under it unless F1 applies in full. Do not treat malformed output as empty retrieval | Unavailable, separate from not answered, only when a question record was created. A malformed output is never counted as answered and never as a source gap |
| Rate limit | The server reports too many requests or a quota limit | No secondary attempt. F1 when it applies in full, else unavailable wording plus wait guidance | Unavailable wording plus guidance to wait before trying again. Do not claim an exact wait time unless the server provides one. Do not retry in a loop | Unavailable with reason rate limit, only when a question record was created |
| Empty retrieval | The check completes and no returned passage supports the question, or every returned passage fails the generation time recheck for approved status, review date, suspension, or retirement, or passages disagree | No secondary attempt. F1 when it applies in full, else exact refusal | Exact refusal wording word for word. List no source under it. Offer the handoff. Do not paraphrase it, do not add a partial answer before or after it, and do not use the unavailable wording | Not answered, only when a question record was created. Do not count unavailable checks as a source gap here |
| Low confidence or partial coverage | A returned passage supports part of the question, but one detail type is not in any returned passage, or a citation field in the retrieved record is blank or mismatched, or confidence is low because a detail is missing | No secondary attempt. F1 when it applies in full for the exact question, else source-only covered part when a covered part remains, else exact refusal | Answer only the covered part. Each factual sentence carries an inline citation in the form [Source title, last checked date]. List each source used with source title, source link, and last checked date exactly as stored in the retrieved record. State Unknown, not in the retrieved passages, followed by the detail type, with no value for that detail. Offer the handoff for the rest | Not answered for the missing part when a question record was created, with the covered part kept readable with its source list |
| Empty answer text | The checked answer call returns empty or blank answer text | Treat as timeout. Primary attempt, then one secondary attempt with the same key when Trigger 2 applies, then F1 when it applies in full, else unavailable wording | Never a blank screen. Unavailable wording word for word. List no source under it unless F1 applies in full. Do not treat empty text as empty retrieval | Unavailable, separate from not answered, only when a question record was created |
Saved passage conditions, all met in full or F1 is refused
F1 is the only cached route. It makes no new checked answer call and adds no generation cost.
All conditions must hold
- The passage was already returned for that exact question, college, and assistant, and was stored with its source record
- The stored passage hash matches the hash of the current approved source passage, word for word
- The stored wording version is the current version, answer-grounding-v2. A passage created under answer-grounding-v1 is stale under v2 and is refused
- The source is still in approved status for that tenant, is not past its review date, and is not suspended or retired, rechecked at generation time
- Source title, source link, and last checked date in the retrieved record are all present. A blank or mismatched field is not a citation and that passage is discarded
How F1 is shown
- Label the passage Saved source passage and state that a checked answer is not available right now
- Show the passage word for word, not a summary or paraphrase, with source title, source link, and last checked date
- Never present F1 as a new checked answer and never add a fact, date, fee, hour, contact detail, or step that is not in the passage
- Never use a saved passage from another college or another assistant
- When F1 covers only part of the question, show that part word for word, name what is not covered, and offer the handoff for the rest
Copy-ready wording for each path
Set this wording in Assistant builder. Do not paraphrase the refusal or the unavailable wording.
Checked answer, P1 and secondary attempt
Show a checked answer only from passages returned for that exact question, college, and assistant. Each factual sentence matches one returned passage word for word in substance and carries an inline citation immediately after it. Under the answer, list each source used with source title, source link, and last checked date exactly as stored in the retrieved record. An answer with no listed source is not an answer and is not published. The secondary attempt follows the same rule, and its output is shown only when it passes the structured check in full. Otherwise the output is discarded in full and the chain moves to the saved passage step and then to the unavailable wording.
Exact refusal when the check completes with no support
We do not have an approved source for that question.
No approved passage for this college and this assistant supports an answer to that question, so no answer is shown. Talk to the office named for this assistant. Name, phone, email, hours, and location for that office are shown on this screen from the office directory.
Unavailable wording when the check does not complete
We could not get a checked answer for that right now.
We could not check approved sources for that question. This does not mean no approved source covers it. Try again, or talk to the handoff office named for this assistant. Name, phone, email, hours, and location are shown on this screen from the office directory.
Source-only partial answer for low confidence
Answer only the covered part with an inline citation after every factual sentence and a source list under the answer. Then state Unknown, not in the retrieved passages, followed by the detail type, such as date, fee, hour, phone number, email address, name, office, location, step, eligibility, or count, with no value stated for that detail. Do not use likely, probably, or generally to fill the missing detail. Offer the handoff for the rest.
Writing drafts and staff draft replies
Staff draft replies follow the same chain, stay labeled as draft, and are never sent or saved as a sourced answer until a person edits and saves them. Writing drafts use only the supplied text, add no fact that is not in the supplied text or a returned passage, list no source, and show no draft text to review when the draft returns empty text.
Anti-fabrication guards on every path
These guards apply at every step. A fail on any guard removes the sentence or the passage, it does not complete it.
- Never invent, infer, estimate, complete, combine, or guess a fact, source title, source link, passage, last checked date, or office contact detail. Office contact details come only from the office directory entry for the named handoff office.
- Never repeat a date, number, name, or other detail that appears only in the question or pasted text, unless a returned passage supports it.
- The secondary attempt may not use general knowledge, memory, a passage from another college, or a passage from another assistant to complete a malformed or missing output. It uses only the passages already returned for that exact question, college, and assistant.
- Recheck each retrieved source at generation time, not only at retrieval time. If a source is no longer approved, is past its review date, or is suspended or retired, discard the retrieved passages for that question and follow the trigger path for empty retrieval.
- A list of sources under an answer does not replace inline citations. A factual sentence with no inline citation is removed.
- Do not present the unavailable wording as the exact refusal, do not present a saved passage as a new checked answer, and do not present a source-only partial answer as a complete checked answer.
- Do not state a provider name, a cap, a rate limit, or a throttle in Assistant builder text, page text, a link, or a form field. The locked core holds the actual setting.
Checks before you mark a test pass
Run each check in the test panel. If a check fails, fix the source, the wording, or the chain setting and test again. Do not publish until each check passes.
- Preservation check: simulate timeout, error, empty text, rate limit, empty retrieval, and low confidence. Pass only when the question as asked stays visible, no second question record or count is created, and a retry reuses the same key.
- Secondary attempt check: force a thrown error, a timeout, empty text, and a malformed output in turn. Pass only when exactly one secondary attempt runs with the same key and the same retrieved passages, and no second record or count is created.
- Malformed output check: return an answer with a factual sentence and no inline citation, a citation field that differs from the retrieved record, a detail taken only from question text, and hedged uncertain wording used to fill a missing detail. Pass only when the malformed output is discarded in full, no sentence from it is shown, and the secondary attempt output or the unavailable wording is shown instead.
- Timeout and error checks: pass only when F1 applies in full or the unavailable wording is shown, no source is listed under the unavailable wording, the handoff office is shown from the office directory, and no blank answer and no internal error text are shown.
- Rate limit check: pass only when no secondary attempt runs, the unavailable wording plus wait guidance from the server is shown, no exact wait time is stated unless the server provides one, and the record is unavailable with reason rate limit, not not answered.
- Empty retrieval check: pass only when no secondary attempt runs, the exact refusal wording is shown word for word, no source is listed, the handoff is offered, and the record is not answered. Fail any screen that shows the unavailable wording for a completed check with no support.
- Low confidence check: pass only when only the covered part is answered with citations, the missing detail is stated as Unknown, not in the retrieved passages, with no value, and no detail is guessed from question text. Fail any screen that silently omits the missing detail or states a value for it.
- Saved passage checks: test a stale hash, a passage from another college or assistant, a passage under answer-grounding-v1, and a source that changed status after retrieval. Pass only when F1 is refused in each case and the trigger path for that case is shown instead.
- Citation field check: compare each inline citation and each listed source title, source link, and last checked date with the retrieved record. Pass only when all three fields match exactly. Fail when a field was invented or completed from question text.
- Draft check: run timeout and empty text in a staff draft reply and in each writing draft. Pass only when the draft stays labeled as draft, shows the unavailable wording, lists no source, and is not sent or saved as a sourced answer.
Follow Set answer wording for the exact refusal and unavailable wording, Answer routing and fallback for the route table, Build an assistant for assistant settings, and Test answers for the test panel.
Next guide
Set the wording, set the chain, then test each trigger in the test panel.