Canonical deduplication map for questions and answers
Use one map for exact and near duplicate questions and answers in one college workspace. The map states the detection key, the canonical choice, and the citation preservation check for each duplicate class. It applies to signed-in records and to example records on guides. It never merges across colleges.
Audit scope in pack app-campus.site.2
The pack holds public guide files only and holds no live question store and no migration. The audit therefore traces duplicate wording in guides and the duplicate rules already stated in Merge duplicate questions and in Work unanswered questions. Live matching runs in the signed-in app on question records with tenant_id filtering. No new record, no new role, and no new permission is added by this page.
- Exact duplicate wording was found in the first empty workspace example and in the add deadline example, where a repeated block adds no new record
- Merge duplicate questions states the redirect rule and the preservation list, and Work unanswered questions states the word overlap thresholds, but neither states one canonical ranking that protects citations and completeness
- This page is the single ranking and preservation checklist for questions and answers, and the two guides above link to it as the canonical reference
Canonical map by duplicate class
Read one row per class. A record must pass the tenant check in every row before any other check runs.
| Duplicate class | Detection key in one college | Canonical choice | Citation preservation check |
|---|---|---|---|
| Exact duplicate question | Same tenant_id, assistant, covered topic, normalized question text in lower case with collapsed space, and same channel | Earliest still open record that has a sourced answer with working links, then highest completeness score below | Canonical keeps every source title, source link, and last checked date from matched passages. Duplicates redirect to the canonical thread. No second answer is created. |
| Exact duplicate answer for the same question | Same tenant_id, question record, normalized answer text, sorted source set, and same answer health outcome | Answer with approved current sources, then the most complete answer below, then earliest created answer | Keep source title, source link, and last checked date exactly as retrieved for each factual sentence. Do not list a source that was not retrieved for that question. |
| Near duplicate question | Same tenant_id, assistant, and topic, word overlap at least 0.85, and no conflicting date, fee, term, office, or sign-in rule | Use the completeness ranking below. Do not merge on overlap alone when any factual detail conflicts. | Keep the passage with the fuller citation coverage. If passages disagree, do not merge and work the gap as a source fix. |
| Near duplicate answer | Same tenant_id and question, overlap at least 0.85, same source set or a subset with no conflicting detail | Answer that covers more subparts of the question with a citation after every factual sentence wins. Tie breaks follow the ranking below. | Do not combine two partial answers into one fact. Keep the winning answer word for word with its citations and list the losing citations as superseded for audit. |
| Same wording in another college or assistant | Tenant_id or assistant differs, even when wording matches | Never merge. Keep separate canonical records in each college and assistant. | Never copy question text or citations across colleges. System view shows counts by college only. |
Most complete answer ranking, in order
Apply the steps in order. Stop at the first step that chooses a winner. Record the step that decided each merge.
Step 1: Approved and current
Prefer approved status, then exclude any source past its review date, suspended, expired, or retired. A record that depends on a stale source cannot win.
Step 2: Citation coverage
Count factual sentences with an inline citation that matches a retrieved passage. Prefer the answer with full coverage. An answer with an uncited factual sentence loses to a fully cited answer.
Step 3: Completeness for the question
Prefer the answer that addresses every subpart of the question with the correct term, date, fee, hours, office, and steps as written on the source. Prefer specific over general wording without inventing a detail.
Step 4: Source quality
Prefer more distinct approved sources that were retrieved for that question, each with title, link, and last checked date present and matching the source record.
Step 5: Helpful signal and staff check
Prefer a checked answer from named staff in that college, then a higher helpful count with the rated count shown. Do not use a peer comment as a source.
Step 6: Stability
Prefer the earliest still open canonical thread, then the lowest record id as the final tie break, so paging never moves a row between pages.
Most complete means full subpart coverage plus full citation coverage plus current sources. A longer answer with an invented detail loses to a shorter fully cited answer.
Preservation and audit checks
Run every check before and after the merge. If a check fails, do not mark the theme resolved.
- Canonical keeps every original question wording, date in college local time, helpful or not helpful rating and comment, staff reply with name, handoff reference number, owner office, and approval record
- Each duplicate stays readable, shows the canonical answer with sources, and links to the canonical thread
- Rating, handoff, follow, and discussion on a duplicate update the canonical record only, with no second record created
- Counts: canonical counted once for answered share, duplicate to a sourced canonical counted as answered, duplicate to a not-known canonical counted as not answered, test records excluded and labeled as excluded
- Audit entry holds canonical id, merged ids, duplicate class, overlap score, ranking step that decided, reviewer name, decision, note, date in college local time, and counts before and after
- No record is deleted during a merge. Merged records stay readable as superseded with citations kept for audit.
Acceptance checks
- Merge an exact duplicate and confirm one canonical thread, one count in reports, and every source link still opens on the canonical thread
- Merge a near duplicate at overlap 0.86 with no conflict and confirm the most complete fully cited answer won, with losing citations listed as superseded
- Attempt a cross-college merge and confirm it is blocked, with no question text copied and no count raised in the second college
- Attempt to merge disagreeing passages and confirm the merge is blocked and the not-known path is used instead of a combined fact
Next guide
Work the unanswered themes linked to the canonical thread each week.