Skip to content

feat: add iii-sensor worker#12

Open
rohitg00 wants to merge 1 commit intomainfrom
feat/sensor
Open

feat: add iii-sensor worker#12
rohitg00 wants to merge 1 commit intomainfrom
feat/sensor

Conversation

@rohitg00
Copy link
Copy Markdown

@rohitg00 rohitg00 commented Apr 7, 2026

Summary

  • Code quality feedback sensor with 6 functions
  • Scan directories, compute quality scores (geometric mean across 5 dimensions), detect degradation
  • All through iii primitives: State, Queue, HTTP triggers
  • 17 tests, 0 warnings

Functions

Function Description
sensor::scan Walk directory, compute per-file metrics
sensor::score Weighted geometric mean -> 0-100 score + letter grade
sensor::baseline Save current score as pre-session snapshot
sensor::compare Diff current vs baseline, flag degradation
sensor::gate CI pass/fail based on thresholds
sensor::history Historical scores with trend detection

Test plan

  • cargo test — 17 tests passing
  • cargo check — 0 warnings

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 7, 2026

Warning

Rate limit exceeded

@rohitg00 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 21 minutes and 8 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 21 minutes and 8 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7e130595-3659-424f-b74c-5b87b741923c

📥 Commits

Reviewing files that changed from the base of the PR and between 606a4d4 and c0421c5.

📒 Files selected for processing (17)
  • sensor/Cargo.toml
  • sensor/README.md
  • sensor/SPEC.md
  • sensor/build.rs
  • sensor/config.yaml
  • sensor/src/analysis.rs
  • sensor/src/config.rs
  • sensor/src/functions/baseline.rs
  • sensor/src/functions/compare.rs
  • sensor/src/functions/gate.rs
  • sensor/src/functions/history.rs
  • sensor/src/functions/mod.rs
  • sensor/src/functions/scan.rs
  • sensor/src/functions/score.rs
  • sensor/src/main.rs
  • sensor/src/manifest.rs
  • sensor/src/state.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/sensor

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Code quality feedback sensor. 6 functions:
- sensor::scan — walk directory, compute per-file metrics
- sensor::score — weighted geometric mean across 5 dimensions (0-100 + letter grade)
- sensor::baseline — save current score as pre-session snapshot
- sensor::compare — diff current vs baseline, flag degradation
- sensor::gate — CI pass/fail based on thresholds
- sensor::history — historical scores with trend detection

Uses iii primitives: State (baselines, history, latest), Queue (async scan jobs).
17 tests, 0 warnings.
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