Canonical merge and deduplication plan for questions, topics and answers
Use this plan when the same question, topic or answer appears twice in one college workspace. Keep one canonical record in that workspace, move its links to that record, and retire the rest with a pointer to the canonical record. A duplicate in another college is never merged with this record.
Audit of pack app-campus.site.1
Each record was grouped by tenant_id, record type and normalized identity. Normalized identity means trimmed text, runs of space collapsed to one space, punctuation removed for matching, compared in lower case for matching, with the display form kept on the canonical record. The findings below are the duplicates found across the public pages in the pack.
| Record group | Duplicate found | Canonical record to keep | Workspace rule |
|---|---|---|---|
| Starter questions | Add deadline appears as When is the last day to add a class for spring on Sample start, When is the last day to add a class for spring on the home page, and When is the add deadline for spring term on Features. Drop deadline, transcript, password reset, financial aid documents, advising appointment and Wi-Fi questions repeat in the same way across Home, Features, Assistants, Sample start and Answer library, with small wording variants such as How do I reset my college password and How do I reset a college password. | The exact starter wording on Sample start, because that page states exact wording for the sample. Keep that wording as the display form in the college workspace and retire the variants as question records. | One active question wording per topic per tenant_id. The same wording in another college is a separate record in that college and is not merged here. |
| Sample answers | The spring add answer appears in the home hero, in Features and in Answer library with different sentence wording. The library entry is the only one that names source title, source link, last checked date, owner office and review date together. | The Answer library entry for Last day to add a class for spring. Its citation fields are the record to keep. The home and Features versions stay as example text on those pages and are not saved as answer records. | One active answer per normalized question per tenant_id, linked to one approved source record in that college. |
| Topics and assistant jobs | Admissions and financial aid, IT help desk and student services repeat as job names on Home, Features, Assistants and Sample start. Financial Aid Office and Admissions Office also repeat as handoff offices. | Admissions and financial aid, IT help desk and student services as the three topic names, exactly as named on Assistants. Topic identity is the normalized topic name per tenant_id. | A topic belongs to one college. A shared topic name in another college does not make the records the same topic. |
| Example workspaces and counts | Example workspace A with 200 questions asked, 160 answered, 25 handed off and 15 not answered, and the matching rows for B and C, repeat on Reports, Answer insight trend and KPI dashboard. | No canonical workspace record. These rows are example only on each page and must never be saved as a college workspace, question or answer record. | Example identifiers stay outside every tenant_id count and outside system view totals. |
| Guides count | Showing 45 of 45 guides is canonical. Variants state 26 of 26, 21, 15 guide cards and 38 guide files. | One card per guide slug, 45 cards, as stated on Data quality audit. | Not a workspace record. Keep file count and card count as separate counts. |
Canonical merge steps, in order
Follow these steps for one college workspace at a time. Do not delete a duplicate, because past citations and audit entries must stay readable.
Step 1: Group by tenant_id, type and normalized identity
Group active records by tenant_id first. Inside one workspace group questions by normalized question text, topics by normalized topic name, and answers by normalized question text plus source record id. A near duplicate in another workspace goes in a separate group and is flagged as cross workspace only.
Step 2: Pick the canonical record
Keep the approved record that is in date, has an owner office and a future review date, and has complete source detail with source title, source link and last checked date. Where two records are both approved keep the earlier approved record. Record the merge reason on the duplicate records.
Step 3: Preserve citations
Move every citation to the canonical answer with its source title, source link, last checked date, passage and source record id unchanged. If a citation field on a duplicate differs from the source record, discard that citation and do not carry it to the canonical record. Past answers keep their original citation text.
Step 4: Preserve authorship and timestamps
Keep the original author, submitter, approver, reviewer name, decision, note and date on the canonical record. Keep the canonical created_at as the earliest created timestamp in the group and keep each duplicate created_at and updated_at on its retired record. Do not reset a timestamp to the merge date.
Step 5: Preserve workspace ownership
Every moved link keeps the same tenant_id. Assistant links, library links, theme links, collection links and saved answer links move only inside that tenant_id. A cross workspace match is merged only when a source is marked shared by system office governance staff in Sources, and that shared decision is recorded with the name of the person who marked it and the date.
Step 6: Move ratings, replies and handoff references
Move helpful and not helpful ratings, staff replies in discussion, handoff reference numbers and theme links from duplicates to the canonical record. Keep the original rating, reply and reference dates. A duplicate with a different rating stays visible as a retired record with its rating.
Step 7: Retire, retest and approve by a different person
Set each duplicate to retired or superseded at once so it is used in no new answer. Keep a pointer field to the canonical record id on every retired record. Ask one question the canonical record can answer and one it cannot in the test panel. Mark each result pass or needs work. A person does not approve their own submission.
Validation rules to stop a second record
Apply each rule at the step named. A failed check stops the save, the import or the publish.
| Check point | Rule | Fail action |
|---|---|---|
| On add or on edit | One active record per tenant_id, type and normalized title, question or source link. A source link is compared with fragment and trailing slash removed. | Show the existing canonical record and offer Edit or Open instead of saving a second record. |
| On import | Import uses the same identity check as a manual save. A duplicate title, question, source link, workspace and assistant is skipped and counted. | Skip the duplicate, show added and skipped counts, and keep the saved library unchanged for skipped entries. |
| On publish | Every linked source is approved for that tenant_id, a handoff office is named, and the test panel shows pass for a covered question and pass for the not known path. | Stop publishing, fix the source or wording, and test again. |
| On a cross workspace match | A match in another tenant_id is never auto merged. It is flagged only, and it is merged only under a recorded shared source decision. | Keep both records active in their own workspaces and record the flag with both tenant_id values. |
- Every approved source is linked to at least one assistant or library entry, or is flagged as unused in Reports.
- Every retired record keeps its citations, authorship, timestamps and tenant_id, and points to its canonical record.
- Every library entry links an approved source for that college, with source title, source link and last checked date matching the source record.
- Counts in the next period show the duplicate count fell, with the count behind each rate.
Keep one canonical record per identity
Use the canonical wording on this page, merge by the steps above, and check the count in the next period before you call the work done.