How abdumateen/loadlens works
LoadLens turns evidence bundles into deterministic comprehension-load scores and rendering decisions. Its main workflow is to normalize a bundle (optionally from a local Git revision range), extract features, score with stored coefficients, and apply calibrated rendering policy. A separate Stage 1 workflow mines reverted commits and matched controls, fits and evaluates a model, then reports a gate verdict. The README also documents Stage 2 study run/analyze commands; that implementation is not sampled, so its internal relationships are omitted.
Main entry points: cli.py Command-line interface · policy.py Rendering policy · git_hook.py Git hook adapter · features.py Feature extraction
Components 12
Bundle ingestion
- Command-line interface
loadlens/cli.py - Git hook adapter
loadlens/adapters/git_hook.py - Evidence bundle schema
loadlens/schema.py
Scoring and rendering
- Feature extraction
loadlens/features.py - Load estimator
loadlens/estimator.py - Rendering policy
loadlens/policy.py
Stage 1 calibration
- History mining
loadlens/stage1/mine.py - Model fitting
loadlens/stage1/fit.py - Gate report
loadlens/stage1/report.py
Study tooling
- Study run and analysis
loadlens/study
Other components
- Reviewer or operator
- Local Git repository
Connections 18
- Reviewer or operator → Command-line interface: runs commands
README.md - Command-line interface → Git hook adapter: requests bundle
loadlens/cli.py - Local Git repository → Git hook adapter: provides revisions
README.md - Git hook adapter → Evidence bundle schema: builds bundle
loadlens/adapters/git_hook.py - Command-line interface → Evidence bundle schema: reads bundle
loadlens/cli.py - Command-line interface → Feature extraction: extracts features
loadlens/cli.py - Feature extraction → Evidence bundle schema: reads fields
loadlens/features.py - Command-line interface → Load estimator: scores bundle
loadlens/cli.py - Load estimator → Feature extraction: uses vector
loadlens/estimator.py - Command-line interface → Rendering policy: requests decision
loadlens/cli.py - Rendering policy → Load estimator: uses load
loadlens/policy.py - Rendering policy → Reviewer or operator: renders decision
README.md - Command-line interface → History mining: starts mining
loadlens/cli.py - Command-line interface → Model fitting: starts fitting
loadlens/cli.py - Command-line interface → Gate report: requests report
loadlens/cli.py - History mining → Model fitting: supplies observations
- Model fitting → Gate report: supplies fit result
loadlens/stage1/report.py - Command-line interface → Study run and analysis: runs analysis
README.md