# RDR-229 P3.5a (linda R-A): every jOOQ write of a collection-name column in src/main that is NOT inside a RenameGuard.runRename call,
# keyed by FILE AND SITE TEXT (the .set(...) call, comments stripped, string literals blanked, whitespace collapsed), so an allowed site
# cannot be swapped for a label-changing one in the same file: the new site's text is not on this list.
# RenameRunsOnlyThroughRunRenameTest matches .set(<T>.COLLECTION | PHYSICAL_COLLECTION | SOURCE_COLLECTION, ...), .set(CATALOG_COLLECTIONS.NAME, ...)
# and the DimTables / CollectionScopedTable accessor form .set(<t>.collection(), ...), and fails when a file's count for a site differs
# from this list. A label-changing site belongs inside runRename, not here. Out of scope for the scan: writes built with DSL.field(name) and raw SQL in string literals.
# Format: <file> | <count> | <site text> | <reason>
CatalogIdStamps.java | 1 | .set(CHUNK_ORPHANED_AT.COLLECTION, targetLabel) | the re-home carries the orphan marks of the chunks it moved to the target, by the target's label and id (a move, not a rename)
CatalogIdStamps.java | 1 | .set(TOPIC_ASSIGNMENTS.SOURCE_COLLECTION, targetLabel) | the re-home carries the topic assignments of the chunks it moved to the target, by the target's label and id (a move, not a rename)
AspectRepository.java | 3 | .set(DOCUMENT_HIGHLIGHTS.COLLECTION, EX_HL_COLLECTION) | highlight upserts and imports: the row's own collection on insert or conflict, not a rename
CatalogMoves.java | 1 | .set(DOCUMENT_HIGHLIGHTS.COLLECTION, collection) | the document move's re-key of highlights to the target collection (a move, not a label change)
CatalogRepository.java | 3 | .set(CATALOG_DOCUMENTS.PHYSICAL_COLLECTION, EX_DOC_PCOLL) | document upserts and imports: the document's own collection
CatalogRepository.java | 1 | .set(CATALOG_DOCUMENTS.PHYSICAL_COLLECTION, target) | the document move re-homes one document to the target collection (a move, not a label change)
CatalogRepository.java | 2 | .set(CATALOG_DOCUMENT_CHUNKS.COLLECTION, EX_CHK_COLL) | manifest upserts: each row's own collection
CatalogRepository.java | 1 | .set(DOCUMENT_ASPECTS.COLLECTION, target) | the document move re-homes the document's aspects (a move, not a label change)
CatalogRepository.java | 1 | .set(DOCUMENT_HIGHLIGHTS.COLLECTION, target) | the document move re-homes the document's highlights (a move, not a label change)
CatalogRepository.java | 1 | .set(GC_AUDIT.COLLECTION, auditLabel) | the gc audit row names the collection it audited, by the current label of the registry row the delete locked
CatalogRepository.java | 1 | .set(ch.collection(), DSL.excluded(ch.collection())) | a latched upsert arbitrates on the collection id, so on a conflict it updates the row it found and refreshes that row's stored label to the incoming one: the row's own collection, written by the writer that owns it, and no rename of any collection (RDR-229 P3.5c)
CatalogRepository.java | 1 | .set(t.collection(), target) | rehomeCollection's per-table re-home by name: slice D (R-B) owns it; it moves rows between live collections and changes no label
CatalogRepository.java | 1 | .set(CATALOG_DOCUMENT_CHUNKS.COLLECTION, tgt) | the collection re-home moves the manifest rows of the chunks it moved to the target, by the target's label and id (a move, not a rename: no row changes the label it bears)
CatalogMoves.java | 1 | .set(DOCUMENT_HIGHLIGHTS.COLLECTION, label) | rekeyHighlights from gate 3 writes the locked registry row's current label beside its id (a label copy, no rename)
CollectionMint.java | 1 | .set(CATALOG_COLLECTIONS.NAME, choice.label()) | a mint names a NEW registry row (an insert), not a rename of an existing one
ManifestReplace.java | 1 | .set(CATALOG_DOCUMENT_CHUNKS.COLLECTION, v.field("", String.class)) | the manifest replace writes each row's own collection
ReembedJobRepository.java | 1 | .set(REEMBED_JOBS.SOURCE_COLLECTION, sourceRow.label()) | a re-embed job row records its source collection on insert, by the current label of the registry row the start locked
ReembedJobRepository.java | 1 | .set(REEMBED_JOBS.SOURCE_COLLECTION, ends.source().label()) | a re-entered re-embed job is filed under the current label of the source row the re-entry locked by the job's stored id (nexus-p2m1x.23)
TaxonomyRepository.java | 1 | .set(TOPIC_ASSIGNMENTS.SOURCE_COLLECTION, coll) | the assignment's own source collection, by the current label of the registry row the write locked
TaxonomyRepository.java | 1 | .set(TOPIC_ASSIGNMENTS.SOURCE_COLLECTION, field("" + "" + "" + "", String.class)) | topic assignment upserts and imports: the row's own source collection
TaxonomyRepository.java | 1 | .set(TOPIC_ASSIGNMENTS.SOURCE_COLLECTION, when(coalesce(org.jooq.impl.DSL.excluded(TOPIC_ASSIGNMENTS.SIMILARITY), -1.0).gt(coalesce(TOPIC_ASSIGNMENTS.SIMILARITY, -1.0)), org.jooq.impl.DSL.excluded(TOPIC_ASSIGNMENTS.SOURCE_COLLECTION)) .otherwise(currentNameOf(TOPIC_ASSIGNMENTS.SOURCE_COLLECTION_ID, TOPIC_ASSIGNMENTS.SOURCE_COLLECTION))) | mergeTopics: the conflict arm re-stamps the winning row with its source collection's CURRENT label (the incoming row's, or read from the registry by the id the row keeps): a re-stamp of the row's own collection, not a rename
TaxonomyRepository.java | 3 | .set(TOPICS.COLLECTION, home.get().nameToWrite()) | updateTopicLabel, renameTopic and markTopicReviewed re-stamp the topic with the CURRENT label of the registry row the write locked (the column as it is when the row is retired or gone): a re-stamp of the topic's own collection, not a rename
TaxonomyRepository.java | 2 | .set(TOPIC_ASSIGNMENTS.SOURCE_COLLECTION, field("", String.class)) | topic assignment upserts and imports: the row's own source collection
TelemetryRepository.java | 1 | .set(HOOK_FAILURES.COLLECTION, str(collection)) | hook failure imports carry their own collection
TelemetryRepository.java | 1 | .set(HOOK_FAILURES.COLLECTION, CollectionIds.historyLabel(ctx, tenant, str(collection))) | a hook failure row names the collection by the current label of the row its id names (a history write, never locked)
TelemetryRepository.java | 1 | .set(RELEVANCE_LOG.COLLECTION, str(collection)) | relevance log imports carry their own collection
TelemetryRepository.java | 1 | .set(RELEVANCE_LOG.COLLECTION, CollectionIds.historyLabel(ctx, tenant, str(collection))) | a relevance log row names the collection by the current label of the row its id names (a history write, never locked)
TelemetryRepository.java | 2 | .set(SEARCH_TELEMETRY.COLLECTION, collection) | search telemetry inserts and imports carry their own collection
PgVectorRepository.java | 1 | .set(ch.collection(), DSL.excluded(ch.collection())) | a latched upsert arbitrates on the collection id, so on a conflict it updates the row it found and refreshes that row's stored label to the incoming one: the row's own collection, written by the writer that owns it, and no rename of any collection (RDR-229 P3.5c)
TaxonomyCentroidRepository.java | 1 | .set(ct.collection(), DSL.excluded(ct.collection())) | a latched upsert arbitrates on the collection id, so on a conflict it updates the row it found and refreshes that row's stored label to the incoming one: the row's own collection, written by the writer that owns it, and no rename of any collection (RDR-229 P3.5c)
