forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.import_time_side_effects_legacy
More file actions
48 lines (47 loc) · 2.07 KB
/
Copy path.import_time_side_effects_legacy
File metadata and controls
48 lines (47 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Deprecated legacy allowlist for import-time side effects in backend production code.
#
# Transitional bridge only (see .coordination/test-isolation/PLAN.md Tier 1, P4).
# Permitted change: SHRINK only. Growing is blocked by the pre-push hook and CI.
# Each entry should eventually be either fixed (defer construction into a lazy
# getter) or justified with a `# noqa: import-side-effect: <reason>` pragma and an
# ADR entry, then removed from this list.
#
# Terminal state: this file is deleted (PLAN.md §4, condition #2).
#
# Total: 28 entries.
#
# The 4 entries marked "surfaced by P2" below were discovered by the alias-
# resolution hardening of scan_import_time_side_effects.py: the old checker
# never matched side-effecting constructors invoked via from-imports (e.g.
# `from openai import AsyncOpenAI; AsyncOpenAI()`), so these pre-existing
# import-time constructions went undetected. Defer each into a lazy getter and
# remove from this list.
backend/database/redis_db.py
backend/main.py
backend/migrations/001_enhanced_protection_default.py
backend/migrations/002_populate_historical_usage.py
backend/migrations/003_report_top_transcription_users.py
backend/migrations/004_migrate_action_items_to_collection.py
backend/migrations/005_backfill_memory_vectors.py
backend/migrations/006_auto_set_transcription_mode.py
backend/migrations/007_backfill_action_item_vectors.py
backend/modal/job.py
backend/pusher/main.py
backend/scripts/chat/stream_test.py
backend/scripts/rag/_shared.py
backend/scripts/rag/memories.py
backend/scripts/stt/c_generate_models.py
backend/scripts/stt/h_brainstorming.py
backend/scripts/stt/j_apply_vad_to_speech_profiles.py
backend/scripts/stt/k_compare_transcripts_performance.py
backend/scripts/users/apps_count.py
backend/scripts/users/memories_fixes.py
backend/scripts/users/retrieval.py
backend/scripts/vad_multilang_dg_test.py
backend/scripts/vad_offline_replay.py
backend/utils/conversations/search.py
backend/utils/other/storage.py
# surfaced by P2 (from-import alias blind spot)
backend/database/vector_db.py
backend/utils/other/chat_file.py
backend/utils/stt/streaming.py