anthropics / buffa
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 (16 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 16 components.
  • 192 files, 56,137 LOC (100.0% vs. main code).
  • "buffa" is biggest, containing 32.6% of LOC.
  • "ROOT" is smallest, containing 0.03% of LOC.


buffa18302 LOC (32%) 28 files
buffa-codegen17758 LOC (31%) 20 files
buffa-descriptor6468 LOC (11%) 13 files
buffa-types4023 LOC (7%) 19 files
benchmarks3150 LOC (5%) 36 files
buffa-test2937 LOC (5%) 52 files
conformance1085 LOC (1%) 3 files
buffa-build796 LOC (1%) 1 file
buffa-yaml461 LOC (<1%) 4 files
protoc-gen-buffa417 LOC (<1%) 1 file
fuzz329 LOC (<1%) 8 files
protoc-gen-buffa-packaging137 LOC (<1%) 1 file
stress106 LOC (<1%) 3 files
buffa-smolstr81 LOC (<1%) 1 file
scripts68 LOC (<1%) 1 file
ROOT19 LOC (<1%) 1 file
Component Commits
Components ordered by number of commits
Total Commits per Component
All commits, some commits may include files from multiple components.
buffa-codegen86 commits (53%)
buffa59 commits (36%)
buffa-build34 commits (21%)
buffa-test32 commits (20%)
buffa-descriptor20 commits (12%)
buffa-types16 commits (10%)
protoc-gen-buffa16 commits (10%)
benchmarks15 commits (9%)
conformance10 commits (6%)
protoc-gen-buffa-packaging4 commits (2%)
ROOT2 commits (1%)
buffa-smolstr1 commits (<1%)
stress1 commits (<1%)
buffa-yaml1 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
buffa-codegen
86
buffa
59
buffa-build
34
buffa-test
32
buffa-descriptor
20
buffa-types
16
protoc-gen-buffa
16
benchmarks
15
conformance
10
protoc-gen-buffa-packaging
4
ROOT
2
stress
1
buffa-smolstr
1
buffa-yaml
1


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["buffa-codegen"]
    n1["buffa"]
    n2["buffa-test"]
    n3["buffa-build"]
    n4["buffa-types"]
    n5["buffa-descriptor"]
    n6["benchmarks"]
    n7["protoc-gen-buffa"]
    n8["conformance"]
    n9["protoc-gen-buffa-packaging"]
    n10["buffa-smolstr"]
    n11["buffa-yaml"]
    n12["stress"]
    n0 ---|"59"| n0
    n1 ---|"42"| n0
    n2 ---|"32"| n0
    n3 ---|"31"| n0
    n1 ---|"30"| n1
    n2 ---|"26"| n2
    n3 ---|"22"| n2
    n2 ---|"16"| n1
    n3 ---|"13"| n1
    n4 ---|"13"| n0
    n0 ---|"12"| n5
    n4 ---|"12"| n1
    n5 ---|"12"| n5
    n6 ---|"12"| n6
    n7 ---|"11"| n0
    n7 ---|"9"| n3
    n4 ---|"9"| n4
    n8 ---|"8"| n0
    n5 ---|"8"| n1
    n7 ---|"7"| n2
    n8 ---|"7"| n3
    n2 ---|"7"| n5
    n8 ---|"7"| n2
    n3 ---|"7"| n5
    n4 ---|"7"| n2
    n8 ---|"6"| n1
    n6 ---|"6"| n0
    n4 ---|"6"| n3
    n8 ---|"5"| n8
    n4 ---|"5"| n8
    n1 ---|"4"| n6
    n8 ---|"4"| n5
    n2 ---|"4"| n6
    n6 ---|"3"| n8
    n3 ---|"3"| n6
    n4 ---|"3"| n5
    n9 ---|"2"| n0
    n9 ---|"2"| n7
    n5 ---|"2"| n6
    n4 ---|"2"| n9
    n9 ---|"2"| n1
    n8 ---|"2"| n7
    n9 ---|"2"| n3
    n4 ---|"2"| n6
    n10 ---|"1"| n1
    n11 ---|"1"| n11
    n12 ---|"1"| n4
    n12 ---|"1"| n3
    n9 ---|"1"| n8
    n12 ---|"1"| n2
    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:#00688bC9,stroke-width:7px
    linkStyle 2 stroke:#00688bA5,stroke-width:5px
    linkStyle 3 stroke:#00688bA5,stroke-width:5px
    linkStyle 4 stroke:#a0a0a0A5,stroke-width:5px
    linkStyle 5 stroke:#a0a0a093,stroke-width:4px
    linkStyle 6 stroke:#00688b82,stroke-width:3px
    linkStyle 7 stroke:#00688b70,stroke-width:2px
    linkStyle 8 stroke:#00688b70,stroke-width:2px
    linkStyle 9 stroke:#00688b70,stroke-width:2px
    linkStyle 10 stroke:#00688b70,stroke-width:2px
    linkStyle 11 stroke:#00688b70,stroke-width:2px
    linkStyle 12 stroke:#a0a0a070,stroke-width:2px
    linkStyle 13 stroke:#a0a0a070,stroke-width:2px
    linkStyle 14 stroke:#00688b5E,stroke-width:1px
    linkStyle 15 stroke:#00688b5E,stroke-width:1px
    linkStyle 16 stroke:#a0a0a05E,stroke-width:1px
    linkStyle 17 stroke:#00688b5E,stroke-width:1px
    linkStyle 18 stroke:#00688b5E,stroke-width:1px
    linkStyle 19 stroke:#00688b5E,stroke-width:1px
    linkStyle 20 stroke:#00688b5E,stroke-width:1px
    linkStyle 21 stroke:#00688b5E,stroke-width:1px
    linkStyle 22 stroke:#00688b5E,stroke-width:1px
    linkStyle 23 stroke:#00688b5E,stroke-width:1px
    linkStyle 24 stroke:#00688b5E,stroke-width:1px
    linkStyle 25 stroke:#00688b5E,stroke-width:1px
    linkStyle 26 stroke:#00688b5E,stroke-width:1px
    linkStyle 27 stroke:#00688b5E,stroke-width:1px
    linkStyle 28 stroke:#a0a0a04C,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:#00688b4C,stroke-width:1px
    linkStyle 34 stroke:#00688b4C,stroke-width:1px
    linkStyle 35 stroke:#00688b4C,stroke-width:1px
    linkStyle 36 stroke:#00688b4C,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:#00688b4C,stroke-width:1px
    linkStyle 44 stroke:#00688b4C,stroke-width:1px
    linkStyle 45 stroke:#a0a0a04C,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



2026-06-24 10:48