diff --git a/docs/gitgalaxy_architecture_brief.md b/docs/gitgalaxy_architecture_brief.md index beef8791..950a2e62 100644 --- a/docs/gitgalaxy_architecture_brief.md +++ b/docs/gitgalaxy_architecture_brief.md @@ -6,10 +6,10 @@ |---|---| | **Engine** | `GitGalaxy Scope vlatest (Delta Mode)` | | **Target Path** | `/home/runner/work/gitgalaxy/gitgalaxy` | -| **Timestamp** | `2026-08-21T11:33:16.491079+00:00` | -| **Scan Duration** | `5.05s` | +| **Timestamp** | `2026-08-21T12:07:01.093581+00:00` | +| **Scan Duration** | `7.69s` | | **Git Branch** | `main` | -| **Git Commit** | `8f34439c7d1366c5dc6fe130a3580c30326efc0c` | +| **Git Commit** | `5f82b6f165d2ae5087d369d083d860f82124b21c` | | **Git Remote** | `https://github.com/squid-protocol/gitgalaxy` | | **Zero-Dependency Mode** | `Inactive (Full Precision)` | @@ -65,7 +65,7 @@ | Total Artifacts | 823 | | Analyzed Artifacts (Scanned) | 280 | | Excluded Artifacts (Unparsable data, binaries, unsupported formats) | 543 | -| Total LOC | 59516 | +| Total LOC | 59526 | | Volatility Index | 0.007 | | % Scanned of codebase = | 34.0% | | Dominant Lang | PYTHON | @@ -82,7 +82,7 @@ ## 4. COMPOSITION | Lang | Files | LOC | Share | |---|---|---|---| -| PYTHON | 241 | 59000 | 86.1% | +| PYTHON | 241 | 59010 | 86.1% | | MARKDOWN | 27 | 0 | 9.6% | | YAML | 8 | 494 | 2.9% | | PLAINTEXT | 3 | 0 | 1.1% | @@ -187,10 +187,10 @@ These files pull in the most external dependencies. They are highly coupled and ## 9. DIRECTORY GROUPS (Top 10 Heaviest Modules) | Folder Path | Files | Total Impact | Avg Cog Load | Avg Debt | |---|---|---|---|---| -| `tests/extraction/languages` | 92 | 13212.47 | 3.33% | 0.0% | -| `tests/core_engine` | 22 | 2388.84 | 2.82% | 0.0% | +| `tests/extraction/languages` | 92 | 13215.69 | 3.33% | 0.0% | +| `tests/core_engine` | 22 | 2389.4 | 2.82% | 0.0% | | `gitgalaxy` | 6 | 1754.78 | 8.62% | 0.0% | -| `gitgalaxy/core` | 9 | 1304.24 | 14.25% | 6.55% | +| `gitgalaxy/core` | 9 | 1304.26 | 14.25% | 6.65% | | `gitgalaxy/recorders` | 8 | 1128.62 | 20.62% | 3.3% | | `tests/security_auditing` | 15 | 986.5 | 1.99% | 0.0% | | `gitgalaxy/metrics` | 5 | 921.48 | 18.93% | 4.56% | @@ -204,7 +204,7 @@ These files pull in the most external dependencies. They are highly coupled and - `action.yml` -> **99.876%** Exposure - `bitbucket-pipelines.yml` -> **99.4071%** Exposure - `gitgalaxy/core/prism.py` -> **30.1712%** Exposure -- `gitgalaxy/core/detector.py` -> **18.2708%** Exposure +- `gitgalaxy/core/detector.py` -> **19.1267%** Exposure ### Highest State Flux (Mutation/Volatility) - `gitgalaxy/recorders/llm_recorder.py` -> **100.0%** Exposure - `gitgalaxy/recorders/gpu_recorder.py` -> **99.9992%** Exposure @@ -235,19 +235,19 @@ These files pull in the most external dependencies. They are highly coupled and ## 11. CUMULATIVE RISK HITLIST (Top 10 Highest Risk Files) > Cumulative Risk is the sum of all individual risk exposures. These files represent the highest multi-dimensional technical debt and architectural fragility. -### 1. `gitgalaxy/core/prism.py` (PYTHON) -> Cumulative Risk: **499.81** +### 1. `gitgalaxy/core/prism.py` (PYTHON) -> Cumulative Risk: **499.69** - **Archetype:** `file_cluster_16` (Distance: 11.97 IQR) - **Magnitude:** 442.74 | **LOC:** 1144 | **CtrlFlow:** 67.1% | **Authorship Centralization:** 92.3% - **Primary Risk Drivers:** Spec Match (100.0%), State Flux (99.9586%), Safety Score (82.165%), Verification (80.0%) - **Heaviest Functions:** `_strip_single_line_comments` (Impact: 120.2), `_find_balanced_end` (Impact: 111.6), `_partition_embedded_languages` (Impact: 39.6) -### 2. `gitgalaxy/core/detector.py` (PYTHON) -> Cumulative Risk: **471.43** -- **Archetype:** `file_cluster_8` (Distance: 12.574 IQR) -- **Magnitude:** 326.8 | **LOC:** 5197 | **CtrlFlow:** 75.5% | **Authorship Centralization:** 90.9% -- **Primary Risk Drivers:** Spec Match (100.0%), Churn (100.0%), Verification (80.0%), Safety Score (59.8473%) +### 2. `gitgalaxy/core/detector.py` (PYTHON) -> Cumulative Risk: **472.0** +- **Archetype:** `file_cluster_8` (Distance: 12.576 IQR) +- **Magnitude:** 326.82 | **LOC:** 5206 | **CtrlFlow:** 75.5% | **Authorship Centralization:** 91.0% +- **Primary Risk Drivers:** Spec Match (100.0%), Churn (100.0%), Verification (80.0%), Safety Score (59.8437%) - **Heaviest Functions:** `_classify_function` (Impact: 46.8), `_resolve_class_start_match` (Impact: 31.8), `get_token_mass` (Impact: 6.4) -### 3. `gitgalaxy/recorders/llm_recorder.py` (PYTHON) -> Cumulative Risk: **457.43** +### 3. `gitgalaxy/recorders/llm_recorder.py` (PYTHON) -> Cumulative Risk: **457.31** - **Archetype:** `file_cluster_8` (Distance: 13.247 IQR) - **Magnitude:** 753.72 | **LOC:** 1407 | **CtrlFlow:** 85.9% | **Authorship Centralization:** 87.5% - **Primary Risk Drivers:** State Flux (100.0%), Spec Match (100.0%), Safety Score (96.0314%), Cognitive Load (61.3945%) @@ -259,37 +259,37 @@ These files pull in the most external dependencies. They are highly coupled and - **Primary Risk Drivers:** None - **Heaviest Functions:** `generate_service_skeleton` (Impact: 14.3), `main` (Impact: 6.3) -### 5. `gitgalaxy/metrics/statistical_auditor.py` (PYTHON) -> Cumulative Risk: **439.04** +### 5. `gitgalaxy/metrics/statistical_auditor.py` (PYTHON) -> Cumulative Risk: **439.01** - **Archetype:** `file_cluster_8` (Distance: 11.06 IQR) - **Magnitude:** 243.32 | **LOC:** 537 | **CtrlFlow:** 70.2% | **Authorship Centralization:** 100.0% - **Primary Risk Drivers:** Spec Match (100.0%), State Flux (99.311%), Safety Score (82.0287%), Verification (80.0%) - **Heaviest Functions:** `audit` (Impact: 142.8), `_is_dead_code` (Impact: 9.8), `_is_threat` (Impact: 9.5) -### 6. `gitgalaxy/metrics/signal_processor.py` (PYTHON) -> Cumulative Risk: **423.56** +### 6. `gitgalaxy/metrics/signal_processor.py` (PYTHON) -> Cumulative Risk: **423.43** - **Archetype:** `file_cluster_8` (Distance: 11.091 IQR) - **Magnitude:** 435.02 | **LOC:** 2043 | **CtrlFlow:** 74.4% | **Authorship Centralization:** 81.8% - **Primary Risk Drivers:** Spec Match (100.0%), Verification (80.0%), Safety Score (56.575%), State Flux (55.7862%) - **Heaviest Functions:** `_calc_indentation_style` (Impact: 275.9), `_normalize_temporal_metrics` (Impact: 13.7), `_calc_ownership_entropy` (Impact: 9.7) -### 7. `gitgalaxy/galaxyscope.py` (PYTHON) -> Cumulative Risk: **422.63** +### 7. `gitgalaxy/galaxyscope.py` (PYTHON) -> Cumulative Risk: **422.53** - **Archetype:** `file_cluster_8` (Distance: 12.064 IQR) - **Magnitude:** 1441.6 | **LOC:** 3085 | **CtrlFlow:** 71.4% | **Authorship Centralization:** 100.0% - **Primary Risk Drivers:** Spec Match (100.0%), Verification (80.0%), State Flux (79.1636%), Safety Score (62.8962%) - **Heaviest Functions:** `_process_file_worker` (Impact: 1205.8), `execution_timeout_failsafe` (Impact: 1.9), `_init_worker` (Impact: 1.4) -### 8. `gitgalaxy/cobol_refractor_controller.py` (PYTHON) -> Cumulative Risk: **409.15** +### 8. `gitgalaxy/cobol_refractor_controller.py` (PYTHON) -> Cumulative Risk: **409.12** - **Archetype:** `file_cluster_13` (Distance: 10.697 IQR) - **Magnitude:** 189.4 | **LOC:** 434 | **CtrlFlow:** 50.9% | **Authorship Centralization:** 100.0% - **Primary Risk Drivers:** Spec Match (100.0%), State Flux (97.3782%), Verification (80.0%), Safety Score (68.5044%) - **Heaviest Functions:** `main` (Impact: 50.1), `process_payload` (Impact: 26.8), `record_dead_code` (Impact: 14.4) -### 9. `gitgalaxy/recorders/gpu_recorder.py` (PYTHON) -> Cumulative Risk: **394.19** +### 9. `gitgalaxy/recorders/gpu_recorder.py` (PYTHON) -> Cumulative Risk: **394.17** - **Archetype:** `file_cluster_8` (Distance: 11.638 IQR) - **Magnitude:** 128.04 | **LOC:** 441 | **CtrlFlow:** 65.1% | **Authorship Centralization:** 100.0% - **Primary Risk Drivers:** Spec Match (100.0%), State Flux (99.9992%), Safety Score (90.3802%), Cognitive Load (46.8693%) - **Heaviest Functions:** `__init__` (Impact: 7.2), `save_minified` (Impact: 6.6), `_intern` (Impact: 4.3) -### 10. `gitgalaxy/core/network_risk_sensor.py` (PYTHON) -> Cumulative Risk: **392.01** +### 10. `gitgalaxy/core/network_risk_sensor.py` (PYTHON) -> Cumulative Risk: **391.94** - **Archetype:** `file_cluster_13` (Distance: 10.998 IQR) - **Magnitude:** 260.22 | **LOC:** 442 | **CtrlFlow:** 68.1% | **Authorship Centralization:** 66.7% - **Primary Risk Drivers:** Spec Match (100.0%), Verification (80.0%), Safety Score (73.4783%), State Flux (50.9709%) @@ -320,7 +320,7 @@ These files pull in the most external dependencies. They are highly coupled and * *Network Topology:* * `Ecosystem Role:` Pure Consumer (Orchestrator) | `Dependency Blast Radius (PageRank):` 4.458 * `Choke Point (Betweenness):` 0.00107 | `Ripple Effect (Closeness):` 0.010753 - * `Imports (Out-Degree: 29):` signal, gitgalaxy.core.spatial_mapper, typing, re, gitgalaxy.core.aperture, gitgalaxy.security.security_auditor, subprocess, gitgalaxy.core.spatial_correlation... + * `Imports (Out-Degree: 29):` datetime, collections, gitgalaxy.tools.ai_guardrails.ai_appsec_sensor, shutil, gitgalaxy.core.network_risk_sensor, gitgalaxy.security.manifest_parser, argparse, gitgalaxy.core.prism... * `Imported By (In-Degree: 3):` (Excluded from Brief to save tokens) ### `tests/extraction/languages/test_powershell_strict.py` (PYTHON | Tier 1.5 | AI Safe: 0.0%) @@ -365,7 +365,7 @@ These files pull in the most external dependencies. They are highly coupled and * *Network Topology:* * `Ecosystem Role:` Unknown | `Dependency Blast Radius (PageRank):` 0.0 * `Choke Point (Betweenness):` 0.0 | `Ripple Effect (Closeness):` 0.0 - * `Imports (Out-Degree: 0):` sys, re, pathlib, gitgalaxy.standards.language_standards, pytest, _strict_harness + * `Imports (Out-Degree: 0):` re, sys, pathlib, gitgalaxy.standards.language_standards, pytest, _strict_harness * `Imported By (In-Degree: 0):` None (Orphan / Entrypoint) ### `tests/extraction/languages/test_solidity_strict.py` (PYTHON | Tier 1.5 | AI Safe: 0.0%) @@ -380,7 +380,7 @@ These files pull in the most external dependencies. They are highly coupled and * *Network Topology:* * `Ecosystem Role:` Unknown | `Dependency Blast Radius (PageRank):` 0.0 * `Choke Point (Betweenness):` 0.0 | `Ripple Effect (Closeness):` 0.0 - * `Imports (Out-Degree: 0):` sys, pathlib, gitgalaxy.standards.language_standards, pytest, legacy, _strict_harness + * `Imports (Out-Degree: 0):` sys, pathlib, legacy, gitgalaxy.standards.language_standards, pytest, _strict_harness * `Imported By (In-Degree: 0):` None (Orphan / Entrypoint) ### `gitgalaxy/recorders/llm_recorder.py` (PYTHON | Tier 1.5 | AI Safe: 0.0%) @@ -404,7 +404,7 @@ These files pull in the most external dependencies. They are highly coupled and * *Network Topology:* * `Ecosystem Role:` Pure Producer (Foundation) | `Dependency Blast Radius (PageRank):` 4.272 * `Choke Point (Betweenness):` 0.0 | `Ripple Effect (Closeness):` 0.011201 - * `Imports (Out-Degree: 0):` statistics, json, collections, typing, pathlib, gitgalaxy.standards, heapq, logging... + * `Imports (Out-Degree: 0):` gitgalaxy.standards, json, pathlib, collections, heapq, logging, statistics, sqlite3... * `Imported By (In-Degree: 2):` (Excluded from Brief to save tokens) ### `tests/extraction/languages/test_yacc.py` (PYTHON | Tier 1.5 | AI Safe: 0.0%) @@ -419,7 +419,7 @@ These files pull in the most external dependencies. They are highly coupled and * *Network Topology:* * `Ecosystem Role:` Unknown | `Dependency Blast Radius (PageRank):` 0.0 * `Choke Point (Betweenness):` 0.0 | `Ripple Effect (Closeness):` 0.0 - * `Imports (Out-Degree: 0):` sys, pathlib, gitgalaxy.standards.language_standards, pytest, extraction._extraction_harness + * `Imports (Out-Degree: 0):` sys, extraction._extraction_harness, pathlib, gitgalaxy.standards.language_standards, pytest * `Imported By (In-Degree: 0):` None (Orphan / Entrypoint) ### `tests/extraction/languages/test_ruby_strict.py` (PYTHON | Tier 1.5 | AI Safe: 0.0%) @@ -439,7 +439,7 @@ These files pull in the most external dependencies. They are highly coupled and ### `tests/core_engine/test_detector.py` (PYTHON | Tier 1.5 | AI Safe: 0.0%) - **Global Archetype:** `Unknown Archetype` (Drift: N/A IQR) -- **Magnitude:** 630.52 | **LOC:** 3332 | **CtrlFlow:** 0.0% | **Authorship Centralization:** 0.0% +- **Magnitude:** 631.08 | **LOC:** 3342 | **CtrlFlow:** 0.0% | **Authorship Centralization:** 0.0% - **Risk Profile:** Cognitive Load (0.0%), Tech Debt (0.0%) **Top Internal Functions/Classes:** * `test_detector_exact_loc_mapping` (Impact: 182.5) @@ -457,7 +457,7 @@ These files pull in the most external dependencies. They are highly coupled and * *Network Topology:* * `Ecosystem Role:` Unknown | `Dependency Blast Radius (PageRank):` 0.0 * `Choke Point (Betweenness):` 0.0 | `Ripple Effect (Closeness):` 0.0 - * `Imports (Out-Degree: 0):` gitgalaxy.standards.gitgalaxy_config, gitgalaxy.core.spatial_mapper, re, gitgalaxy.core.detector, gitgalaxy.standards.language_standards, gitgalaxy.core.prism, math, logging... + * `Imports (Out-Degree: 0):` re, gitgalaxy.core.spatial_mapper, unittest.mock, gitgalaxy.core.detector, gitgalaxy.standards.gitgalaxy_config, logging, gitgalaxy.core.prism, gitgalaxy.standards.language_standards... * `Imported By (In-Degree: 0):` None (Orphan / Entrypoint) ### `tests/extraction/languages/test_makefile.py` (PYTHON | Tier 1.5 | AI Safe: 0.0%) @@ -472,7 +472,7 @@ These files pull in the most external dependencies. They are highly coupled and * *Network Topology:* * `Ecosystem Role:` Unknown | `Dependency Blast Radius (PageRank):` 0.0 * `Choke Point (Betweenness):` 0.0 | `Ripple Effect (Closeness):` 0.0 - * `Imports (Out-Degree: 0):` _extraction_harness, sys, only, pathlib, typing, gitgalaxy.standards.language_standards, pytest + * `Imports (Out-Degree: 0):` sys, pathlib, _extraction_harness, gitgalaxy.standards.language_standards, pytest, typing, only * `Imported By (In-Degree: 0):` None (Orphan / Entrypoint) ### `tests/extraction/languages/test_yaml_strict.py` (PYTHON | Tier 1.5 | AI Safe: 0.0%) @@ -487,7 +487,7 @@ These files pull in the most external dependencies. They are highly coupled and * *Network Topology:* * `Ecosystem Role:` Unknown | `Dependency Blast Radius (PageRank):` 0.0 * `Choke Point (Betweenness):` 0.0 | `Ripple Effect (Closeness):` 0.0 - * `Imports (Out-Degree: 0):` sys, this, pathlib, gitgalaxy.standards.language_standards, pytest, and, _strict_harness + * `Imports (Out-Degree: 0):` sys, this, pathlib, gitgalaxy.standards.language_standards, pytest, _strict_harness, and * `Imported By (In-Degree: 0):` None (Orphan / Entrypoint) ### `gitgalaxy/security/manifest_parser.py` (PYTHON | Tier 1.5 | AI Safe: 0.0%) @@ -510,7 +510,7 @@ These files pull in the most external dependencies. They are highly coupled and * *Network Topology:* * `Ecosystem Role:` Unknown | `Dependency Blast Radius (PageRank):` 0.0 * `Choke Point (Betweenness):` 0.0 | `Ripple Effect (Closeness):` 0.0 - * `Imports (Out-Degree: 0):` json, typing, pathlib, re, logging, os + * `Imports (Out-Degree: 0):` re, json, pathlib, logging, os, typing * `Imported By (In-Degree: 0):` None (Orphan / Entrypoint) ### `tests/core_engine/test_galaxyscope.py` (PYTHON | Tier 2 | AI Safe: 0.0%) @@ -535,7 +535,7 @@ These files pull in the most external dependencies. They are highly coupled and * *Network Topology:* * `Ecosystem Role:` Unknown | `Dependency Blast Radius (PageRank):` 0.0 * `Choke Point (Betweenness):` 0.0 | `Ripple Effect (Closeness):` 0.0 - * `Imports (Out-Degree: 0):` name, gitgalaxy.core.aperture, re, or, subprocess, unittest, gitgalaxy.standards.analysis_lens, tempfile... + * `Imports (Out-Degree: 0):` concurrent.futures, gitgalaxy.standards, passes, or, logging, unittest, tempfile, sys... * `Imported By (In-Degree: 0):` None (Orphan / Entrypoint) ### `tests/extraction/languages/test_java.py` (PYTHON | Tier 1.5 | AI Safe: 0.0%) @@ -550,7 +550,7 @@ These files pull in the most external dependencies. They are highly coupled and * *Network Topology:* * `Ecosystem Role:` Unknown | `Dependency Blast Radius (PageRank):` 0.0 * `Choke Point (Betweenness):` 0.0 | `Ripple Effect (Closeness):` 0.0 - * `Imports (Out-Degree: 0):` java.util.List, _extraction_harness, sys, only, pathlib, typing, gitgalaxy.standards.language_standards, pytest... + * `Imports (Out-Degree: 0):` sys, static, com.example.MyClass, pathlib, java.util., ..., _extraction_harness, gitgalaxy.standards.language_standards... * `Imported By (In-Degree: 0):` None (Orphan / Entrypoint) ### `tests/extraction/languages/test_scheme.py` (PYTHON | Tier 1.5 | AI Safe: 0.0%) @@ -565,7 +565,7 @@ These files pull in the most external dependencies. They are highly coupled and * *Network Topology:* * `Ecosystem Role:` Unknown | `Dependency Blast Radius (PageRank):` 0.0 * `Choke Point (Betweenness):` 0.0 | `Ripple Effect (Closeness):` 0.0 - * `Imports (Out-Degree: 0):` _extraction_harness, sys, pathlib, gitgalaxy.standards.language_standards, pytest + * `Imports (Out-Degree: 0):` sys, pathlib, pytest, gitgalaxy.standards.language_standards, _extraction_harness * `Imported By (In-Degree: 0):` None (Orphan / Entrypoint) ### `gitgalaxy/core/prism.py` (PYTHON | Tier 1.5 | AI Safe: 0.0%) @@ -591,7 +591,7 @@ These files pull in the most external dependencies. They are highly coupled and * *Network Topology:* * `Ecosystem Role:` Pure Producer (Foundation) | `Dependency Blast Radius (PageRank):` 10.614 * `Choke Point (Betweenness):` 0.0 | `Ripple Effect (Closeness):` 0.030978 - * `Imports (Out-Degree: 0):` typing, re, gitgalaxy.standards.language_standards, logging + * `Imports (Out-Degree: 0):` re, gitgalaxy.standards.language_standards, typing, logging * `Imported By (In-Degree: 8):` (Excluded from Brief to save tokens) ### `gitgalaxy/metrics/signal_processor.py` (PYTHON | Tier 1.5 | AI Safe: 0.0%) @@ -617,7 +617,7 @@ These files pull in the most external dependencies. They are highly coupled and * *Network Topology:* * `Ecosystem Role:` Pure Producer (Foundation) | `Dependency Blast Radius (PageRank):` 7.61 * `Choke Point (Betweenness):` 0.0 | `Ripple Effect (Closeness):` 0.024194 - * `Imports (Out-Degree: 0):` statistics, typing, re, gitgalaxy.standards, math, logging, os + * `Imports (Out-Degree: 0):` re, gitgalaxy.standards, logging, statistics, os, typing, math * `Imported By (In-Degree: 6):` (Excluded from Brief to save tokens) ### `gitgalaxy/standards/language_lens.py` (PYTHON | Tier 1.5 | AI Safe: 0.0%) @@ -639,15 +639,15 @@ These files pull in the most external dependencies. They are highly coupled and * *Network Topology:* * `Ecosystem Role:` Unknown | `Dependency Blast Radius (PageRank):` 0.0 * `Choke Point (Betweenness):` 0.0 | `Ripple Effect (Closeness):` 0.0 - * `Imports (Out-Degree: 0):` gitgalaxy.standards.gitgalaxy_config, contextlib, typing, re, pathlib, gitgalaxy.standards.language_standards, math, logging... + * `Imports (Out-Degree: 0):` re, contextlib, time, gitgalaxy.standards.gitgalaxy_config, pathlib, logging, gitgalaxy.standards.language_standards, typing... * `Imported By (In-Degree: 0):` None (Orphan / Entrypoint) ### `gitgalaxy/core/detector.py` (PYTHON | Tier 1.5 | AI Safe: 0.0%) -- **Global Archetype:** `file_cluster_8` (Drift: 12.574 IQR) -- **Local Micro-Species:** `Cluster 1: Declarative Glue & Initialization` (Drift: 4.306 IQR) -- **Top Global Matches:** file_cluster_8: 12.574, file_cluster_16: 12.794, file_cluster_13: 12.835 -- **Magnitude:** 326.8 | **LOC:** 5197 | **CtrlFlow:** 75.5% | **Authorship Centralization:** 90.9% -- **Risk Profile:** Cognitive Load (17.5994%), Tech Debt (18.2708%) +- **Global Archetype:** `file_cluster_8` (Drift: 12.576 IQR) +- **Local Micro-Species:** `Cluster 1: Declarative Glue & Initialization` (Drift: 4.311 IQR) +- **Top Global Matches:** file_cluster_8: 12.576, file_cluster_16: 12.796, file_cluster_13: 12.837 +- **Magnitude:** 326.82 | **LOC:** 5206 | **CtrlFlow:** 75.5% | **Authorship Centralization:** 91.0% +- **Risk Profile:** Cognitive Load (17.5933%), Tech Debt (19.1267%) **Top Internal Functions/Classes:** * `_classify_function` (Impact: 46.8) * `_resolve_class_start_match` (Impact: 31.8) @@ -660,13 +660,13 @@ These files pull in the most external dependencies. They are highly coupled and * *Sec High Risk Execution:* 1 instances **Structural Signatures (Net Mitigated Signals):** * *Structure:* `branch: 967`, `structural_boundaries: 314`, `args: 43`, `func_start: 42`, `class_start: 6` -* *Risk/State:* `safety_bypasses: 63`, `state_mutation: 161`, `dead_code: 30`, `planned_debt: 1`, `fragile_debt: 17` +* *Risk/State:* `safety_bypasses: 63`, `state_mutation: 161`, `dead_code: 30`, `planned_debt: 1`, `fragile_debt: 18` * *Architecture:* `api: 15`, `concurrency: 1`, `import: 14` * *Defense:* `safety: 40`, `doc: 109`, `test: 2`, `immutability_locks: 7` * *Network Topology:* * `Ecosystem Role:` Pure Producer (Foundation) | `Dependency Blast Radius (PageRank):` 14.261 * `Choke Point (Betweenness):` 0.000327 | `Ripple Effect (Closeness):` 0.051792 - * `Imports (Out-Degree: 2):` collections, hashlib, typing, re, tiktoken, gitgalaxy.standards.language_standards, math, gitgalaxy.core.spatial_correlation... + * `Imports (Out-Degree: 2):` re, time, bisect, gitgalaxy.standards.analysis_lens, collections, logging, gitgalaxy.core.spatial_correlation, tiktoken... * `Imported By (In-Degree: 14):` (Excluded from Brief to save tokens) ### `tests/extraction/languages/test_abap.py` (PYTHON | Tier 1.5 | AI Safe: 0.0%) @@ -681,7 +681,7 @@ These files pull in the most external dependencies. They are highly coupled and * *Network Topology:* * `Ecosystem Role:` Unknown | `Dependency Blast Radius (PageRank):` 0.0 * `Choke Point (Betweenness):` 0.0 | `Ripple Effect (Closeness):` 0.0 - * `Imports (Out-Degree: 0):` _extraction_harness, sys, pathlib, gitgalaxy.standards.language_standards, pytest + * `Imports (Out-Degree: 0):` sys, pathlib, pytest, gitgalaxy.standards.language_standards, _extraction_harness * `Imported By (In-Degree: 0):` None (Orphan / Entrypoint) ### `tests/core_engine/test_signal_processor.py` (PYTHON | Tier 1.5 | AI Safe: 0.0%) @@ -703,7 +703,7 @@ These files pull in the most external dependencies. They are highly coupled and * *Network Topology:* * `Ecosystem Role:` Unknown | `Dependency Blast Radius (PageRank):` 0.0 * `Choke Point (Betweenness):` 0.0 | `Ripple Effect (Closeness):` 0.0 - * `Imports (Out-Degree: 0):` json, identity, logging, os, pytest, gitgalaxy.recorders.sarif_recorder, gitgalaxy.metrics.signal_processor, tempfile... + * `Imports (Out-Degree: 0):` json, logging, tempfile, os, which, gitgalaxy.recorders.sarif_recorder, pytest, gitgalaxy.metrics.signal_processor... * `Imported By (In-Degree: 0):` None (Orphan / Entrypoint) ### `gitgalaxy/core/network_risk_sensor.py` (PYTHON | Tier 1.5 | AI Safe: 0.0%) @@ -724,7 +724,7 @@ These files pull in the most external dependencies. They are highly coupled and * *Network Topology:* * `Ecosystem Role:` Transceiver (Middle-Tier) | `Dependency Blast Radius (PageRank):` 4.748 * `Choke Point (Betweenness):` 1.7e-05 | `Ripple Effect (Closeness):` 0.014337 - * `Imports (Out-Degree: 1):` networkx.algorithms, collections, typing, pathlib, token, math, logging, gitgalaxy.standards.analysis_lens... + * `Imports (Out-Degree: 1):` gitgalaxy.standards.analysis_lens, pathlib, collections, logging, token, warnings, networkx.algorithms, typing... * `Imported By (In-Degree: 3):` (Excluded from Brief to save tokens) ### `gitgalaxy/metrics/statistical_auditor.py` (PYTHON | Tier 1.5 | AI Safe: 0.0%) @@ -750,7 +750,7 @@ These files pull in the most external dependencies. They are highly coupled and * *Network Topology:* * `Ecosystem Role:` Pure Producer (Foundation) | `Dependency Blast Radius (PageRank):` 4.272 * `Choke Point (Betweenness):` 0.0 | `Ripple Effect (Closeness):` 0.011201 - * `Imports (Out-Degree: 0):` statistics, typing, math, logging, os + * `Imports (Out-Degree: 0):` logging, os, statistics, typing, math * `Imported By (In-Degree: 2):` (Excluded from Brief to save tokens) ### `gitgalaxy/security/security_auditor.py` (PYTHON | Tier 2 | AI Safe: 0.0%) @@ -771,7 +771,7 @@ These files pull in the most external dependencies. They are highly coupled and * *Network Topology:* * `Ecosystem Role:` Unknown | `Dependency Blast Radius (PageRank):` 0.0 * `Choke Point (Betweenness):` 0.0 | `Ripple Effect (Closeness):` 0.0 - * `Imports (Out-Degree: 0):` collections, typing, pathlib, logging, gitgalaxy.standards.analysis_lens, pandas, xgboost, numpy... + * `Imports (Out-Degree: 0):` numpy, gitgalaxy.standards.analysis_lens, pathlib, collections, logging, xgboost, pandas, typing... * `Imported By (In-Degree: 0):` None (Orphan / Entrypoint) ### `tests/extraction/languages/test_livecode_strict.py` (PYTHON | Tier 2 | AI Safe: 0.0%) @@ -794,7 +794,7 @@ These files pull in the most external dependencies. They are highly coupled and * *Network Topology:* * `Ecosystem Role:` Unknown | `Dependency Blast Radius (PageRank):` 0.0 * `Choke Point (Betweenness):` 0.0 | `Ripple Effect (Closeness):` 0.0 - * `Imports (Out-Degree: 0):` sys, re, pathlib, gitgalaxy.standards.language_standards, shapes, pytest, _strict_harness, multiprocessing + * `Imports (Out-Degree: 0):` re, sys, pathlib, gitgalaxy.standards.language_standards, pytest, multiprocessing, _strict_harness, shapes * `Imported By (In-Degree: 0):` None (Orphan / Entrypoint) ## 13. ARCHITECTURAL DRIFT ANOMALIES & ANTI-PATTERNS @@ -819,7 +819,7 @@ These files pull in the most external dependencies. They are highly coupled and * Top Architectural Signatures: indent_spaces: 133, branch: 32, generics: 27, structural_boundaries: 19 ### Mixed-Responsibility Refactoring Targets for: file_cluster_8 -- `gitgalaxy/recorders/gpu_recorder.py` (PYTHON) | Magnitude: 128.04 | Delta: **0.076 IQR** | Secondary Pull: `file_cluster_16` +- `gitgalaxy/recorders/gpu_recorder.py` (PYTHON) | Magnitude: 128.04 | Delta: **0.075 IQR** | Secondary Pull: `file_cluster_16` * Top Architectural Signatures: indent_spaces: 269, state_mutation: 97, branch: 41, structural_boundaries: 22 - `gitgalaxy/core/state_rehydrator.py` (PYTHON) | Magnitude: 13.9 | Delta: **0.097 IQR** | Secondary Pull: `file_cluster_13` * Top Architectural Signatures: indent_spaces: 54, structural_boundaries: 14, branch: 8, doc: 8 @@ -840,7 +840,7 @@ These are massive, load-bearing files written almost entirely by a single develo - `gitgalaxy/recorders/llm_recorder.py` -> **Joe Esquibel** (87.5% isolated ownership) | Magnitude: 753.72 - `gitgalaxy/core/prism.py` -> **Joe Esquibel** (92.3% isolated ownership) | Magnitude: 442.74 - `gitgalaxy/metrics/signal_processor.py` -> **Joe Esquibel** (81.8% isolated ownership) | Magnitude: 435.02 -- `gitgalaxy/core/detector.py` -> **Joe Esquibel** (90.9% isolated ownership) | Magnitude: 326.8 +- `gitgalaxy/core/detector.py` -> **Joe Esquibel** (91.0% isolated ownership) | Magnitude: 326.82 ## 13.8 SYSTEMIC NETWORK BOTTLENECKS (N-Dimensional Topology) > **AI CONTEXT:** These metrics cross-multiply Network Graph Theory against Risk Exposure to identify the exact mechanisms of runtime failure. @@ -849,7 +849,7 @@ These are massive, load-bearing files written almost entirely by a single develo These files act as structural bridges between components, but possess highly volatile, mutating state. They cause unpredictable side-effects for all downstream consumers. - `gitgalaxy/galaxyscope.py` -> **Severity: 0.085** (Bridge: 0.0011 * Flux: 79.1636%) -- `gitgalaxy/core/detector.py` -> **Severity: 0.017** (Bridge: 0.0003 * Flux: 52.5441%) +- `gitgalaxy/core/detector.py` -> **Severity: 0.017** (Bridge: 0.0003 * Flux: 52.5217%) - `gitgalaxy/cobol_refractor_controller.py` -> **Severity: 0.011** (Bridge: 0.0001 * Flux: 97.3782%) - `gitgalaxy/recorders/sbom_recorder.py` -> **Severity: 0.006** (Bridge: 0.0001 * Flux: 96.9481%) - `gitgalaxy/security/security_auditor.py` -> **Severity: 0.003** (Bridge: 0.0 * Flux: 94.7128%) @@ -857,7 +857,7 @@ These files act as structural bridges between components, but possess highly vol ### 🃏 House of Cards (Closeness * Error Risk) These files are deeply embedded (1 or 2 hops from the entire codebase) but possess high error exposure. A runtime exception here will cascade instantly across the application. -- `gitgalaxy/core/detector.py` -> **Severity: 3.1** (Embedded: 0.0518 * Error Risk: 59.8473%) +- `gitgalaxy/core/detector.py` -> **Severity: 3.099** (Embedded: 0.0518 * Error Risk: 59.8437%) - `gitgalaxy/core/prism.py` -> **Severity: 2.545** (Embedded: 0.031 * Error Risk: 82.165%) - `gitgalaxy/core/spatial_correlation.py` -> **Severity: 2.438** (Embedded: 0.0416 * Error Risk: 58.6062%) - `gitgalaxy/standards/gitgalaxy_config.py` -> **Severity: 2.232** (Embedded: 0.0399 * Error Risk: 55.9468%) @@ -869,7 +869,7 @@ These are 'Core Architecture Nodes' that the entire ecosystem relies upon, but t - `gitgalaxy/standards/analysis_lens.py` -> **Severity: 410.907** (Blast Radius: 23.98 * Doc Risk: 17.1354%) - `gitgalaxy/standards/config_resolver.py` -> **Severity: 370.839** (Blast Radius: 20.74 * Doc Risk: 17.8804%) - `gitgalaxy/standards/gitgalaxy_config.py` -> **Severity: 291.647** (Blast Radius: 16.311 * Doc Risk: 17.8804%) -- `gitgalaxy/core/detector.py` -> **Severity: 247.259** (Blast Radius: 14.261 * Doc Risk: 17.3381%) +- `gitgalaxy/core/detector.py` -> **Severity: 247.343** (Blast Radius: 14.261 * Doc Risk: 17.344%) - `scripts/update_golden_masters.sh` -> **Severity: 199.529** (Blast Radius: 2.239 * Doc Risk: 89.1154%) ## AI SYSTEM INSTRUCTIONS (OUTPUT FORMAT)