Logical Decomposition #1: PRIMARY

The decompositions is based on the folder structure at level 1 (relative to the source code root).

Bubble Chart | Tree Map
Component Sizes (Lines of Code)
The "primary" logical decomposition has 11 components.

packages326301 LOC (55%) 3,042 files
scripts34042 LOC (5%) 167 files
apps19055 LOC (3%) 220 files
snapshots11395 LOC (1%) 481 files
.agents9080 LOC (1%) 1,186 files
benchmarks3778 LOC (<1%) 33 files
website1766 LOC (<1%) 13 files
.github1757 LOC (<1%) 13 files
native1433 LOC (<1%) 23 files
python1151 LOC (<1%) 13 files
ROOT112 LOC (<1%) 6 files

scope details...
  • 5,197 files, 409,870 LOC (69.7% vs. main code).
Component Commits
Components ordered by number of commits
Total Commits per Component
All commits, some commits may include files from multiple components.
packages11249 commits (54%)
scripts5702 commits (27%)
.agents4689 commits (22%)
apps2254 commits (11%)
ROOT1160 commits (5%)
python1000 commits (4%)
snapshots965 commits (4%)
website701 commits (3%)
.github462 commits (2%)
benchmarks314 commits (1%)
native283 commits (1%)
Yearly File Updates Trend per Components
The number of file changes in commits
animated commit history: all time cumulative | 12 months window
2026
packages
11249
scripts
5702
.agents
4689
apps
2254
ROOT
1160
python
1000
snapshots
965
website
701
.github
462
benchmarks
314
native
283


Dependencies between components in same commits (past 180 days)
The number on the lines shows the number of shared commits.
See detailed temporal dependencies report...

flowchart TB
    n0["packages"]
    n1["scripts"]
    n2[".agents"]
    n3["apps"]
    n4["ROOT"]
    n5["snapshots"]
    n6["python"]
    n7["website"]
    n8[".github"]
    n9["benchmarks"]
    n10["native"]
    n0 ---|"8227"| n0
    n0 ---|"3462"| n1
    n0 ---|"2949"| n2
    n1 ---|"2740"| n1
    n1 ---|"2014"| n2
    n2 ---|"1488"| n2
    n3 ---|"1112"| n0
    n3 ---|"942"| n3
    n2 ---|"861"| n3
    n3 ---|"818"| n1
    n4 ---|"604"| n1
    n5 ---|"496"| n0
    n4 ---|"480"| n0
    n1 ---|"423"| n6
    n6 ---|"398"| n0
    n5 ---|"382"| n5
    n5 ---|"374"| n2
    n6 ---|"350"| n6
    n4 ---|"323"| n2
    n7 ---|"319"| n1
    n1 ---|"300"| n5
    n7 ---|"295"| n0
    n6 ---|"265"| n2
    n7 ---|"247"| n2
    n3 ---|"226"| n4
    n6 ---|"142"| n3
    n8 ---|"133"| n0
    n8 ---|"128"| n2
    n5 ---|"123"| n3
    n8 ---|"113"| n1
    n4 ---|"103"| n7
    n9 ---|"103"| n2
    n3 ---|"101"| n7
    n4 ---|"99"| n4
    n6 ---|"90"| n4
    n7 ---|"83"| n7
    n9 ---|"77"| n9
    n9 ---|"74"| n0
    n6 ---|"53"| n7
    n9 ---|"42"| n1
    n4 ---|"41"| n8
    n10 ---|"38"| n0
    n8 ---|"38"| n3
    n8 ---|"38"| n8
    n10 ---|"37"| n1
    n6 ---|"30"| n5
    n10 ---|"28"| n2
    n5 ---|"26"| n8
    n5 ---|"24"| n9
    n10 ---|"22"| n3
    classDef default fill:#00b2ee,stroke:#ffffff,color:#000000;
    classDef highlighted fill:#00b2ee,stroke:#ffffff,color:#000000;
    linkStyle 0 stroke:#a0a0a0FF,stroke-width:10px
    linkStyle 1 stroke:#00688b93,stroke-width:4px
    linkStyle 2 stroke:#00688b82,stroke-width:3px
    linkStyle 3 stroke:#a0a0a082,stroke-width:3px
    linkStyle 4 stroke:#00688b70,stroke-width:2px
    linkStyle 5 stroke:#a0a0a05E,stroke-width:1px
    linkStyle 6 stroke:#00688b5E,stroke-width:1px
    linkStyle 7 stroke:#a0a0a05E,stroke-width:1px
    linkStyle 8 stroke:#00688b5E,stroke-width:1px
    linkStyle 9 stroke:#00688b4C,stroke-width:1px
    linkStyle 10 stroke:#00688b4C,stroke-width:1px
    linkStyle 11 stroke:#00688b4C,stroke-width:1px
    linkStyle 12 stroke:#00688b4C,stroke-width:1px
    linkStyle 13 stroke:#00688b4C,stroke-width:1px
    linkStyle 14 stroke:#00688b4C,stroke-width:1px
    linkStyle 15 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 16 stroke:#00688b4C,stroke-width:1px
    linkStyle 17 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 18 stroke:#00688b4C,stroke-width:1px
    linkStyle 19 stroke:#00688b4C,stroke-width:1px
    linkStyle 20 stroke:#00688b4C,stroke-width:1px
    linkStyle 21 stroke:#00688b4C,stroke-width:1px
    linkStyle 22 stroke:#00688b4C,stroke-width:1px
    linkStyle 23 stroke:#00688b4C,stroke-width:1px
    linkStyle 24 stroke:#00688b4C,stroke-width:1px
    linkStyle 25 stroke:#00688b4C,stroke-width:1px
    linkStyle 26 stroke:#00688b4C,stroke-width:1px
    linkStyle 27 stroke:#00688b4C,stroke-width:1px
    linkStyle 28 stroke:#00688b4C,stroke-width:1px
    linkStyle 29 stroke:#00688b4C,stroke-width:1px
    linkStyle 30 stroke:#00688b4C,stroke-width:1px
    linkStyle 31 stroke:#00688b4C,stroke-width:1px
    linkStyle 32 stroke:#00688b4C,stroke-width:1px
    linkStyle 33 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 34 stroke:#00688b4C,stroke-width:1px
    linkStyle 35 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 36 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 37 stroke:#00688b4C,stroke-width:1px
    linkStyle 38 stroke:#00688b4C,stroke-width:1px
    linkStyle 39 stroke:#00688b4C,stroke-width:1px
    linkStyle 40 stroke:#00688b4C,stroke-width:1px
    linkStyle 41 stroke:#00688b4C,stroke-width:1px
    linkStyle 42 stroke:#00688b4C,stroke-width:1px
    linkStyle 43 stroke:#a0a0a04C,stroke-width:1px
    linkStyle 44 stroke:#00688b4C,stroke-width:1px
    linkStyle 45 stroke:#00688b4C,stroke-width:1px
    linkStyle 46 stroke:#00688b4C,stroke-width:1px
    linkStyle 47 stroke:#00688b4C,stroke-width:1px
    linkStyle 48 stroke:#00688b4C,stroke-width:1px
    linkStyle 49 stroke:#00688b4C,stroke-width:1px

About This Analysis

Logical decomposition is a representation of the organization of the main source code, where every and each file is put in exactly one logical component.

  • A software system can have one or more logical decompositions.
  • A logical decomposition can be defined in two ways in Sokrates.
  • First approach is based on the folders structure. Components are mapped to folders at defined folder depth relative to the source code root.
  • Second approach is based on explicit definition of each component. In such explicit definitions, components are explicitly named and their files are selected based on explicitly defined path and content filters.
  • A logical decomposition is considered invalid if a file is selected into two or more components. This constraint is introduced in order to facilitate measuring of dependencies among components.
  • Files not assigned to any component are put into a special "Unclassified" component.


2026-10-06 14:29