arbiter-score 0.6.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. arbiter_score-0.6.0/CONTRIBUTING.md +47 -0
  2. arbiter_score-0.6.0/LICENSE +190 -0
  3. arbiter_score-0.6.0/MANIFEST.in +7 -0
  4. arbiter_score-0.6.0/PKG-INFO +161 -0
  5. arbiter_score-0.6.0/README.md +123 -0
  6. arbiter_score-0.6.0/ROADMAP.md +94 -0
  7. arbiter_score-0.6.0/benchmarks/reference_repos.json +119 -0
  8. arbiter_score-0.6.0/examples/ci/README.md +67 -0
  9. arbiter_score-0.6.0/examples/ci/quality-gate.yml +43 -0
  10. arbiter_score-0.6.0/pyproject.toml +46 -0
  11. arbiter_score-0.6.0/setup.cfg +4 -0
  12. arbiter_score-0.6.0/src/arbiter/__init__.py +3 -0
  13. arbiter_score-0.6.0/src/arbiter/__main__.py +2492 -0
  14. arbiter_score-0.6.0/src/arbiter/agent_registry.py +120 -0
  15. arbiter_score-0.6.0/src/arbiter/analyzers/__init__.py +5 -0
  16. arbiter_score-0.6.0/src/arbiter/analyzers/base.py +44 -0
  17. arbiter_score-0.6.0/src/arbiter/analyzers/complexity_analyzer.py +66 -0
  18. arbiter_score-0.6.0/src/arbiter/analyzers/dead_code_analyzer.py +59 -0
  19. arbiter_score-0.6.0/src/arbiter/analyzers/duplication_analyzer.py +119 -0
  20. arbiter_score-0.6.0/src/arbiter/analyzers/eslint_analyzer.py +71 -0
  21. arbiter_score-0.6.0/src/arbiter/analyzers/go_analyzer.py +66 -0
  22. arbiter_score-0.6.0/src/arbiter/analyzers/governance_analyzer.py +267 -0
  23. arbiter_score-0.6.0/src/arbiter/analyzers/ruff_analyzer.py +78 -0
  24. arbiter_score-0.6.0/src/arbiter/analyzers/rust_analyzer.py +89 -0
  25. arbiter_score-0.6.0/src/arbiter/analyzers/security_analyzer.py +64 -0
  26. arbiter_score-0.6.0/src/arbiter/analyzers/semgrep_analyzer.py +116 -0
  27. arbiter_score-0.6.0/src/arbiter/analyzers/shell_analyzer.py +72 -0
  28. arbiter_score-0.6.0/src/arbiter/api.py +173 -0
  29. arbiter_score-0.6.0/src/arbiter/artifact_scorer.py +234 -0
  30. arbiter_score-0.6.0/src/arbiter/audit_trail.py +164 -0
  31. arbiter_score-0.6.0/src/arbiter/badge.py +63 -0
  32. arbiter_score-0.6.0/src/arbiter/benchmark.py +38 -0
  33. arbiter_score-0.6.0/src/arbiter/bus_bridge.py +106 -0
  34. arbiter_score-0.6.0/src/arbiter/certify.py +158 -0
  35. arbiter_score-0.6.0/src/arbiter/compliance_map.py +265 -0
  36. arbiter_score-0.6.0/src/arbiter/config.py +204 -0
  37. arbiter_score-0.6.0/src/arbiter/contribution_learnings.py +150 -0
  38. arbiter_score-0.6.0/src/arbiter/contribution_tracker.py +129 -0
  39. arbiter_score-0.6.0/src/arbiter/contributor.py +305 -0
  40. arbiter_score-0.6.0/src/arbiter/dep_score.py +189 -0
  41. arbiter_score-0.6.0/src/arbiter/diff_analyzer.py +174 -0
  42. arbiter_score-0.6.0/src/arbiter/explain.py +249 -0
  43. arbiter_score-0.6.0/src/arbiter/git_historian.py +209 -0
  44. arbiter_score-0.6.0/src/arbiter/git_vitality.py +144 -0
  45. arbiter_score-0.6.0/src/arbiter/github_client.py +137 -0
  46. arbiter_score-0.6.0/src/arbiter/governance_quality.py +183 -0
  47. arbiter_score-0.6.0/src/arbiter/governance_score.py +242 -0
  48. arbiter_score-0.6.0/src/arbiter/improvement_detector.py +189 -0
  49. arbiter_score-0.6.0/src/arbiter/lang_detect.py +118 -0
  50. arbiter_score-0.6.0/src/arbiter/leaderboard_html.py +221 -0
  51. arbiter_score-0.6.0/src/arbiter/pr_checker.py +72 -0
  52. arbiter_score-0.6.0/src/arbiter/preflight.py +329 -0
  53. arbiter_score-0.6.0/src/arbiter/profiles.py +78 -0
  54. arbiter_score-0.6.0/src/arbiter/report.py +251 -0
  55. arbiter_score-0.6.0/src/arbiter/scorers/__init__.py +22 -0
  56. arbiter_score-0.6.0/src/arbiter/scorers/arcana_essay_scorer.py +339 -0
  57. arbiter_score-0.6.0/src/arbiter/scorers/bibliography_scorer.py +252 -0
  58. arbiter_score-0.6.0/src/arbiter/scorers/governance_receipt_scorer.py +348 -0
  59. arbiter_score-0.6.0/src/arbiter/scoring.py +233 -0
  60. arbiter_score-0.6.0/src/arbiter/store.py +419 -0
  61. arbiter_score-0.6.0/src/arbiter/suggest.py +151 -0
  62. arbiter_score-0.6.0/src/arbiter/team.py +178 -0
  63. arbiter_score-0.6.0/src/arbiter/webhooks.py +179 -0
  64. arbiter_score-0.6.0/src/arbiter_score.egg-info/PKG-INFO +161 -0
  65. arbiter_score-0.6.0/src/arbiter_score.egg-info/SOURCES.txt +115 -0
  66. arbiter_score-0.6.0/src/arbiter_score.egg-info/dependency_links.txt +1 -0
  67. arbiter_score-0.6.0/src/arbiter_score.egg-info/entry_points.txt +2 -0
  68. arbiter_score-0.6.0/src/arbiter_score.egg-info/requires.txt +16 -0
  69. arbiter_score-0.6.0/src/arbiter_score.egg-info/top_level.txt +1 -0
  70. arbiter_score-0.6.0/tests/test_agent_registry.py +72 -0
  71. arbiter_score-0.6.0/tests/test_analyzers.py +106 -0
  72. arbiter_score-0.6.0/tests/test_api.py +124 -0
  73. arbiter_score-0.6.0/tests/test_artifact_scorer.py +527 -0
  74. arbiter_score-0.6.0/tests/test_audit_trail.py +87 -0
  75. arbiter_score-0.6.0/tests/test_badge.py +57 -0
  76. arbiter_score-0.6.0/tests/test_benchmark.py +46 -0
  77. arbiter_score-0.6.0/tests/test_certify.py +85 -0
  78. arbiter_score-0.6.0/tests/test_ci_templates.py +128 -0
  79. arbiter_score-0.6.0/tests/test_cli.py +131 -0
  80. arbiter_score-0.6.0/tests/test_compare.py +166 -0
  81. arbiter_score-0.6.0/tests/test_compliance_map.py +280 -0
  82. arbiter_score-0.6.0/tests/test_config.py +220 -0
  83. arbiter_score-0.6.0/tests/test_contribution_learnings.py +89 -0
  84. arbiter_score-0.6.0/tests/test_contribution_tracker.py +73 -0
  85. arbiter_score-0.6.0/tests/test_contributor.py +285 -0
  86. arbiter_score-0.6.0/tests/test_dep_score.py +87 -0
  87. arbiter_score-0.6.0/tests/test_diff_analyzer.py +123 -0
  88. arbiter_score-0.6.0/tests/test_eslint_analyzer.py +161 -0
  89. arbiter_score-0.6.0/tests/test_explain.py +267 -0
  90. arbiter_score-0.6.0/tests/test_git_vitality.py +73 -0
  91. arbiter_score-0.6.0/tests/test_github_client.py +191 -0
  92. arbiter_score-0.6.0/tests/test_go_analyzer.py +154 -0
  93. arbiter_score-0.6.0/tests/test_governance_quality.py +76 -0
  94. arbiter_score-0.6.0/tests/test_governance_score.py +223 -0
  95. arbiter_score-0.6.0/tests/test_history.py +269 -0
  96. arbiter_score-0.6.0/tests/test_improvement_loop.py +253 -0
  97. arbiter_score-0.6.0/tests/test_lang_detect.py +80 -0
  98. arbiter_score-0.6.0/tests/test_leaderboard.py +292 -0
  99. arbiter_score-0.6.0/tests/test_leaderboard_html.py +121 -0
  100. arbiter_score-0.6.0/tests/test_new_analyzers.py +146 -0
  101. arbiter_score-0.6.0/tests/test_noise_threshold.py +59 -0
  102. arbiter_score-0.6.0/tests/test_polyglot_weights.py +112 -0
  103. arbiter_score-0.6.0/tests/test_pr_checker.py +226 -0
  104. arbiter_score-0.6.0/tests/test_preflight.py +226 -0
  105. arbiter_score-0.6.0/tests/test_profiles.py +245 -0
  106. arbiter_score-0.6.0/tests/test_report.py +91 -0
  107. arbiter_score-0.6.0/tests/test_rust_analyzer.py +129 -0
  108. arbiter_score-0.6.0/tests/test_score_artifact_cli.py +167 -0
  109. arbiter_score-0.6.0/tests/test_score_url.py +135 -0
  110. arbiter_score-0.6.0/tests/test_scoring.py +125 -0
  111. arbiter_score-0.6.0/tests/test_semgrep_analyzer.py +156 -0
  112. arbiter_score-0.6.0/tests/test_shell_analyzer.py +190 -0
  113. arbiter_score-0.6.0/tests/test_store.py +84 -0
  114. arbiter_score-0.6.0/tests/test_suggest.py +70 -0
  115. arbiter_score-0.6.0/tests/test_team.py +173 -0
  116. arbiter_score-0.6.0/tests/test_triage_classifier.py +101 -0
  117. arbiter_score-0.6.0/tests/test_webhooks.py +287 -0
@@ -0,0 +1,47 @@
1
+ # Contributing to Arbiter
2
+
3
+ Thanks for your interest in contributing! Here's how to get started.
4
+
5
+ ## Setup
6
+
7
+ ```bash
8
+ git clone https://github.com/hummbl-dev/arbiter.git
9
+ cd arbiter
10
+ python -m venv .venv && source .venv/bin/activate
11
+ pip install -e ".[test]"
12
+ PYTHONPATH=src python -m pytest tests/ -v
13
+ ```
14
+
15
+ ## Pull Requests
16
+
17
+ - Branch from `main`
18
+ - Keep PRs focused — one fix or feature per PR
19
+ - All tests must pass before merge
20
+ - Use [Conventional Commits](https://www.conventionalcommits.org/) for commit messages
21
+
22
+ ## Developer Certificate of Origin (DCO)
23
+
24
+ All contributions require a `Signed-off-by` line in each commit message, certifying that you have the right to submit the work under this project's license.
25
+
26
+ ```
27
+ feat: add new analyzer for shellcheck
28
+
29
+ Signed-off-by: Your Name <your.email@example.com>
30
+ ```
31
+
32
+ Add it automatically with `git commit -s`.
33
+
34
+ By signing off, you agree to the [Developer Certificate of Origin](https://developercertificate.org/):
35
+
36
+ > I certify that (a) this contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or (b) it is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications; or (c) it was provided to me by someone who certified (a) or (b) and I have not modified it.
37
+
38
+ ## Reporting Issues
39
+
40
+ Open an issue on GitHub. Include steps to reproduce, expected vs actual behavior, and your Python version.
41
+
42
+ ## Code Style
43
+
44
+ - Python 3.11+
45
+ - Lint with [ruff](https://docs.astral.sh/ruff/)
46
+ - No third-party runtime dependencies in `src/arbiter/` (stdlib only)
47
+ - Test dependencies (pytest, etc.) go in `[test]` extras
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to the Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by the Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding any notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2026 HUMMBL, LLC
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
@@ -0,0 +1,7 @@
1
+ include LICENSE
2
+ include README.md
3
+ include ROADMAP.md
4
+ include CONTRIBUTING.md
5
+ recursive-include src/arbiter *.py
6
+ recursive-include benchmarks *.json
7
+ recursive-include examples *.yml *.md
@@ -0,0 +1,161 @@
1
+ Metadata-Version: 2.4
2
+ Name: arbiter-score
3
+ Version: 0.6.0
4
+ Summary: Deterministic, polyglot code quality scoring with governance integration
5
+ Author-email: Reuben Bowlby <reuben@hummbl.io>
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://hummbl.io/audit
8
+ Project-URL: Repository, https://github.com/hummbl-dev/arbiter
9
+ Project-URL: Documentation, https://github.com/hummbl-dev/arbiter#readme
10
+ Project-URL: Changelog, https://github.com/hummbl-dev/arbiter/releases
11
+ Project-URL: Issues, https://github.com/hummbl-dev/arbiter/issues
12
+ Keywords: code-quality,linting,scoring,governance,arbiter,hummbl
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Topic :: Software Development :: Quality Assurance
16
+ Classifier: Topic :: Software Development :: Testing
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Programming Language :: Python :: 3.14
21
+ Requires-Python: >=3.11
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Provides-Extra: analyzers
25
+ Requires-Dist: ruff>=0.4.0; extra == "analyzers"
26
+ Requires-Dist: radon>=6.0.1; extra == "analyzers"
27
+ Requires-Dist: vulture>=2.16; extra == "analyzers"
28
+ Requires-Dist: bandit>=1.9.4; extra == "analyzers"
29
+ Provides-Extra: test
30
+ Requires-Dist: pytest>=9.0.3; extra == "test"
31
+ Provides-Extra: all
32
+ Requires-Dist: ruff>=0.4.0; extra == "all"
33
+ Requires-Dist: radon>=6.0.1; extra == "all"
34
+ Requires-Dist: vulture>=2.16; extra == "all"
35
+ Requires-Dist: bandit>=1.9.4; extra == "all"
36
+ Requires-Dist: pytest>=9.0.3; extra == "all"
37
+ Dynamic: license-file
38
+
39
+ # Arbiter
40
+
41
+ [![CI](https://github.com/hummbl-dev/arbiter/actions/workflows/ci.yml/badge.svg)](https://github.com/hummbl-dev/arbiter/actions/workflows/ci.yml)
42
+ [![PyPI](https://img.shields.io/pypi/v/arbiter)](https://pypi.org/project/arbiter/)
43
+ [![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue)](https://www.python.org/downloads/)
44
+ [![License](https://img.shields.io/badge/license-Apache%202.0-blue)](LICENSE)
45
+ [![Dependencies](https://img.shields.io/badge/core_deps-stdlib_only-brightgreen)]()
46
+
47
+ **Agent-aware code quality scoring for multi-agent codebases.**
48
+
49
+ In 2026, code is written by fleets of AI agents. Arbiter knows *who* wrote each line -- human or AI -- and scores quality accordingly.
50
+
51
+ ## Install
52
+
53
+ ```bash
54
+ pip install arbiter # core (stdlib only)
55
+ pip install "arbiter[analyzers]" # + ruff, radon, vulture, bandit
56
+
57
+ # Or from source
58
+ git clone https://github.com/hummbl-dev/arbiter.git && cd arbiter
59
+ pip install -e ".[analyzers]"
60
+ ```
61
+
62
+ ## Usage
63
+
64
+ ```bash
65
+ # Quick score -- no persistence, instant feedback
66
+ arbiter score /path/to/repo
67
+
68
+ # Full analysis with per-commit agent attribution
69
+ arbiter analyze /path/to/repo
70
+
71
+ # Agent leaderboard -- who writes the best code?
72
+ arbiter agents
73
+
74
+ # Start the dashboard (single HTML file, no build step)
75
+ arbiter serve --port 8080
76
+ ```
77
+
78
+ ## What It Scores
79
+
80
+ Arbiter wraps tools you already trust and combines them into a deterministic composite score:
81
+
82
+ | Analyzer | Tool | Weight | What It Finds |
83
+ |----------|------|--------|---------------|
84
+ | Lint | ruff | 35% | Style violations, import errors, bugbear patterns |
85
+ | Security | bandit | 30% | Hardcoded secrets, shell injection, dangerous patterns |
86
+ | Complexity | radon | 35% | Cyclomatic complexity (grade A-F per function) |
87
+ | Dead Code | vulture | penalty | Unused functions, imports, variables |
88
+ | Duplication | AST hash | penalty | Near-duplicate function bodies |
89
+ | Semgrep | semgrep | opt-in | Custom rule enforcement (enable via config) |
90
+
91
+ **Scoring:** `100 - (penalty / LOC) * normalization`. Grades: A (90+) | B (80+) | C (70+) | D (60+) | F (<60).
92
+
93
+ ## What Makes Arbiter Different
94
+
95
+ | Feature | Traditional Tools | Arbiter |
96
+ |---------|------------------|---------|
97
+ | Agent attribution | None | First-class: tracks Claude, Codex, Gemini, Copilot, humans |
98
+ | Per-commit scoring | Repo-wide only | Scores each commit's changed files individually |
99
+ | Diff analysis | N/A | Score only what changed in a PR/branch |
100
+ | Agent-specific gates | N/A | Different quality thresholds per agent trust tier |
101
+ | Dashboard | SaaS login | Single HTML file with per-agent timelines and fleet view |
102
+ | Dependencies | Heavy | Analysis tools only; core is stdlib Python |
103
+
104
+ ## CLI Reference
105
+
106
+ ```bash
107
+ arbiter analyze <repo> # Full analysis + per-commit scoring + persist
108
+ arbiter score <repo> [--json] [--exclude] # Quick score (no persist)
109
+ arbiter diff <repo> [--base main] [--json] # Score changed files vs base branch
110
+ arbiter agents # Agent leaderboard
111
+ arbiter trend [--days 30] # Quality trend
112
+ arbiter worst [--limit 20] # Worst files
113
+ arbiter commits [--agent claude] # Recent commits with scores
114
+ arbiter audit-fleet <directory> # Audit all repos in a directory
115
+ arbiter triage # Auto-classify repos: green/yellow/red/archive
116
+ arbiter fix <repo> [--dry-run] # Auto-fix ruff findings + before/after score
117
+ arbiter serve [--port 8080] # API + dashboard
118
+ ```
119
+
120
+ ## Tests
121
+
122
+ ```bash
123
+ pip install ".[test]"
124
+ PYTHONPATH=src python -m pytest tests/ -v # 78 tests, <7 seconds
125
+ ```
126
+
127
+ ## Quality Gate
128
+
129
+ Arbiter grades itself on every push and PR. The CI runs `arbiter score .` and fails if the score drops below **90 (A grade)**.
130
+
131
+ ```bash
132
+ # Run the same check locally
133
+ arbiter score . --fail-under 90
134
+
135
+ # Score only your changed files against main
136
+ arbiter diff . --base main --fail-under 80
137
+ ```
138
+
139
+ ## Requirements
140
+
141
+ - Python 3.11+
142
+ - git (for historian)
143
+ - Optional: ruff, radon, vulture, bandit (install via `[analyzers]` extra)
144
+
145
+ ## HUMMBL Ecosystem
146
+
147
+ Part of the [HUMMBL](https://github.com/hummbl-dev) cognitive AI architecture:
148
+
149
+ - [hummbl-governance](https://github.com/hummbl-dev/hummbl-governance) -- Governance primitives that Arbiter scores against
150
+ - [base120](https://github.com/hummbl-dev/base120) -- 120 mental models for structured reasoning
151
+ - [mcp-server](https://github.com/hummbl-dev/mcp-server) -- MCP server for AI agent integration
152
+
153
+ Learn more at [hummbl.io](https://hummbl.io).
154
+
155
+ ## License
156
+
157
+ Apache 2.0 -- see [LICENSE](LICENSE).
158
+
159
+ ---
160
+
161
+ Built by [HUMMBL LLC](https://hummbl.io) from production experience coordinating Claude, Codex, Gemini, and human engineers on a 14,000+ test codebase.
@@ -0,0 +1,123 @@
1
+ # Arbiter
2
+
3
+ [![CI](https://github.com/hummbl-dev/arbiter/actions/workflows/ci.yml/badge.svg)](https://github.com/hummbl-dev/arbiter/actions/workflows/ci.yml)
4
+ [![PyPI](https://img.shields.io/pypi/v/arbiter)](https://pypi.org/project/arbiter/)
5
+ [![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue)](https://www.python.org/downloads/)
6
+ [![License](https://img.shields.io/badge/license-Apache%202.0-blue)](LICENSE)
7
+ [![Dependencies](https://img.shields.io/badge/core_deps-stdlib_only-brightgreen)]()
8
+
9
+ **Agent-aware code quality scoring for multi-agent codebases.**
10
+
11
+ In 2026, code is written by fleets of AI agents. Arbiter knows *who* wrote each line -- human or AI -- and scores quality accordingly.
12
+
13
+ ## Install
14
+
15
+ ```bash
16
+ pip install arbiter # core (stdlib only)
17
+ pip install "arbiter[analyzers]" # + ruff, radon, vulture, bandit
18
+
19
+ # Or from source
20
+ git clone https://github.com/hummbl-dev/arbiter.git && cd arbiter
21
+ pip install -e ".[analyzers]"
22
+ ```
23
+
24
+ ## Usage
25
+
26
+ ```bash
27
+ # Quick score -- no persistence, instant feedback
28
+ arbiter score /path/to/repo
29
+
30
+ # Full analysis with per-commit agent attribution
31
+ arbiter analyze /path/to/repo
32
+
33
+ # Agent leaderboard -- who writes the best code?
34
+ arbiter agents
35
+
36
+ # Start the dashboard (single HTML file, no build step)
37
+ arbiter serve --port 8080
38
+ ```
39
+
40
+ ## What It Scores
41
+
42
+ Arbiter wraps tools you already trust and combines them into a deterministic composite score:
43
+
44
+ | Analyzer | Tool | Weight | What It Finds |
45
+ |----------|------|--------|---------------|
46
+ | Lint | ruff | 35% | Style violations, import errors, bugbear patterns |
47
+ | Security | bandit | 30% | Hardcoded secrets, shell injection, dangerous patterns |
48
+ | Complexity | radon | 35% | Cyclomatic complexity (grade A-F per function) |
49
+ | Dead Code | vulture | penalty | Unused functions, imports, variables |
50
+ | Duplication | AST hash | penalty | Near-duplicate function bodies |
51
+ | Semgrep | semgrep | opt-in | Custom rule enforcement (enable via config) |
52
+
53
+ **Scoring:** `100 - (penalty / LOC) * normalization`. Grades: A (90+) | B (80+) | C (70+) | D (60+) | F (<60).
54
+
55
+ ## What Makes Arbiter Different
56
+
57
+ | Feature | Traditional Tools | Arbiter |
58
+ |---------|------------------|---------|
59
+ | Agent attribution | None | First-class: tracks Claude, Codex, Gemini, Copilot, humans |
60
+ | Per-commit scoring | Repo-wide only | Scores each commit's changed files individually |
61
+ | Diff analysis | N/A | Score only what changed in a PR/branch |
62
+ | Agent-specific gates | N/A | Different quality thresholds per agent trust tier |
63
+ | Dashboard | SaaS login | Single HTML file with per-agent timelines and fleet view |
64
+ | Dependencies | Heavy | Analysis tools only; core is stdlib Python |
65
+
66
+ ## CLI Reference
67
+
68
+ ```bash
69
+ arbiter analyze <repo> # Full analysis + per-commit scoring + persist
70
+ arbiter score <repo> [--json] [--exclude] # Quick score (no persist)
71
+ arbiter diff <repo> [--base main] [--json] # Score changed files vs base branch
72
+ arbiter agents # Agent leaderboard
73
+ arbiter trend [--days 30] # Quality trend
74
+ arbiter worst [--limit 20] # Worst files
75
+ arbiter commits [--agent claude] # Recent commits with scores
76
+ arbiter audit-fleet <directory> # Audit all repos in a directory
77
+ arbiter triage # Auto-classify repos: green/yellow/red/archive
78
+ arbiter fix <repo> [--dry-run] # Auto-fix ruff findings + before/after score
79
+ arbiter serve [--port 8080] # API + dashboard
80
+ ```
81
+
82
+ ## Tests
83
+
84
+ ```bash
85
+ pip install ".[test]"
86
+ PYTHONPATH=src python -m pytest tests/ -v # 78 tests, <7 seconds
87
+ ```
88
+
89
+ ## Quality Gate
90
+
91
+ Arbiter grades itself on every push and PR. The CI runs `arbiter score .` and fails if the score drops below **90 (A grade)**.
92
+
93
+ ```bash
94
+ # Run the same check locally
95
+ arbiter score . --fail-under 90
96
+
97
+ # Score only your changed files against main
98
+ arbiter diff . --base main --fail-under 80
99
+ ```
100
+
101
+ ## Requirements
102
+
103
+ - Python 3.11+
104
+ - git (for historian)
105
+ - Optional: ruff, radon, vulture, bandit (install via `[analyzers]` extra)
106
+
107
+ ## HUMMBL Ecosystem
108
+
109
+ Part of the [HUMMBL](https://github.com/hummbl-dev) cognitive AI architecture:
110
+
111
+ - [hummbl-governance](https://github.com/hummbl-dev/hummbl-governance) -- Governance primitives that Arbiter scores against
112
+ - [base120](https://github.com/hummbl-dev/base120) -- 120 mental models for structured reasoning
113
+ - [mcp-server](https://github.com/hummbl-dev/mcp-server) -- MCP server for AI agent integration
114
+
115
+ Learn more at [hummbl.io](https://hummbl.io).
116
+
117
+ ## License
118
+
119
+ Apache 2.0 -- see [LICENSE](LICENSE).
120
+
121
+ ---
122
+
123
+ Built by [HUMMBL LLC](https://hummbl.io) from production experience coordinating Claude, Codex, Gemini, and human engineers on a 14,000+ test codebase.
@@ -0,0 +1,94 @@
1
+ # Arbiter Roadmap
2
+
3
+ Deterministic, transparent, decomposable code quality scoring — expanding from Python-first to polyglot, from CLI to platform.
4
+
5
+ **Current state** (v0.3.0): 22 CLI subcommands, 6 analyzers, 273 tests, 8 PRs shipped, 6 OSS contributions tracked. Python-only scoring with noise filtering, fleet audit, HTML/PDF reports, weekly leaderboard automation, and a contribution tracker.
6
+
7
+ ---
8
+
9
+ ## Phase 1: Contribution Engine (Q2 2026)
10
+
11
+ *Turn Arbiter from a scorer into an OSS contribution machine.*
12
+
13
+ | Feature | Description | Status |
14
+ |---------|-------------|--------|
15
+ | `arbiter contribute` | One-command contribution pipeline: scan repo → find fixable findings → prepare branch → generate PR description → record in tracker | **Done** (#34) |
16
+ | `arbiter watch` | Monitor upstream PR status via GitHub API — auto-update contribution tracker when PRs merge/close | **Done** (#29) |
17
+ | `arbiter badge` | Generate SVG badge ("Arbiter Score: 96 A") for README.md — instant visibility for scored repos | **Done** (#32) |
18
+ | CI quality gate template | GitHub Action template: `arbiter diff --fail-under 80` as a PR check — the enterprise on-ramp | **Done** (#30) |
19
+ | `.arbiter.yml` config | Per-repo configuration: custom weights, excluded paths, rule overrides, noise threshold defaults | **Done** (#31) |
20
+ | Benchmark dataset | Curated 100-repo reference set with pinned scores — regression testing for Arbiter itself | **Done** (#33) |
21
+
22
+ ## Phase 2: Polyglot Expansion (Q3 2026)
23
+
24
+ *Score any repo, not just Python.*
25
+
26
+ | Feature | Description | Tool | Status |
27
+ |---------|-------------|------|--------|
28
+ | Shell analyzer | Parse shellcheck JSON output → findings | shellcheck | **Done** (#36) |
29
+ | JavaScript/TypeScript analyzer | Parse eslint JSON output → findings | eslint | **Done** (#40) |
30
+ | Go analyzer | Parse golangci-lint JSON output → findings | golangci-lint | **Done** (#40) |
31
+ | Rust analyzer | Parse clippy JSON output → findings | clippy | **Done** (#40) |
32
+ | Language detection | Auto-detect primary languages, select applicable analyzers, report coverage | stdlib | **Done** (#40) |
33
+ | Polyglot scoring weights | Adjust dimension weights per language (e.g., Rust security weight higher) | — | **Done** (#41) |
34
+
35
+ ## Phase 3: Intelligence Layer (Q3-Q4 2026)
36
+
37
+ *Go from "what's wrong" to "what to do about it."*
38
+
39
+ | Feature | Description | Status |
40
+ |---------|-------------|--------|
41
+ | `arbiter suggest` | AI-powered: rank findings by impact, suggest the 3 highest-ROI fixes | Planned |
42
+ | `arbiter explain` | Natural language explanation of a score: why it's C, what would make it B | Planned |
43
+ | Custom rule profiles | "Enterprise", "startup", "OSS maintainer" presets with different weights and thresholds | Planned |
44
+ | Historical scoring | Weekly snapshots → trend graphs. "Your code improved from C to B this quarter" | Planned |
45
+ | Team attribution | Who introduced which findings? Quality by contributor — agent leaderboard generalized to humans | Planned |
46
+ | Dependency scoring | Score a repo's dependencies: maintained? CVEs? license conflicts? Last release date? | Planned |
47
+
48
+ ## Phase 4: Governance Integration (Q4 2026)
49
+
50
+ *Connect Arbiter to HUMMBL's governance stack.*
51
+
52
+ | Feature | Description | Status |
53
+ |---------|-------------|--------|
54
+ | Governance scoring dimension | Score repos on governance maturity: CONTRIBUTING.md, LICENSE, SECURITY.md, DCO, CoC | Planned |
55
+ | VERUM-aligned audit trail | Every score is an append-only signed record — provable governance for enterprise | Planned |
56
+ | Certified Adapter scoring | Score third-party adapters against HUMMBL certification criteria | Planned |
57
+ | Compliance report mapping | Map Arbiter findings to NIST CSF / ISO 27001 / SOC 2 controls | Planned |
58
+ | `arbiter certify` | Full certification workflow: score + governance + audit trail → certification decision | Planned |
59
+
60
+ ## Phase 5: Platform (2027)
61
+
62
+ *Arbiter as a service.*
63
+
64
+ | Feature | Description | Status |
65
+ |---------|-------------|--------|
66
+ | Arbiter Cloud | Hosted scoring API — score any public repo via REST endpoint | Planned |
67
+ | GitHub App | Install on org → automatic PR quality checks on every push | Planned |
68
+ | Dashboard | Web UI showing fleet scores, trends, team leaderboard, contribution tracker | Planned |
69
+ | Webhook integration | Post score changes to Slack, Discord, email | Planned |
70
+ | Public leaderboard | hummbl.io/leaderboard — weekly ranking of top OSS repos by quality | Planned |
71
+ | PyPI package | `pip install arbiter-score` — the OSS distribution | Planned |
72
+
73
+ ---
74
+
75
+ ## Shipped (v0.1–v0.3)
76
+
77
+ | Version | Date | Features |
78
+ |---------|------|----------|
79
+ | v0.1 | 2026-03 | Core scoring engine, ruff + bandit + radon analyzers, SQLite persistence, agent attribution |
80
+ | v0.2 | 2026-04 | Fleet audit, triage, auto-fix, HTML/PDF reports, improvement loop (gaps), artifact scorers |
81
+ | v0.3 | 2026-04-18 | `github-top`, `score-url`, `compare`, `leaderboard`, `contributions`, weekly Action, noise-threshold, CONTRIBUTING.md with DCO |
82
+ | v0.4 | 2026-04-18 | Phase 1 (badge, watch, config, CI gate, contribute, benchmark) + Phase 2 (shellcheck, eslint, golangci-lint, clippy, lang-detect, polyglot weights). 19 PRs, 427 tests, 6 languages. |
83
+
84
+ ## Design Principles
85
+
86
+ 1. **Deterministic** — same code always produces the same score. No LLM in the scoring path.
87
+ 2. **Transparent** — every score decomposes into dimensions, every dimension into findings, every finding into a file:line.
88
+ 3. **Stdlib-only core** — analyzers call external tools via subprocess, but Arbiter itself has zero runtime dependencies.
89
+ 4. **Append-only tracking** — contribution ledger and gap tracker are JSONL, never mutated in place.
90
+ 5. **Polyglot by design** — the `Analyzer` interface is language-agnostic. Adding a language = one new analyzer class.
91
+
92
+ ---
93
+
94
+ *Powered by [HUMMBL](https://hummbl.io) — governed AI for enterprise.*