openai / kubernetes
Components

An overview of source code logical components.

Intro

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.
Logical Decompositions Overview

Analyzed system has 1 logical decomposition:

  • primary (8 components)

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 8 components.
  • 7,208 files, 729,974 LOC (55.8% vs. main code).
  • "staging" is biggest, containing 59.08% of LOC.
  • ".github" is smallest, containing 0.03% of LOC.


staging431238 LOC (32%) 4,731 files
pkg236624 LOC (18%) 1,922 files
cmd38144 LOC (2%) 332 files
cluster13641 LOC (1%) 125 files
plugin7772 LOC (<1%) 75 files
hack1969 LOC (<1%) 13 files
build397 LOC (<1%) 6 files
.github189 LOC (<1%) 4 files
Component Commits
Components ordered by number of commits
Total Commits per Component
All commits, some commits may include files from multiple components.
pkg27138 commits (20%)
staging18249 commits (13%)
cmd10454 commits (7%)
cluster1631 commits (1%)
plugin1538 commits (1%)
build846 commits (<1%)
hack368 commits (<1%)
.github4 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 2025 2024 2023 2022 2021 2020 2019 2018 2017 2016 2015 2014
pkg
101
2295
2219
2298
1931
2256
2072
2919
2583
3388
2638
1970
468
staging
95
2082
1855
1935
1982
2242
1940
2288
1685
2115
30
cmd
13
423
621
641
611
761
683
1305
1545
1713
1041
965
132
hack
14
123
49
33
11
6
9
31
17
10
33
32
build
5
118
116
132
104
170
139
62
plugin
1
82
92
58
82
61
97
154
236
392
158
123
2
cluster
46
72
70
73
176
222
331
283
321
35
2
.github
2
2


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["pkg"]
    n1["staging"]
    n2["hack"]
    n3["cmd"]
    n4["build"]
    n5["plugin"]
    n0 ---|"50"| n0
    n1 ---|"44"| n1
    n1 ---|"30"| n0
    n2 ---|"14"| n2
    n3 ---|"7"| n3
    n1 ---|"4"| n2
    n1 ---|"2"| n4
    n1 ---|"2"| n3
    n0 ---|"2"| n3
    n2 ---|"1"| n0
    n5 ---|"1"| n0
    n1 ---|"1"| n5
    n5 ---|"1"| 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:#a0a0a0DB,stroke-width:8px
    linkStyle 2 stroke:#00688bB7,stroke-width:6px
    linkStyle 3 stroke:#a0a0a070,stroke-width:2px
    linkStyle 4 stroke:#a0a0a05E,stroke-width:1px
    linkStyle 5 stroke:#00688b4C,stroke-width:1px
    linkStyle 6 stroke:#00688b4C,stroke-width:1px
    linkStyle 7 stroke:#00688b4C,stroke-width:1px
    linkStyle 8 stroke:#00688b4C,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



2026-06-24 10:55