# Graph Report - photos-meeconic  (2026-11-02)

## Corpus Check
- 152 files · ~208,335 words
- Verdict: corpus is large enough that graph structure adds value.
- Unclassified: 18 file(s) not represented in the graph (top: .ttf 6, .example 3, (none) 2)

## Summary
- 2962 nodes · 8487 edges · 122 communities (99 shown, 23 thin omitted)
- Extraction: 97% EXTRACTED · 3% INFERRED · 0% AMBIGUOUS · INFERRED: 227 edges (avg confidence: 0.89)
- Token cost: 0 input · 0 output

## Graph Freshness
- Built from commit: `5bdd0864`
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
- Run `graphify update .` after code changes (no API cost).

## Community Hubs (Navigation)
- shoot_review_service.py
- protection_service.py
- get_ctx
- test_protection.py
- AdminPage.tsx
- test_brand.py
- shoot_api.py
- test_codes.py
- conftest.py
- SettingsTab.tsx
- test_sheet5_6_upload_cards.py
- format_service.py
- PuzzleProtectionOverlay.tsx
- api.ts
- upload_service.py
- PortalPage
- Connection
- FileExplorer.tsx
- test_products.py
- detect_qr
- test_photos_admin.py
- test_organizer.py
- ShootPage.tsx
- test_sheet4_photos_ai.py
- get_ctx
- brand_service.py
- alert_service.py
- exists
- payment_keys_service.py
- io
- CardsTab.tsx
- CardsGrid.tsx
- logging
- test_orders.py
- shoot_time.py
- test_cleanup_service.py
- test_schools_settings.py
- Sesión 2026-10-19 — Despliegue en desarrollo (MinIO + FTP) y pendientes
- test_ia.py
- PhotoProtectionSection.tsx
- _Handler
- json
- adminApi.ts
- compilerOptions
- ia.py
- update_photographer_map
- PhotoOrganizer
- card_service.py
- admin_order_lab_zip
- BrandLogo.tsx
- package.json
- admin.py
- item
- backend
- zip_stream.py
- _delete_old
- invalidate_families_cache
- storage.py
- Meeconic — L'instant d'école 📷
- test_shoot_time.py
- detect_qr
- order_service.py
- test_admin_auth.py
- test_roles_payment.py
- Path
- main
- test_siblings.py
- translations.ts
- PhotosStep
- _check
- school_service.py
- Architecture
- main.tsx
- test_portal_photos.py
- dependencies
- insert_order
- test_sheet7_orders.py
- Key
- ProductsSection.tsx
- _brand_scope
- test_classes_families.py
- test_shoot.py
- photo_service.py
- PortalPage.tsx
- get_db
- create_family
- isolated_storage
- devDependencies
- stats_service.py
- Servidor FTP de las cámaras (Docker)
- AI "magic photo" themes — pending list
- AuditTab.tsx
- admin_update_order
- reset_data
- Fotos en MinIO
- App.tsx
- S3Storage
- CLAUDE.md
- _SelectiveGZip
- test_formats.py
- scripts
- test_a_storage_hiccup_after_payment_still_sends_the_confirmation
- create-ftp-user.sh
- test_the_loop_survives_failing_passes_with_backoff_and_recovers
- files
- test_watchdog_events_from_another_thread_trigger_a_pass
- put_ai_themes
- main.py
- touch
- _fake_translation
- time
- media_service.py
- cleanup_service.py
- set-ftp-password.sh

## God Nodes (most connected - your core abstractions)
1. `get_db()` - 277 edges
2. `Key` - 144 edges
3. `get_ctx()` - 89 edges
4. `client_ip()` - 78 edges
5. `log_event()` - 69 edges
6. `utcnow_iso()` - 58 edges
7. `get_settings()` - 40 edges
8. `insert_order()` - 40 edges
9. `S3Storage` - 37 edges
10. `exists()` - 37 edges

## Surprising Connections (you probably didn't know these)
- `Distinto de HEC (y por qué)` --references--> `get_db()`  [INFERRED]
  DECISIONS.md → backend/core/db.py
- `Roles, payment keys, products` --references--> `expand()`  [INFERRED]
  CLAUDE.md → backend/services/format_service.py
- `2026-10-22 — Client brief "Upgrades to the school photos tool" (Dario, 21 Oct 2026)` --references--> `get_ctx()`  [INFERRED]
  DECISIONS.md → backend/admin.py
- `2026-10-11 — Project document V2 (school constraints) and MySQL` --references--> `get_db()`  [INFERRED]
  DECISIONS.md → backend/core/db.py
- `Photo storage (`core/storage.py`, read its docstring before touching it)` --references--> `Key`  [INFERRED]
  CLAUDE.md → backend/core/storage.py

## Import Cycles
- 3-file cycle: `backend/core/security.py -> backend/services/alert_service.py -> backend/services/school_service.py -> backend/core/security.py`
- 4-file cycle: `backend/core/security.py -> backend/services/email_service.py -> backend/services/alert_service.py -> backend/services/school_service.py -> backend/core/security.py`

## Communities (122 total, 23 thin omitted)

### Community 0 - "shoot_review_service.py"
Cohesion: 0.12
Nodes (17): incoming_dir_for(), _candidate(), _child_code(), list_items(), photo_url(), _place(), preview_path(), resolve() (+9 more)

### Community 1 - "protection_service.py"
Cohesion: 0.09
Nodes (17): _call_kis(), config_fingerprint(), ensure_heads(), _forget_stale_variants(), get_protection(), _is_fresh(), kis_form_data(), normalize_config() (+9 more)

### Community 2 - "get_ctx"
Cohesion: 0.11
Nodes (37): admin_brand_delete(), admin_brand_upload(), admin_brand_watermark(), admin_brand_zones(), admin_create_format(), admin_delete_format(), admin_reorder_formats(), admin_school_crest_delete() (+29 more)

### Community 3 - "test_protection.py"
Cohesion: 0.10
Nodes (21): _enable(), _mean_color(), _photo(), _preview(), test_a_definitive_failure_is_recorded_once_and_a_success_clears_it(), boom(), ok(), test_a_school_cannot_be_served_another_schools_protected_photo() (+13 more)

### Community 4 - "AdminPage.tsx"
Cohesion: 0.07
Nodes (49): AdminHeader(), AdminLogin(), submit(), Kpi(), OrganizerBanner(), poll(), createT(), useDocLang() (+41 more)

### Community 5 - "test_brand.py"
Cohesion: 0.15
Nodes (13): delete_asset(), save_asset(), _png(), test_a_director_cannot_change_the_brand(), test_a_logo_with_white_boxes_behind_dark_ink_still_needs_a_light_background(), test_a_school_has_its_own_brand_and_inherits_what_it_did_not_set(), test_logo_tone_says_which_background_the_logo_needs(), test_payment_is_card_only() (+5 more)

### Community 6 - "shoot_api.py"
Cohesion: 0.15
Nodes (26): assign_mode(), record_event(), _again(), _classes(), _live(), _max_per_child(), _photographer(), _photographers() (+18 more)

### Community 7 - "test_codes.py"
Cohesion: 0.11
Nodes (10): _school(), test_a_new_school_gets_a_numeric_prefix_with_no_link_to_its_name(), test_codes_are_unique_across_schools_even_with_the_same_prefix(), test_family_lookup_ignores_hyphens_case_and_spaces(), test_new_families_get_codes_with_the_schools_configured_prefix(), test_prefix_setting_is_validated(), test_two_codes_in_a_row_share_nothing_but_the_prefix(), test_unique_code_gives_up_after_too_many_collisions() (+2 more)

### Community 8 - "conftest.py"
Cohesion: 0.08
Nodes (16): dispose_engine(), reset_all(), admin_headers(), admin_token(), app(), client(), demo_code(), director_headers() (+8 more)

### Community 9 - "SettingsTab.tsx"
Cohesion: 0.07
Nodes (38): AlertEmailSection(), DatePicker(), iso(), LOCALE, parse(), FIELDS, KeyName, PaymentKeysSection() (+30 more)

### Community 10 - "test_sheet5_6_upload_cards.py"
Cohesion: 0.07
Nodes (52): _buy(), _jpeg(), _outcome(), shop(), test_a_paid_order_never_changes_when_the_catalogue_does(), test_an_ai_photo_is_sold_like_any_photo(), test_dashboards_count_what_is_handed_out(), test_the_server_refuses_what_is_not_on_sale_or_not_at_its_price() (+44 more)

### Community 11 - "format_service.py"
Cohesion: 0.13
Nodes (16): _check_components(), _clean(), create_format(), delete_format(), _ensure_builtins(), FormatError, get_format(), image_path() (+8 more)

### Community 12 - "PuzzleProtectionOverlay.tsx"
Cohesion: 0.19
Nodes (19): circlePath(), computeTabs(), cssVar(), decideShapes(), DEFAULT_PUZZLE_CONFIG, drawSide(), drawSideClassic(), drawSideSharp() (+11 more)

### Community 13 - "api.ts"
Cohesion: 0.11
Nodes (22): api, CartItem, CatalogueFormat, DEFAULT_LENS_PROTECTION_CONFIG, DEFAULT_PRICING, DEFAULT_PUZZLE_PROTECTION_CONFIG, FamilyPhotosResponse, Order (+14 more)

### Community 14 - "upload_service.py"
Cohesion: 0.09
Nodes (23): _blank(), _check(), _child_code(), _clean_name(), _drop_staged_thumb(), _file_group(), get_class(), list_waiting() (+15 more)

### Community 15 - "PortalPage"
Cohesion: 0.14
Nodes (10): photoProtectionFrom(), ConsentStep(), getPhotos(), PortalPage(), addPendingToCart(), handleCode(), handleConsentAccept(), handleFormatsValidated() (+2 more)

### Community 16 - "Connection"
Cohesion: 0.08
Nodes (8): Connection, Cursor, ensure_index(), Row, table_columns(), table_exists(), translate(), main()

### Community 17 - "FileExplorer.tsx"
Cohesion: 0.07
Nodes (51): cardLabel(), ContextMenu(), MenuItem, Ask, ChildTarget, classLabel(), clickOpens(), Clip (+43 more)

### Community 18 - "test_products.py"
Cohesion: 0.21
Nodes (12): _create(), _order(), _png(), test_a_product_is_typed_in_french_and_translated_by_itself(), test_classic_and_ai_photos_share_the_same_products_and_prices(), test_image_upload_rejects_non_images_and_other_schools(), test_product_image_lifecycle(), test_products_are_reordered_with_one_call() (+4 more)

### Community 19 - "detect_qr"
Cohesion: 0.15
Nodes (18): ocr_code(), reset_ocr_state(), scan_frame(), plain_image(), _bgr(), _data_url(), _fake_pytesseract(), test_a_portrait_without_qr_is_rejected_at_the_gate() (+10 more)

### Community 20 - "test_photos_admin.py"
Cohesion: 0.11
Nodes (19): admin_thumb_url(), family_dir(), save_jpeg(), test_state_is_per_school_one_failing_school_does_not_block_another(), test_status_is_stalled_when_files_wait_and_nothing_moves(), _clean_temporary_photos(), _new_photo(), test_a_family_with_both_layouts_sees_the_union() (+11 more)

### Community 21 - "test_organizer.py"
Cohesion: 0.11
Nodes (24): qr_image(), stored_tree(), _drop(), _FakeTesseract, org(), school(), test_a_crash_in_a_pass_does_not_leave_processing_stuck(), test_a_failed_move_is_reported_not_counted_as_organised() (+16 more)

### Community 22 - "ShootPage.tsx"
Cohesion: 0.09
Nodes (35): LanguageSelect(), NAMES, parseOptions(), Select(), onKey(), openList(), pick(), Lang (+27 more)

### Community 23 - "test_sheet4_photos_ai.py"
Cohesion: 0.14
Nodes (9): _ids(), phone(), test_a_list_ticked_for_another_storyface_app_offers_every_theme(), test_a_school_that_never_chose_offers_every_theme(), test_an_unrevoked_link_is_still_refused_while_the_mode_is_off(), test_only_ticked_themes_reach_the_family_and_at_once(), test_switching_the_mode_off_revokes_the_phone_link(), test_themes_are_per_school_and_a_theme_added_later_starts_off() (+1 more)

### Community 24 - "get_ctx"
Cohesion: 0.07
Nodes (42): admin_classes(), admin_families(), admin_formats(), admin_ingestion(), admin_orders(), admin_school_crest(), admin_settings(), admin_setup_checklist() (+34 more)

### Community 25 - "brand_service.py"
Cohesion: 0.10
Nodes (28): asset_path(), BrandError, crest_image(), crest_path(), delete_crest(), _dir(), get_watermark(), has() (+20 more)

### Community 26 - "alert_service.py"
Cohesion: 0.10
Nodes (19): _cooldown_ok(), _forget_cooldown(), recipients(), _smtp_send(), _cfg(), _confirmation_html(), is_configured(), _items_rows() (+11 more)

### Community 27 - "exists"
Cohesion: 0.07
Nodes (23): named_lock(), exists(), read_text(), write_text(), _store_result(), canonical(), canonical_code(), merge() (+15 more)

### Community 28 - "payment_keys_service.py"
Cohesion: 0.09
Nodes (26): _is_trusted(), jwt_secret(), media_secret(), _parse_networks(), _persistent_secret(), sign(), verify_password(), download_url() (+18 more)

### Community 29 - "io"
Cohesion: 0.14
Nodes (22): validate_zones(), _downloads(), _first_photo(), _paid_digital_order(), test_ai_photos_are_watermarked_too_and_a_paid_download_is_clean(), test_download_expired_link_rejected(), test_download_is_limited_to_files_in_the_order(), test_download_link_dies_if_order_is_cancelled_or_unpaid_afterwards() (+14 more)

### Community 30 - "CardsTab.tsx"
Cohesion: 0.09
Nodes (20): SHELL, PhotographersSection(), Row, Opt, Variant, Candidate(), Item(), ShootReview() (+12 more)

### Community 31 - "CardsGrid.tsx"
Cohesion: 0.22
Nodes (13): AiThemesSection(), ThemePicker(), CardsGrid(), MergeModal(), confirm(), SheetModal(), sheetUrl(), STATE_KIND (+5 more)

### Community 32 - "logging"
Cohesion: 0.19
Nodes (3): valid_prefixes(), b64_to_cv2(), test_valid_prefixes_come_from_config_and_from_the_cards_already_on_disk()

### Community 33 - "test_orders.py"
Cohesion: 0.15
Nodes (18): _digital_item(), _multi_class_family(), _payload(), test_a_digital_only_order_needs_no_class(), test_class_is_taken_from_the_code_when_the_family_has_only_one(), test_create_order_without_stripe_key(), test_magic_format_requires_a_generated_photo(), test_order_needs_a_class_from_the_schools_list() (+10 more)

### Community 34 - "shoot_time.py"
Cohesion: 0.06
Nodes (33): add_cal(), add_review(), build_calibration(), cal_payload(), cal_status(), cal_window(), capture_epoch(), classify_straggler() (+25 more)

### Community 35 - "test_cleanup_service.py"
Cohesion: 0.10
Nodes (20): expire_unpaid_orders(), run_once(), _sweep_cache(), _FakeStripe, photos_dir(), _stale_order(), _state(), test_a_photo_moved_to_the_trash_keeps_its_age() (+12 more)

### Community 36 - "test_schools_settings.py"
Cohesion: 0.12
Nodes (4): test_brand_color_is_validated_and_must_keep_white_text_readable(), test_card_uses_the_school_colour(), test_deactivated_school_blocks_portal_and_director(), test_removed_settings_are_refused()

### Community 37 - "Sesión 2026-10-19 — Despliegue en desarrollo (MinIO + FTP) y pendientes"
Cohesion: 0.22
Nodes (8): Antes de usar el FTP con cámaras reales, Arreglos de hoy (ya en git), Cómo está montado el servidor, Dónde estamos, Lo primero mañana: subir el último cambio (pedidos), Pendientes, Producto / cliente, Sesión 2026-10-19 — Despliegue en desarrollo (MinIO + FTP) y pendientes

### Community 38 - "test_ia.py"
Cohesion: 0.07
Nodes (26): revoke_token(), _body(), _jpeg(), storyface(), factory(), handler(), test_a_failed_generation_alerts_the_team(), test_a_school_can_turn_the_adult_version_off() (+18 more)

### Community 39 - "PhotoProtectionSection.tsx"
Cohesion: 0.20
Nodes (14): LensFields(), OverlayMethod, PhotoProtectionSection(), PuzzleFields(), RangeField(), LensConfig, PhotoLensOverlay(), PuzzleProtectionConfig (+6 more)

### Community 41 - "json"
Cohesion: 0.06
Nodes (31): believable_tap_time(), claimed_names(), class_qr_payload(), events_for(), find_request(), get_progress(), get_state(), get_token() (+23 more)

### Community 42 - "adminApi.ts"
Cohesion: 0.07
Nodes (34): Badge(), BrandingSection(), run(), Kind, brandChanged(), AdminOrderItem, AuthError, authHeaders() (+26 more)

### Community 43 - "compilerOptions"
Cohesion: 0.11
Nodes (17): compilerOptions, allowImportingTsExtensions, isolatedModules, jsx, lib, module, moduleResolution, noEmit (+9 more)

### Community 44 - "ia.py"
Cohesion: 0.08
Nodes (16): enabled_theme_ids(), fetch_themes(), generate_magic(), _generate(), MagicRequest, portal_themes(), theme_thumb(), thumb_url() (+8 more)

### Community 45 - "update_photographer_map"
Cohesion: 0.15
Nodes (10): get_photographer_map(), get_sticky_qr(), resolve_photographer(), set_sticky_qr(), update_photographer_map(), test_extract_code_rejects_anything_that_is_not_a_family_code(), test_longest_prefix_wins_and_unknown_prefix_resolves_to_none(), test_photographer_map_rejects_unsafe_values() (+2 more)

### Community 46 - "PhotoOrganizer"
Cohesion: 0.09
Nodes (8): _analyze_file(), _exif_datetime(), PhotoOrganizer, create_child_family(), capture_epoch_cached(), effective_cals(), real_time(), set_tprog()

### Community 47 - "card_service.py"
Cohesion: 0.08
Nodes (26): _ctext(), _date_text(), _fit(), _fit_cap(), _fpx(), _ltext(), _mix(), _monitor() (+18 more)

### Community 48 - "admin_order_lab_zip"
Cohesion: 0.16
Nodes (9): admin_order_detail(), admin_order_lab_zip(), admin_order_recap(), director_statement(), order_classes(), _order_or_404(), download_original(), _image_type() (+1 more)

### Community 49 - "BrandLogo.tsx"
Cohesion: 0.18
Nodes (12): BrandLogo(), loadLogo(), Logo, LogoImg(), LogoTone, setBrandSchool(), extractCodeFromQR(), AppBar() (+4 more)

### Community 50 - "package.json"
Cohesion: 0.12
Nodes (15): name, private, type, version, autoprefixer, postcss, qrcode-generator, @stripe/react-stripe-js (+7 more)

### Community 51 - "admin.py"
Cohesion: 0.07
Nodes (34): admin_login(), admin_translate(), _alert_email_state(), AlertEmailBody, ChildMoveBody, confirm_single_cards(), family_card_png(), format_image() (+26 more)

### Community 52 - "item"
Cohesion: 0.15
Nodes (26): test_the_family_list_never_shows_the_whole_address(), test_the_printed_mail_is_rearmed_when_it_did_not_leave(), test_unknown_payment_dispute_and_refund_of_an_unpaid_order_alert(), _event(), _new_order(), _order(), _refund(), _sent() (+18 more)

### Community 53 - "backend"
Cohesion: 0.14
Nodes (25): backend(), dirs(), ingest(), move(), read_bytes(), stat(), walk(), write_bytes() (+17 more)

### Community 54 - "zip_stream.py"
Cohesion: 0.22
Nodes (3): iter_chunks(), stream(), ZipSink

### Community 56 - "invalidate_families_cache"
Cohesion: 0.11
Nodes (25): delete_tree(), is_dir(), mkdir(), move_tree(), main(), child_row(), delete_all_photos(), delete_child_photos() (+17 more)

### Community 57 - "storage.py"
Cohesion: 0.05
Nodes (20): _build_engine(), create_database_if_missing(), engine(), init_core_tables(), setup_logging(), utcnow(), count_events(), list_events() (+12 more)

### Community 58 - "Meeconic — L'instant d'école 📷"
Cohesion: 0.15
Nodes (12): Architecture, Démarrage rapide (développement), Exploitation, Lecteur de QR et ingestion des photos, Les 3 espaces, Meeconic — L'instant d'école 📷, Mises en garde, Multi-école (+4 more)

### Community 59 - "test_shoot_time.py"
Cohesion: 0.10
Nodes (43): assign_by_time(), Doubt, open_review_count(), TimeResult, _post(), calibrate(), family_photos(), names() (+35 more)

### Community 60 - "detect_qr"
Cohesion: 0.23
Nodes (8): detect_qr(), extract_code(), test_reads_a_blurred_low_contrast_qr(), test_reads_a_real_qr_card(), test_reads_a_small_qr_far_from_the_camera(), test_reads_one_card_when_several_are_in_the_photo(), test_reads_the_url_embedded_in_the_qr(), QR reader (the organizer) — read `organizer_service.py`'s docstring before touching it

### Community 61 - "order_service.py"
Cohesion: 0.06
Nodes (35): _ascii(), _class_token(), _date(), detail(), _fit(), _font(), format_token(), lab_entries() (+27 more)

### Community 63 - "test_roles_payment.py"
Cohesion: 0.12
Nodes (5): _clean_keys(), test_an_empty_field_keeps_the_current_key(), test_bad_keys_are_refused_and_nothing_is_saved(), test_the_connection_test_asks_stripe(), test_the_operator_cannot_reach_admin_only_routes()

### Community 64 - "Path"
Cohesion: 0.18
Nodes (3): _Cache, put_file(), put_big()

### Community 66 - "test_siblings.py"
Cohesion: 0.26
Nodes (19): child_dir(), _make_photo(), _class(), _family(), test_a_child_whose_photos_were_deleted_leaves_the_class_list_and_comes_back_on_restore(), test_a_class_folder_is_not_read_as_a_photographer(), test_a_filed_child_cannot_change_class_by_hand(), test_an_order_never_stores_a_postal_address() (+11 more)

### Community 67 - "translations.ts"
Cohesion: 0.20
Nodes (8): SetupChecklist(), TranslationKey, en, es, fr, translations, SetupStatus, vitest

### Community 68 - "PhotosStep"
Cohesion: 0.27
Nodes (6): Parent journey and catalogue, PhotoProtectionGuard(), protectionGuardProps(), Lightbox(), PhotosStep(), SiblingLink()

### Community 70 - "school_service.py"
Cohesion: 0.08
Nodes (26): build(), list_schools(), hash_password(), _known_prefixes(), purge_trashes(), _retention_days(), assign_prefix(), code_prefix_for() (+18 more)

### Community 71 - "Architecture"
Cohesion: 0.18
Nodes (10): init(), Architecture, Branding (`brand_service`, Settings → Branding, admin only, default level + per school), Manual loading, cards and merges (the current way photos arrive), Money rules, Multi-school, No personal names (project document V2, rule n°1), Operations (+2 more)

### Community 72 - "main.tsx"
Cohesion: 0.20
Nodes (5): Frontend quality rules, ErrorBoundary, @fontsource/cormorant-garamond, @fontsource-variable/outfit, react-dom

### Community 73 - "test_portal_photos.py"
Cohesion: 0.13
Nodes (8): utcnow_iso(), _publish_status(), _record_error(), run_organizer(), _status_for(), test_failed_lookups_are_rate_limited_per_ip(), test_photos_hidden_until_consent(), test_photos_never_fall_back_to_placeholder_images()

### Community 74 - "dependencies"
Cohesion: 0.18
Nodes (11): dependencies, clsx, @fontsource/cormorant-garamond, @fontsource-variable/outfit, jsqr, lucide-react, qrcode-generator, react (+3 more)

### Community 75 - "insert_order"
Cohesion: 0.19
Nodes (19): insert_order(), item(), test_multi_photo_order_gets_a_zip_with_every_original(), test_reset_data_wipes_paid_orders_of_one_school_only(), test_a_merge_cannot_be_undone_once_the_family_ordered(), _dash(), _jpeg(), _line() (+11 more)

### Community 76 - "test_sheet7_orders.py"
Cohesion: 0.15
Nodes (16): _jpeg(), _line(), _merged_order(), shop(), test_a_photo_deleted_since_is_reported_missing_not_fatal(), test_an_unpaid_or_cancelled_order_is_not_prepared_and_a_digital_only_one_has_nothing_to_send(), test_directors_cannot_open_orders(), test_format_tokens_read_like_the_lab_expects() (+8 more)

### Community 77 - "Key"
Cohesion: 0.14
Nodes (5): Key, LocalStorage, ObjInfo, _shrink(), test_order_email_attaches_originals_within_size_limit()

### Community 78 - "ProductsSection.tsx"
Cohesion: 0.24
Nodes (11): Comp, Draft, EMPTY, KINDS, kindsFor(), PackEditor(), packText(), Row() (+3 more)

### Community 79 - "_brand_scope"
Cohesion: 0.22
Nodes (6): admin_brand(), admin_card_preview(), admin_watermark_preview(), _brand_scope(), _portal_base(), _sample_photo()

### Community 80 - "test_classes_families.py"
Cohesion: 0.27
Nodes (14): _add_classes(), _new_school(), test_a_family_of_another_school_cannot_be_deleted(), test_cards_zip_groups_by_class_and_requires_operator(), test_classes_are_created_listed_and_scoped_to_the_school(), test_classes_of_another_school_cannot_be_touched(), test_deleting_a_family_frees_its_class_and_never_touches_paid_orders(), test_duplicate_class_is_rejected_and_role_is_required() (+6 more)

### Community 81 - "test_shoot.py"
Cohesion: 0.08
Nodes (35): build_runs(), open_run(), sort_capture_order(), _dir(), _drop(), ev(), _families(), _jpeg() (+27 more)

### Community 82 - "photo_service.py"
Cohesion: 0.06
Nodes (34): admin_cards(), build(), _folders_by_code(), photos_originals_zip(), _render_family_card(), _strip_accents(), FamilyInfo, PhotoInfo (+26 more)

### Community 83 - "PortalPage.tsx"
Cohesion: 0.10
Nodes (30): CartStep(), handleContinueToPayment(), handlePaymentSuccess(), validateInfo(), catalogueFormats(), ConfirmStep(), FormatIcon(), FormatOption (+22 more)

### Community 84 - "get_db"
Cohesion: 0.11
Nodes (24): init_admin_db(), _send_printed_or_rearm(), _rearm(), ensure_column(), get_db(), _school(), init_all(), init_db() (+16 more)

### Community 85 - "create_family"
Cohesion: 0.11
Nodes (15): ClassIn, ClassPatch, _clean_class(), create_class(), create_family(), _family_payload(), FamilyCreate, FamilyPatch (+7 more)

### Community 86 - "isolated_storage"
Cohesion: 0.33
Nodes (4): set_backend(), isolated_storage(), Photo storage (`core/storage.py`, read its docstring before touching it), 2026-10-18 (later) — Photos stored in MinIO (`core/storage.py`)

### Community 87 - "devDependencies"
Cohesion: 0.20
Nodes (10): devDependencies, autoprefixer, postcss, tailwindcss, @types/react, @types/react-dom, typescript, vite (+2 more)

### Community 88 - "stats_service.py"
Cohesion: 0.24
Nodes (6): _eur(), _font(), _names(), product_recap(), statement_pdf(), test_a_long_statement_paginates()

### Community 89 - "Servidor FTP de las cámaras (Docker)"
Cohesion: 0.20
Nodes (9): 1. Requisitos en el servidor, 2. Carpetas, con el dueño correcto, 3. Configuración, 4. Arrancar, 5. Crear la cuenta FTP de un colegio, 6. Configurar la cámara, 7. Comprobar de punta a punta, Servidor FTP de las cámaras (Docker) (+1 more)

### Community 92 - "AuditTab.tsx"
Cohesion: 0.28
Nodes (8): Pill(), AuditEvent, AuditSeverity, AuditTab, actionClass(), AuditTab(), SEV_ICON, SEV_KIND

### Community 97 - "admin_update_order"
Cohesion: 0.40
Nodes (3): admin_update_order(), BatchStatusRequest, _has_physical()

### Community 98 - "reset_data"
Cohesion: 0.29
Nodes (4): _require_confirm_word(), reset_data(), reset_data_preview(), _sales_data_counts()

### Community 99 - "Fotos en MinIO"
Cohesion: 0.29
Nodes (6): 1. En el MinIO de producción (una vez), 2. En el backend (`backend/.env`), 3. Pasar las fotos que ya están en el disco, 4. Vigilancia, Fotos en MinIO, MinIO de pruebas con Docker (este PC)

### Community 100 - "App.tsx"
Cohesion: 0.52
Nodes (6): AdminPage, App(), DirectorPage, PageLoader(), PortalPage, ShootPage

### Community 101 - "S3Storage"
Cohesion: 0.16
Nodes (5): S3Storage, _sha1(), StorageError, _local_files(), main()

### Community 102 - "CLAUDE.md"
Cohesion: 0.33
Nodes (4): Commands, Conventions, graphify, Project overview

### Community 104 - "test_formats.py"
Cohesion: 0.20
Nodes (11): _new_format(), _order(), test_a_builtin_price_edit_goes_to_its_setting_and_its_kind_can_change(), test_a_builtin_product_can_be_deleted_and_stays_deleted(), test_a_description_can_be_long_and_old_tables_are_widened(), test_a_new_digital_format_gives_the_download_once_paid(), test_a_new_size_is_offered_to_families_and_can_be_ordered(), test_a_pack_lists_its_products_and_the_lab_gets_one_file_per_product() (+3 more)

### Community 105 - "scripts"
Cohesion: 0.33
Nodes (6): scripts, build, dev, preview, test, typecheck

### Community 109 - "files"
Cohesion: 0.14
Nodes (11): files(), prune_orphan_derivatives(), originals(), class_dirname(), rename_class(), _jpeg_bytes(), kis(), fake() (+3 more)

### Community 112 - "main.py"
Cohesion: 0.05
Nodes (43): is_blocked(), record_hit(), _book_failure(), _book_payment(), _book_refund(), client_error(), ClientError, _collect_attachments() (+35 more)

### Community 115 - "time"
Cohesion: 0.08
Nodes (22): is_leader(), _release(), run_as_leader(), _try_acquire(), enforce(), purge_old(), validate_production_config(), lifespan() (+14 more)

### Community 117 - "media_service.py"
Cohesion: 0.10
Nodes (21): verify_signature(), local_path(), produce(), _prepare_generation(), admin_thumb_path(), check_card_signature(), check_download_signature(), check_download_zip_signature() (+13 more)

### Community 120 - "cleanup_service.py"
Cohesion: 0.05
Nodes (30): admin_system(), _bool(), mail_config_warnings(), is_remote(), prune_empty(), reconcile(), usage(), unhandled_exception() (+22 more)

## Knowledge Gaps
- **6 isolated node(s):** `@types/react`, `@types/react-dom`, `autoprefixer`, `postcss`, `tailwindcss` (+1 more)
  These have ≤1 connection - possible missing edges or undocumented components. (Counts symbols only; 997 node(s) total have ≤1 connection when file, concept and rationale nodes are included.)
- **23 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.

## Suggested Questions
_Questions this graph is uniquely positioned to answer:_

- **Why does `get_db()` connect `get_db` to `shoot_review_service.py`, `protection_service.py`, `get_ctx`, `test_protection.py`, `test_brand.py`, `shoot_api.py`, `test_codes.py`, `conftest.py`, `test_sheet5_6_upload_cards.py`, `format_service.py`, `upload_service.py`, `Connection`, `test_products.py`, `test_photos_admin.py`, `test_organizer.py`, `test_sheet4_photos_ai.py`, `get_ctx`, `brand_service.py`, `alert_service.py`, `exists`, `payment_keys_service.py`, `io`, `test_orders.py`, `shoot_time.py`, `test_cleanup_service.py`, `test_schools_settings.py`, `test_ia.py`, `json`, `ia.py`, `update_photographer_map`, `PhotoOrganizer`, `admin_order_lab_zip`, `admin.py`, `item`, `backend`, `invalidate_families_cache`, `storage.py`, `test_shoot_time.py`, `order_service.py`, `test_roles_payment.py`, `test_siblings.py`, `_check`, `school_service.py`, `test_portal_photos.py`, `insert_order`, `test_sheet7_orders.py`, `test_classes_families.py`, `test_shoot.py`, `photo_service.py`, `create_family`, `isolated_storage`, `admin_update_order`, `reset_data`, `test_formats.py`, `main.py`, `time`, `media_service.py`, `cleanup_service.py`?**
  _High betweenness centrality (0.223) - this node is a cross-community bridge._
- **Are the 2 inferred relationships involving `get_db()` (e.g. with `2026-10-11 — Project document V2 (school constraints) and MySQL` and `Distinto de HEC (y por qué)`) actually correct?**
  _`get_db()` has 2 INFERRED edges - model-reasoned connections that need verification._
- **What connects `@types/react`, `@types/react-dom`, `autoprefixer` to the rest of the system?**
  _6 weakly-connected nodes found - possible documentation gaps or missing edges._
- **Should `shoot_review_service.py` be split into smaller, more focused modules?**
  _Cohesion score 0.1168091168091168 - nodes in this community are weakly interconnected._
- **Why does `Architecture` connect `Architecture` to `shoot_time.py`, `PhotosStep`, `CLAUDE.md`, `main.tsx`, `card_service.py`, `media_service.py`, `isolated_storage`, `exists`, `detect_qr`?**
  _High betweenness centrality (0.150) - this node is a cross-community bridge._
- **Are the 43 inferred relationships involving `Key` (e.g. with `_rename_in_meta()` and `_fresh()`) actually correct?**
  _`Key` has 43 INFERRED edges - model-reasoned connections that need verification._
- **Should `protection_service.py` be split into smaller, more focused modules?**
  _Cohesion score 0.0928030303030303 - nodes in this community are weakly interconnected._