How manassharma2006/stratum-open works
Stratum Open reviews pull requests for maintainers: it reads a PR diff, applies repository policy and automated checks, asks a configured model to review in-scope changes, then ranks findings and publishes review feedback and triage on the hosting platform. The README also describes dependency, workflow, agent-instruction, Python-name and weakened-test checks, plus an optional incremental/early-check workflow. The graph emphasizes the documented runner-to-engine flow and sampled module references; GitLab and several feature-specific check implementations are represented at subsystem level where their runtime wiring was not excerpted.
Main entry points: runner.py Review runner · __init__.py Automated checks · review.py Model review · findings.py Findings
Components 25
Entry points
- GitHub Action
stratum_open/action.py - CLI
stratum_open/cli.py - App interface
stratum_open/app.py - Review runner
stratum_open/runner.py
Review analysis
- Policy
stratum_open/policy.py - Diff handling
stratum_open/diff.py - Automated checks
stratum_open/checks/__init__.py - Dependency checks
stratum_open/checks/dependencies.py - Python name checks
stratum_open/repo/unknown_names.py - Model review
stratum_open/review.py - Model client
stratum_open/model.py - Findings
stratum_open/findings.py
Triage and state
- PR triage
stratum_open/triage.py - Review queue
stratum_open/triage_queue.py - Review storage
stratum_open/storage.py - Track record
stratum_open/track_record.py
Platform integration
- GitHub publishing
stratum_open/github/publish.py - GitHub API
stratum_open/github/api.py - GitLab CI
stratum_open/gitlab/ci.py - GitLab API
stratum_open/gitlab/api.py
Other components
- Maintainer
- Pull request
- GitHub
- GitLab
- Model server
Connections 25
- Maintainer → GitHub Action: configures
- Pull request → Review runner: triggers review
- GitHub Action → Review runner: invokes
- CLI → Review runner: invokes
- App interface → Review runner: invokes
stratum_open/app.py - Review runner → Policy: loads rules
stratum_open/runner.py - Review runner → Diff handling: prepares changes
stratum_open/runner.py - Review runner → Automated checks: runs analysis
stratum_open/runner.py - Automated checks → Dependency checks: dispatches
stratum_open/checks/__init__.py - Automated checks → Python name checks: dispatches
- Review runner → Model review: requests review
stratum_open/runner.py - Model review → Model client: prompts
stratum_open/review.py - Model client → Model server: sends requests
stratum_open/model.py - Review runner → Findings: ranks results
stratum_open/runner.py - Automated checks → Findings: creates findings
stratum_open/checks/__init__.py - Model review → Findings: creates findings
stratum_open/review.py - Review runner → PR triage: assigns priority
stratum_open/runner.py - PR triage → Track record: uses history
stratum_open/triage.py - Review runner → Review storage: persists state
stratum_open/runner.py - Review runner → GitHub publishing: publishes review
stratum_open/runner.py - GitHub publishing → GitHub API: posts feedback
stratum_open/github/publish.py - GitHub API → GitHub: reads and writes
stratum_open/github/api.py - GitHub → Pull request: supplies changes
- GitLab CI → GitLab API: uses client
stratum_open/gitlab/ci.py - GitLab → GitLab CI: runs pipeline