Skip to content

fix: implement AAR recommendations (threshold, dep floor, warnings, blog)#63

Merged
hummbl-dev merged 1 commit intomainfrom
feat/claude/aar-recs
Apr 19, 2026
Merged

fix: implement AAR recommendations (threshold, dep floor, warnings, blog)#63
hummbl-dev merged 1 commit intomainfrom
feat/claude/aar-recs

Conversation

@hummbl-dev
Copy link
Copy Markdown
Owner

Summary

4 AAR recommendations implemented:

  1. Diff self-grade threshold lowered 80→70 (CI was rejecting legitimate refactors)
  2. Dep scoring floor at 20 (Sentry got 0 for 109 deps — misleading)
  3. SyntaxWarning suppression via PYTHONWARNINGS env var
  4. Blog post draft: "We certified 170+ repos"

Test plan

  • CI threshold change is YAML-only
  • Dep floor change is 1-line with comment
  • Warning suppression is defensive (setdefault, not override)

🤖 Generated with Claude Code

1. Lower diff self-grade threshold 80→70 (addresses CI friction)
2. Add dep scoring floor at 20 (prevents misleading 0 for large dep counts)
4. Suppress SyntaxWarning in analyzer subprocess calls
8. Blog post draft: "We certified 170+ repos — governance is the bottleneck"

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@hummbl-dev hummbl-dev force-pushed the feat/claude/aar-recs branch from 4c606f5 to 0885196 Compare April 19, 2026 13:17
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4c606f5d00

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/arbiter/__main__.py
def _run_analysis(repo_path: Path, analyzers: list[Analyzer], exclude_paths: list[str] | None = None) -> list[Finding]:
"""Run all analyzers against a repo."""
# Suppress SyntaxWarning from escape sequences in scanned files
os.environ.setdefault("PYTHONWARNINGS", "ignore::SyntaxWarning")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 Badge Import os before setting PYTHONWARNINGS

_run_analysis now calls os.environ.setdefault(...), but src/arbiter/__main__.py does not import os, so any command path that reaches this function (e.g., analyze, score, diff) will raise NameError: name 'os' is not defined before analyzers run. This is a hard runtime failure in core CLI flows introduced by this change.

Useful? React with 👍 / 👎.

@hummbl-dev hummbl-dev merged commit be15ebe into main Apr 19, 2026
3 checks passed
@hummbl-dev hummbl-dev deleted the feat/claude/aar-recs branch April 19, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant