# Graph Report - Atlasv6  (2026-10-10)

## Corpus Check
- cluster-only mode — file stats not available

## Summary
- 1176 nodes · 3125 edges · 54 communities (43 shown, 11 thin omitted)
- Extraction: 95% EXTRACTED · 5% INFERRED · 0% AMBIGUOUS · INFERRED: 146 edges (avg confidence: 0.93)
- Token cost: 0 input · 0 output

## Graph Freshness
- Built from commit: `66f305db`
- 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)
- api/ops_monitoring.py
- admin.py
- service_account.py
- data.py
- DashboardPage.tsx
- tms_api.py
- auth.py
- UsersSection.tsx
- get_current_user
- logging.py
- package.json
- db.py
- tms_processor.py
- jobs.py
- dependencies
- DatabasePage.tsx
- fetchWithTimeout
- tms.py
- log_activity
- sqlalchemy
- auth_service.py
- themes.ts
- workforce.py
- cn
- components.json
- AppearanceSection.tsx
- test_auth_service.py
- main.py
- compilerOptions
- config.py
- models.py
- App.tsx
- OperationsLabPage.tsx
- useTheme.ts
- fonts.ts
- WorkforcePage.tsx
- os
- migrate_pg.py
- devDependencies
- Toast.tsx
- start_all.sh
- stop_all.sh
- modules.d.ts
- scripts
- sanitize.ts
- tail_logs.sh
- vite.config.ts
- backup_db.sh
- install_systemd.sh

## God Nodes (most connected - your core abstractions)
1. `log_activity()` - 67 edges
2. `fetchWithTimeout()` - 40 edges
3. `cn()` - 39 edges
4. `react` - 34 edges
5. `JobHistory` - 32 edges
6. `get_current_user()` - 32 edges
7. `User` - 30 edges
8. `GlassCard()` - 30 edges
9. `Shipment` - 29 edges
10. `_require_user()` - 26 edges

## Surprising Connections (you probably didn't know these)
- `login()` --uses--> `User`  [INFERRED]
  backend/app/api/auth.py → backend/app/db/models.py
- `_dispatch_and_audit()` --uses--> `User`  [INFERRED]
  backend/app/api/jobs.py → backend/app/db/models.py
- `_require_can_trigger()` --uses--> `User`  [INFERRED]
  backend/app/api/jobs.py → backend/app/db/models.py
- `_require_user()` --uses--> `User`  [INFERRED]
  backend/app/api/jobs.py → backend/app/db/models.py
- `_require_user()` --uses--> `User`  [INFERRED]
  backend/app/api/ops_monitoring.py → backend/app/db/models.py

## Import Cycles
- None detected.

## Communities (54 total, 11 thin omitted)

### Community 0 - "api/ops_monitoring.py"
Cohesion: 0.06
Nodes (33): ehc_filters(), ehc_shipments(), _epoch_to_ehc(), get_ehc_status(), get_gantungan_status(), ops_data(), ops_shipments(), ops_status() (+25 more)

### Community 1 - "admin.py"
Cohesion: 0.07
Nodes (28): _audit(), ConfigUpdate, create_user(), delete_user(), get_scheduler(), get_system_config(), list_audit(), list_users() (+20 more)

### Community 2 - "service_account.py"
Cohesion: 0.08
Nodes (26): create_service_account(), delete_service_account(), list_service_accounts(), _require_admin(), rotate_service_token(), _serialize(), ServiceAccountCreate, ServiceAccountResponse (+18 more)

### Community 3 - "data.py"
Cohesion: 0.14
Nodes (32): area_performance(), _clean(), driver_performance(), get_hourly_inbound(), get_hourly_inbound_drilldown(), get_hourly_matrix(), get_hourly_matrix_drilldown(), get_hourly_pickup() (+24 more)

### Community 4 - "DashboardPage.tsx"
Cohesion: 0.06
Nodes (42): MOBILE_MORE_ITEMS, MOBILE_NAV_ITEMS, NAV_ITEMS, NavItem, CellValue, Column, DataTable(), fmt() (+34 more)

### Community 5 - "tms_api.py"
Cohesion: 0.07
Nodes (23): _extract_records(), fetch_ehc_exceptions(), _build_slots(), download_attendance(), download_employees(), _fetch(), download_linehaul(), download_ops_shipments() (+15 more)

### Community 6 - "auth.py"
Cohesion: 0.09
Nodes (23): CustomThemeIn, get_my_preferences(), handshake(), HandshakeRequest, HandshakeResponse, InternalLoginRequest, login(), login_internal() (+15 more)

### Community 7 - "UsersSection.tsx"
Cohesion: 0.17
Nodes (32): Badge(), badgeVariants, Button(), buttonVariants, ConfirmModal(), Drawer(), Input(), AuditLogSection() (+24 more)

### Community 8 - "get_current_user"
Cohesion: 0.09
Nodes (14): jtly_cutoff(), _pct(), _require_user(), _shape(), list_logs(), _require_user(), stream_logs(), _require_user() (+6 more)

### Community 9 - "logging.py"
Cohesion: 0.09
Nodes (14): _config_structlog(), _db_logger(), _db_writer(), _fmt_console(), _get_redis(), _now_local(), _publish_log(), _redact_secrets() (+6 more)

### Community 10 - "package.json"
Cohesion: 0.06
Nodes (30): name, private, type, version, autoprefixer, axios, clsx, @fontsource/ibm-plex-mono (+22 more)

### Community 11 - "db.py"
Cohesion: 0.13
Nodes (13): _blocked_reason(), delete_saved_query(), list_saved_queries(), list_tables(), load_saved_query(), QueryRequest, _require_user(), run_query() (+5 more)

### Community 12 - "tms_processor.py"
Cohesion: 0.11
Nodes (14): Driver, Seller, _batch(), _effective_time(), enrich_shipments(), _final_status(), _load_driver_db(), _load_seller_db() (+6 more)

### Community 13 - "jobs.py"
Cohesion: 0.21
Nodes (17): _create_job(), _dispatch_and_audit(), job_status(), JobChainResponse, JobTriggerResponse, list_jobs(), _require_can_trigger(), _require_user() (+9 more)

### Community 14 - "dependencies"
Cohesion: 0.07
Nodes (28): dependencies, axios, class-variance-authority, clsx, dompurify, @fontsource/ibm-plex-mono, @fontsource/ibm-plex-sans, @fontsource/jetbrains-mono (+20 more)

### Community 15 - "DatabasePage.tsx"
Cohesion: 0.12
Nodes (22): GlobalAlertsDrawer(), LogEntry, openAlerts(), ConfirmModalProps, DrawerProps, Popup(), PopupProps, PopupSize (+14 more)

### Community 16 - "fetchWithTimeout"
Cohesion: 0.21
Nodes (26): Header(), MobileNav(), Sidebar(), GlassCard(), MultiSelectDropdown(), useToast(), fetchWithTimeout(), AnalysisPageContent() (+18 more)

### Community 17 - "tms.py"
Cohesion: 0.13
Nodes (16): JobHistory, attendance_refresh_task(), _refresher(), _build_chain_signatures(), linehaul_refresh_task(), _refresher(), _mark_remaining_skipped(), sync_master_data() (+8 more)

### Community 18 - "log_activity"
Cohesion: 0.18
Nodes (14): log_activity(), cleanup_stale(), _create_scheduled_job(), _find_scheduler_user(), _has_token(), scheduler_attendance(), scheduler_linehaul(), scheduler_tms() (+6 more)

### Community 20 - "auth_service.py"
Cohesion: 0.13
Nodes (11): TmsCreds, UserToken, get_decrypted_tms_creds(), logout(), save_tms_creds(), update_tms_token(), encrypt_token(), _get_fernet() (+3 more)

### Community 21 - "themes.ts"
Cohesion: 0.13
Nodes (25): applyOverrides(), applyResolvedTheme(), applyTheme(), contrastRatio(), CSS_VAR_MAP, CustomThemeResolution, darken(), DEFAULT_CUSTOM_THEME (+17 more)

### Community 22 - "workforce.py"
Cohesion: 0.18
Nodes (9): attendance_summary(), attendance_table(), employee_detail(), employee_list(), employee_summary(), _require_user(), working_days(), AttendanceRecord (+1 more)

### Community 23 - "cn"
Cohesion: 0.17
Nodes (18): Card(), CardAction(), CardContent(), CardDescription(), CardFooter(), CardHeader(), CardTitle(), Select() (+10 more)

### Community 24 - "components.json"
Cohesion: 0.09
Nodes (21): aliases, components, hooks, lib, ui, utils, iconLibrary, menuAccent (+13 more)

### Community 25 - "AppearanceSection.tsx"
Cohesion: 0.17
Nodes (21): InitialState, ThemeState, FontFamily, CARD_EFFECTS, CardEffect, CustomTheme, DETERMINED_PRESET_LIST, resolveSavedTheme() (+13 more)

### Community 26 - "test_auth_service.py"
Cohesion: 0.15
Nodes (15): _extract_email_from_token(), _get_allowed_users(), handshake(), is_user_allowed(), verify_tms_token(), mock_user(), mock_user_token(), test_extract_email_from_token() (+7 more)

### Community 27 - "main.py"
Cohesion: 0.13
Nodes (5): get_auth_rate_limit_string(), get_rate_limit_string(), health(), rate_limit_handler(), ready()

### Community 28 - "compilerOptions"
Cohesion: 0.10
Nodes (19): compilerOptions, allowImportingTsExtensions, baseUrl, isolatedModules, jsx, lib, module, moduleDetection (+11 more)

### Community 29 - "config.py"
Cohesion: 0.15
Nodes (5): configure_logging(), Settings, Config, normalize_ehc_record(), _ts_to_iso()

### Community 30 - "models.py"
Cohesion: 0.20
Nodes (7): AttendanceState, ShipmentState, import_file(), main(), import_attendance_state(), import_shipment_state(), main()

### Community 31 - "App.tsx"
Cohesion: 0.25
Nodes (13): App(), ToastProvider(), API_TIMEOUT_MS, fetchJson(), AdminPage(), AnalysisPage(), DashboardPage(), DatabasePage() (+5 more)

### Community 32 - "OperationsLabPage.tsx"
Cohesion: 0.23
Nodes (14): fmtPct(), KpiCard(), KpiCardProps, AREA_OPTIONS, DAY_OPTIONS, fmtCount(), fmtDay(), fmtPct() (+6 more)

### Community 33 - "useTheme.ts"
Cohesion: 0.35
Nodes (14): applyAndPersist(), fetchBackend(), readCustom(), readLocal(), readSavedThemes(), scheduleBackendSync(), sendBackend(), statesEqual() (+6 more)

### Community 34 - "fonts.ts"
Cohesion: 0.16
Nodes (9): applyFont(), DEFAULT_FONT, ensureFontLoaded(), FONT_LOADERS, FONT_PRESET_LIST, FONT_PRESETS, FontPresetMeta, loadedFonts (+1 more)

### Community 35 - "WorkforcePage.tsx"
Cohesion: 0.21
Nodes (12): AttRow, AttSummaryRow, defaultDate(), EmpDetail, EmpRow, fmt(), monthStart(), RoleSummary (+4 more)

### Community 36 - "os"
Cohesion: 0.22
Nodes (3): run_migrations_offline(), run_migrations_online(), migrate_data()

### Community 37 - "migrate_pg.py"
Cohesion: 0.33
Nodes (6): _insert_batch(), main(), migrate_table(), _normalize(), table_columns(), table_names()

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

### Community 39 - "Toast.tsx"
Cohesion: 0.29
Nodes (6): ICON, STYLE, Toast, ToastContext, ToastContextValue, ToastType

### Community 40 - "start_all.sh"
Cohesion: 0.57
Nodes (6): check(), fail(), log(), ok(), start_all.sh script, warn()

### Community 41 - "stop_all.sh"
Cohesion: 0.62
Nodes (6): check_stopped(), fail(), log(), ok(), stop_all.sh script, warn()

### Community 42 - "modules.d.ts"
Cohesion: 0.33
Nodes (5): *.css, @fontsource/*, @fontsource/*/*.css, @fontsource-variable/*, @fontsource-variable/*/*.css

### Community 44 - "scripts"
Cohesion: 0.40
Nodes (5): scripts, build, dev, preview, typecheck

## Knowledge Gaps
- **24 isolated node(s):** `autoprefixer`, `axios`, `@fontsource/ibm-plex-mono`, `@fontsource/ibm-plex-sans`, `@fontsource/jetbrains-mono` (+19 more)
  These have ≤1 connection - possible missing edges. (Counts symbols only; 476 node(s) total have ≤1 connection when file, concept and rationale nodes are included.)
- **11 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 `log_activity()` connect `log_activity` to `api/ops_monitoring.py`, `admin.py`, `service_account.py`, `tms_api.py`, `auth.py`, `logging.py`, `tms_processor.py`, `jobs.py`, `tms.py`, `auth_service.py`, `config.py`?**
  _High betweenness centrality (0.051) - this node is a cross-community bridge._
- **Are the 19 inferred relationships involving `JobHistory` (e.g. with `get_scheduler()` and `run_scheduler_now()`) actually correct?**
  _`JobHistory` has 19 INFERRED edges - model-reasoned connections that need verification._
- **What connects `autoprefixer`, `axios`, `@fontsource/ibm-plex-mono` to the rest of the system?**
  _24 weakly-connected nodes found - possible documentation gaps or missing edges._
- **Should `api/ops_monitoring.py` be split into smaller, more focused modules?**
  _Cohesion score 0.06025039123630673 - nodes in this community are weakly interconnected._
- **Why does `react` connect `DashboardPage.tsx` to `OperationsLabPage.tsx`, `useTheme.ts`, `fonts.ts`, `WorkforcePage.tsx`, `UsersSection.tsx`, `Toast.tsx`, `package.json`, `DatabasePage.tsx`, `fetchWithTimeout`, `cn`, `AppearanceSection.tsx`, `App.tsx`?**
  _High betweenness centrality (0.030) - this node is a cross-community bridge._
- **Should `admin.py` be split into smaller, more focused modules?**
  _Cohesion score 0.07247223845704266 - nodes in this community are weakly interconnected._
- **Why does `get_current_user()` connect `get_current_user` to `api/ops_monitoring.py`, `admin.py`, `service_account.py`, `data.py`, `auth.py`, `db.py`, `jobs.py`, `auth_service.py`, `workforce.py`, `test_auth_service.py`?**
  _High betweenness centrality (0.025) - this node is a cross-community bridge._