# Graph Report - khatibi (2026-10-09) ## Corpus Check - 124 files · ~93,934 words - Verdict: corpus is large enough that graph structure adds value. - Unclassified: 7 file(s) not represented in the graph (top: (none) 4, .env 2, .csv 1) ## Summary - 821 nodes · 1291 edges · 93 communities (26 shown, 67 thin omitted) - Extraction: 92% EXTRACTED · 8% INFERRED · 0% AMBIGUOUS · INFERRED: 103 edges (avg confidence: 0.86) - Token cost: 0 input · 0 output ## Graph Freshness - Built from commit: `6f36db63` - 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) - views/store.py - project_tree.py - sqlite_db_backup.py - django_db - Customer ID Backup/New Factor Template - views/customers.py - cheque_inquiry.py - admin_panel/templates/admin_panel/baseHesabdari.html - django_db_models_deletion - django_conf - admin_panel/storeBK1.html - ViewSmokeTests - admin_panel/templates/admin_panel/customerAction.html - User - admin_panel/templates/admin_panel/bedehi.html - django_contrib - models/__init__.py - admin_panel/templates/admin_panel/customerBase.html - hesabdariCheckPassFail.html - Reference guide - ProductInStore - graphify - hesabdariResidNashode.html - 0017_factoriteam_garantyesh.py - django_apps - 0002_auto_20220114_1616.py - 0021_alter_article_type.py - Rip'n Fast. Fewer Tokens. Better Code. - 0027_alter_action_nazar.py - admin_panel/entezar.html - views/finance.py - Customer Modals UI - 0029_alter_article_options.py - 0034_alter_article_sarresid.py - 0005_auto_20220121_2054.py - 0035_alter_article_sarresid.py - 0009_remove_storeroom_user.py - 0010_auto_20220122_1546.py - 0040_customer_laghv_bazdid.py - 0043_sarresid_user.py - 0048_alter_productinstore_options.py - 0032_article_paystatus.py - 0033_article_nahvepardakht.py - 0044_sarresid_desc.py - GEMINI.md - Customer Action Include - New Customer Base Template - Customer Feedback Partial - Customer Factor Detail - Customer Accounting Template - Customer Factor List - Customer Feedback Page - Action List Template - base.html - Customer New Factor - Customer New Factor V2 - Customer Satisfaction List - Customer Satisfaction Partial - Customer Check/Debt Management - admin_panel/templates/admin_panel/customerBaseNew.html - Customer List - Financial Dashboard - Accounting Main View - New Inventory Operation - Inventory Operations List - Operations Backup Template - Financial Report Template - Debt Collection Dashboard - Inventory Movement Report - Customer Satisfaction Dashboard - Check and Credit Report Template - Satisfaction List Template - Store Inventory Template - Store Transfers Template - Stores List Template - toCurrency - Extended Requirements File - Requirements File - ModelsPackageContractTests - UrlContractTests - system.py ## God Nodes (most connected - your core abstractions) 1. `Rip'n Fast. Fewer Tokens. Better Code.` - 23 edges 2. `User` - 22 edges 3. `create_transfer_request()` - 22 edges 4. `Reference guide` - 18 edges 5. `current_stock()` - 16 edges 6. `make_user()` - 15 edges 7. `stock_in()` - 15 edges 8. `Customer ID Backup/New Factor Template` - 15 edges 9. `approve_transfer_request()` - 13 edges 10. `make_product()` - 13 edges ## Surprising Connections (you probably didn't know these) - `check_financial_discrepancy()` --uses--> `Customer` [INFERRED] check_finance.py → admin/models.py - `run_360_audit()` --uses--> `Customer` [INFERRED] ghost_hunter.py → admin/models.py - ``nest=` is a max, so it cannot tell a long function from a tangled one` --references--> `index()` [INFERRED] ripwire - README.md → admin/views.py - `VisitQueue` --uses--> `User` [INFERRED] admin_panel/models/actions.py → admin/models.py - `StoreRoom` --uses--> `User` [INFERRED] admin_panel/models/store.py → admin/models.py ## Import Cycles - None detected. ## Hyperedges (group relationships) - **Customer Satisfaction & Collection** — admin_panel_templates_admin_panel_report_rezayat, admin_panel_templates_admin_panel_report_debtors_no_vosol, admin_panel_customer_customernazarinc [EXTRACTED 0.90] - **Customer Management Flow** — admin_panel_customer_base_new, admin_panel_customer_action_inc, admin_panel_customer_id_factor, admin_panel_customer_hesabdari [EXTRACTED 1.00] - **Financial & Debt Management** — admin_panel_templates_admin_panel_financial_dashboard, admin_panel_templates_admin_panel_hesabdari [EXTRACTED 1.00] - **Graphify Output Artifacts** — graphify-out_graph_json, graphify-out_wiki_index_md, graphify-out_graph_report_md [EXTRACTED 1.00] - **Graphify Subcommands** — graphify_query, graphify_path, graphify_explain [EXTRACTED 1.00] - **Inventory Management System** — admin_panel_templates_admin_panel_store, admin_panel_templates_admin_panel_store_transfers, admin_panel_templates_admin_panel_report_inventory_movements, admin_panel_templates_admin_panel_operationsbk [EXTRACTED 1.00] - **Bedehi Report Navigation** — django_urls_admin_panel_bedehi, django_urls_admin_panel_bedehikhadamat, django_urls_admin_panel_bedehinasb [EXTRACTED] - **Login Form** — admin_panel_templates_admin_panel_login, django_url_admin_panel_p_login, django_csrf_token, form_field_username, form_field_password [EXTRACTED] - **New Store Form** — admin_panel_templates_admin_panel_storebk1, django_url_admin_panel_newstore, django_csrf_token, form_field_storename [EXTRACTED] - **Store Inventory Display** — admin_panel_templates_admin_panel_storebk1, template_variable_productsum, product_property_product_name, product_property_mojodi [EXTRACTED] - **Customer List Page** — admin_panel_templates_admin_panel_entezar_html, concept_customer_data, concept_url_admin_panel_customers [INFERRED 0.80] - **Customer Lifecycle Management** — admin_panel_templates_admin_panel_customers [INFERRED 0.85] - **Customer Interaction Lifecycle** — admin_panel_templates_admin_panel_customers, admin_panel_templates_admin_panel_customerNew, admin_panel_templates_admin_panel_customerRezayat [INFERRED 0.85] - **New Factor Creation Flow** — admin_panel_templates_admin_panel_customernewbackup_html, admin_panel_urls_newfactor, concept_client_side_form_logic, concept_customer, concept_category [INFERRED 0.85] - **Customer Management UI Flow** — admin_panel_templates_admin_panel_customersbk_html, admin_panel_templates_admin_panel_customersbk_html_createcs, admin_panel_templates_admin_panel_customersbk_html_openrow, concept_customer_modal_ui [INFERRED 0.90] - **Financial & Debt Management Flow** — admin_panel_templates_admin_panel_customerSarresid, admin_panel_templates_admin_panel_hesabdari, admin_panel_templates_admin_panel_financial_dashboard [INFERRED 0.90] - **New Factor Item Creation Flow** — admin_panel_templates_admin_panel_customeridfactorbackup_html_js, panel_urls_productmojodi, concept_product, concept_productcategory [INFERRED 0.90] - **Settle Due Payment Flow** — admin_panel_templates_admin_panel_hesabdaricheckpassfail_html, admin_panel_url_passcheck, admin_panel_url_pardakhtnesiye [INFERRED 0.90] - **Accounting and Billing Flow** — admin_panel_templates_admin_panel_basehesabdari, concept_url_admin_panel_hesabdari, concept_url_admin_panel_bedehi [INFERRED] - **Bedehi Template Data Contract** — admin_panel_templates_admin_panel_bedehi_html, django_context_variable_mandehesabkp, django_context_variable_articls [INFERRED] - **Customer Action Creation Flow** — admin_panel_templates_admin_panel_customeraction, admin_panel_urls_customernewaction, concept_action_model [INFERRED] - **Customer Management UI** — admin_panel_templates_admin_panel_customeridbackup_html, concept_customer, django_url_admin_panel_customeredit, api_endpoint_panel_customer_del, django_url_admin_panel_customerfactors [INFERRED] - **Client-side Payment Processing Flow** — admin_panel_templates_admin_panel_hesabdaricheckpass_html, admin_panel_urls_passcheck, admin_panel_urls_pardakhtnesiye [INFERRED] - **Nesiye Payment Flow** — admin_panel_templates_admin_panel_hesabdariresidnashode, admin_panel_urls_pardakhtnesiye [INFERRED] - **New Factor Creation Flow** — admin_panel_templates_admin_panel_customeridbackup_html, django_url_admin_panel_productsjson, api_endpoint_panel_productmojodi, admin_panel_templates_admin_panel_customeridbackup_html_orderlist, admin_panel_templates_admin_panel_customeridbackup_html_buildorderlist, django_url_admin_panel_newfactor [INFERRED] - **Store and Inventory Management Flow** — admin_panel_templates_admin_panel_basestore, concept_url_admin_panel_stores, concept_url_admin_panel_productadd, concept_url_admin_panel_operations, concept_url_admin_panel_store_transfers [INFERRED] ## Communities (93 total, 67 thin omitted) ### Community 0 - "views/store.py" Cohesion: 0.06 Nodes (28): StoreRoom, Meta, StoreRoomOwner, StoreTransferRequest, Meta, Status, approve_transfer_request(), cancel_transfer_request() (+20 more) ### Community 1 - "project_tree.py" Cohesion: 0.05 Nodes (18): remove_query_param(), check_financial_discrepancy(), entrypoint.sh script, run_360_audit(), main(), Counts, format_header(), generate_snapshot() (+10 more) ### Community 2 - "sqlite_db_backup.py" Cohesion: 0.06 Nodes (3): Command, Command, Command ### Community 3 - "django_db" Cohesion: 0.06 Nodes (16): Migration, Migration, Migration, Migration, Migration, Migration, Migration, Migration (+8 more) ### Community 4 - "Customer ID Backup/New Factor Template" Cohesion: 0.07 Nodes (17): Customer ID Backup/New Factor Template, all_products (JS variable), buildOrderList (JS function), orderList (JS variable), Client-side script in customerIDFactorBackup.html, URL: admin_panel:customerEdit, admin_panel:newFactor URL, Category Data (+9 more) ### Community 5 - "views/customers.py" Cohesion: 0.05 Nodes (22): Customer, Meta, PhoneNumber, customer(), customerDel(), customerEdit(), customerFactor(), customerFactors() (+14 more) ### Community 6 - "cheque_inquiry.py" Cohesion: 0.17 Nodes (6): api_check_sabt_inquiry(), api_check_status_inquiry(), parse_cheque_result_html(), run_bpi_cheque_inquiry_logic(), run_cbi_sayad_inquiry_logic(), solve_base64_captcha() ### Community 7 - "admin_panel/templates/admin_panel/baseHesabdari.html" Cohesion: 0.08 Nodes (22): admin_panel/base.html, Django Custom Tags: custom_tags, URL: admin_panel:ActionListUserToday, URL: admin_panel:bedehi, URL: admin_panel:customers, URL: admin_panel:entezar, URL: admin_panel:hesabdari, URL: admin_panel:hesabdari_residnashone (+14 more) ### Community 8 - "django_db_models_deletion" Cohesion: 0.08 Nodes (12): Migration, Migration, Migration, Migration, Migration, Migration, Migration, Migration (+4 more) ### Community 9 - "django_conf" Cohesion: 0.09 Nodes (9): Migration, Migration, Migration, Migration, Migration, Migration, Migration, Migration (+1 more) ### Community 10 - "admin_panel/storeBK1.html" Cohesion: 0.11 Nodes (17): Django CSRF Token, Django Custom Tags, Django Static Files, Django URL: admin_panel:newStore, Django URL: admin_panel:operations, Django URL: admin_panel:p_login, Django URL: admin_panel:store, Form Field: password (+9 more) ### Community 12 - "admin_panel/templates/admin_panel/customerAction.html" Cohesion: 0.16 Nodes (10): admin_panel/templates/admin_panel/customerActionInc.html, admin_panel:customerNewAction URL, Action Data Model, DataTables Library, jQuery, User Data Model, Django 'url' template tag, Bulma CSS (+2 more) ### Community 13 - "User" Cohesion: 0.15 Nodes (19): User, Action, VisitQueue, Factor, Meta, FactorIteam, UserProfile, ActionList() (+11 more) ### Community 14 - "admin_panel/templates/admin_panel/bedehi.html" Cohesion: 0.22 Nodes (8): Articl Model, Customer Model, articls, toJalali, admin_panel:bedehi, admin_panel:bedehiKhadamat, admin_panel:bedehiNasb, admin_panel:customer ### Community 15 - "django_contrib" Cohesion: 0.22 Nodes (3): StoreRoomAdmin, StoreRoomOwnerInline, StoreTransferRequestAdmin ### Community 16 - "models/__init__.py" Cohesion: 0.06 Nodes (22): Customer, Factor, FactorIteam, PhoneNumber, Product, ProductCategory, ProductInStore, StoreRoom (+14 more) ### Community 18 - "hesabdariCheckPassFail.html" Cohesion: 0.20 Nodes (9): Customer Data Object, Factor Data Object, Sarresid Data Object, admin_panel:customerNew URL, admin_panel:pardakhtNesiye URL, /panel/passCheck/ URL, admin_panel.ViewReportMali Permission, jQuery JS Library (+1 more) ### Community 19 - "Reference guide" Cohesion: 0.07 Nodes (27): 10. Quality evaluation, 11. Agent integration, 12. Supported languages and formats, 13. Performance, 14. Known limits, 15. Documentation, 16. Improvement, 17. License (+19 more) ### Community 20 - "ProductInStore" Cohesion: 0.14 Nodes (8): Product, Meta, ProductCategory, ProductInStore, Meta, MovementType, ProductStockHistory, Meta ### Community 21 - "graphify" Cohesion: 0.22 Nodes (8): Copilot Chat, graphify, graphify-out/graph.json, graphify-out/GRAPH_REPORT.md, graphify-out/wiki/index.md, graphify explain, graphify path, graphify query ### Community 22 - "hesabdariResidNashode.html" Cohesion: 0.21 Nodes (11): admin_panel:customerNew, admin_panel:pardakhtNesiye, /panel/passCheck/, all_sarresid, mandehesabKP, admin_panel.ViewReportMali, jQuery, pDatepicker JS Library (+3 more) ### Community 25 - "0002_auto_20220114_1616.py" Cohesion: 0.29 Nodes (3): Migration, Migration, Migration ### Community 27 - "Rip'n Fast. Fewer Tokens. Better Code." Cohesion: 0.05 Nodes (42): index(), 1. Codebase Navigation & Analysis (Ripwire vs. Graphify), 2. Dynamic Help, Self-Correction & Staleness, 3. Git Operations & Safety, 4. Development Server Lifecycle, 5. Environment, Frontend & PWA Safety, 6. End-to-End Browser Tests (Playwright), Project Operating & Agent Guidelines (+34 more) ### Community 29 - "admin_panel/entezar.html" Cohesion: 0.40 Nodes (4): Customer Data Structure, kamaDatepicker Library, custom_tags, toJalali filter ### Community 30 - "views/finance.py" Cohesion: 0.14 Nodes (21): Migration, Article, Meta, ArticleType, Sarresid, addSarresid(), bedehi(), bedehiKhadamat() (+13 more) ### Community 31 - "Customer Modals UI" Cohesion: 0.67 Nodes (3): createCS click handler, openRow click handler, Customer Modals UI ## Ambiguous Edges - Review These - `admin_panel/base.html` → `admin_panel/templates/admin_panel/baseHesabdari.html` [AMBIGUOUS] admin_panel/templates/admin_panel/baseHesabdari.html · relation: conceptually_related_to ## Knowledge Gaps - **110 isolated node(s):** `DataTables Library`, `Customer Data Object`, `Factor Data Object`, `admin_panel:pardakhtNesiye URL`, `/panel/passCheck/ URL` (+105 more) These have ≤1 connection - possible missing edges or undocumented components. (Counts symbols only; 398 node(s) total have ≤1 connection when file, concept and rationale nodes are included.) - **67 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 `Rip'n Fast. Fewer Tokens. Better Code.` connect `Rip'n Fast. Fewer Tokens. Better Code.` to `Reference guide`?** _High betweenness centrality (0.117) - this node is a cross-community bridge._ - **Are the 21 inferred relationships involving `User` (e.g. with `Action` and `VisitQueue`) actually correct?** _`User` has 21 INFERRED edges - model-reasoned connections that need verification._ - **What connects `DataTables Library`, `Customer Data Object`, `Factor Data Object` to the rest of the system?** _110 weakly-connected nodes found - possible documentation gaps or missing edges._ - **Should `views/store.py` be split into smaller, more focused modules?** _Cohesion score 0.06247086247086247 - nodes in this community are weakly interconnected._ - **Why does `index()` connect `Rip'n Fast. Fewer Tokens. Better Code.` to `views/customers.py`?** _High betweenness centrality (0.116) - this node is a cross-community bridge._ - **Should `project_tree.py` be split into smaller, more focused modules?** _Cohesion score 0.052600818234950324 - nodes in this community are weakly interconnected._ ### Low-confidence Hints _AMBIGUOUS edges — the extractor was unsure. Verify before acting on these._ - **What is the exact relationship between `admin_panel/base.html` and `admin_panel/templates/admin_panel/baseHesabdari.html`?** _Edge tagged AMBIGUOUS (relation: conceptually_related_to) - confidence is low._