Repository navigation
Make preserved artifact backfills idempotent - #679
Merged
Merged
Conversation
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Evidence
Governing issue and intended outcome
Implementation scope
src/ccld_complaints/hosted_app/seeded_import.py,tests/unit/test_hosted_ccld_backfill.py, andtests/unit/test_hosted_seeded_corpus_import.py.source_record_keywhile retaining established deterministic flattened-record order and final-write semantics.Root cause
Multiple preserved source documents can project the same stable complaint, allegation, or event identity. The importer previously compared and wrote every sequential projection. Intermediate projections temporarily changed source-document and governed-field representation before the final projection restored the same deterministic final state, so equivalent replay still reported updates. Unique source-document and extraction-audit records were not the cause.
Acceptance-criteria evidence
updated == 0andunchanged == 1.SubstantiatedtoInconclusiveproduces one update and governed conflict provenance.Validation and failure classification
git diff --checkUI and accessibility evidence (when applicable)
Not applicable - no hosted UI, reviewer presentation, interaction, accessibility behavior, or visual output changed.
Reviewer-facing redesign artifact classification (when applicable)
Not applicable - no reviewer-facing redesign occurred.
Documentation, assumptions, and remaining risks
canonical-complaint-observationsoperation was observed and remains outside this focused correction.source_record_keyand preserves established final-projection ordering semantics; the retained production 29-facility list was not available locally and was not fabricated.updated=0,unchanged=312,warnings=0, andfailed=0.Governed-boundary review
Required GitHub checks
validatedocs-checkfixturessecurity