Repository navigation
tests: refresh People writer inventory after purge_user_subtree change (SCA-4276) - #26289
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
SHIP at The diff is one line in Implementer's run (rebased main): the People inventory failed on that fingerprint before the change and passes after it; the focused suite reports 3,278 passed, 1 skipped and 86 expected failures; all 34 loopback Firestore checks pass. |
Root cause
#26259 (0b8fb21) added a customer data-plane sweep for late speaker-evidence children to
purge_user_subtree. The People generation inventory hashes the function's full AST because the function callsgeneration_ref. The existing fingerprint was still the exact digest of the pre-#26259 body. Running the changed-file selector with the paths from 0b8fb21 omittedtest_people_generation_inventory.py. The selector returns zero backend test files for this JSON-only refresh, so the focused commands below explicitly include the People inventory guard.Refresh the single
purge_user_subtreefingerprint inbackend/docs/people-generation-writers.json. The People subtree deletion still batches People rows with a same-owner generation bump, then drops the generation head after deleting those rows. The speaker-evidence writerstore_evidence.persistreads the account deletion marker and the parent conversation in the write transaction. The account purge sweeps itsspeaker_evidencechild collection on the same data plane, including when a parent is already missing on retry. The audit found no writer without an erasure path.Verification
On rebased main (
f719b0564036),bash backend/test.sh test_people_generation_inventory.pyreported 1 failure and 4 passes:The separate lifecycle inventory and its direct and transitive test consumers passed on main (2,502 passed, 1 skipped, 86 expected failures). After refreshing the People fingerprint, the following run reported 3,278 passed, 1 skipped, and 86 expected failures, including all 5 People inventory cases:
timeout -k 10s 300s /Users/david/workspace/omi-workspace/bin/omi-heavy run -- \ env REDIS_DB_HOST=127.0.0.1 REDIS_DB_PORT=1 OMI_ENV_STAGE=offline \ bash backend/test.sh \ test_people_generation_inventory.py test_lifecycle_state_table_writers.py \ test_batch_census_registry.py test_lifecycle_properties_wiring.py test_summary_refusal_writers.py \ test_backfill_clear_refused_summary_due.py test_lifecycle_invariants.py test_batch_held_contract.py \ test_fsr_people_generation.py test_speaker_evidence_storage.py test_retired_list_projection.py \ test_batch_pipeline_privacy.py test_batch_account_authority_writers.py test_held_content_deletion.py \ test_memory_retraction_source_index.py test_action_item_port_fence.pyWith an owned loopback Firestore emulator, ran the following from
backend/insidetimeout -k 10s 180s /Users/david/workspace/omi-workspace/bin/omi-heavy run --:PYTHONPATH=. .venv/bin/python scripts/fsr_people_generation_emulator_test.pypassed all 31 People generation checks.BACKEND_PYTEST_MARK_EXPR=integration bash test.sh tests/integration/test_speaker_evidence_erasure.pypassed all 3 cases.make preflightpassed 16 checks.scripts/pr-preflight --pr-body-file /tmp/sca-4276-pr.mdpassed. Both ran through boundedomi-heavyinvocations.Refs SCA-4276