doc: update README with current architecture, add contributing guidelines #1

Merged
rcsheets merged 1 commit from doc/branching-model into main 2026-03-20 05:47:21 +00:00
Owner

Reflects two-tier review system, separate dashboard deployment, adaptive
settle time, and branch-based PR workflow.

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

Reflects two-tier review system, separate dashboard deployment, adaptive settle time, and branch-based PR workflow. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Reflects two-tier review system, separate dashboard deployment, adaptive
settle time, and branch-based PR workflow.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Collaborator

Automated review by pr-reviewer v0.6.0 | Full Review | anthropic | tracking id r-bcdede-28874c

Status: Completed


This is a well-structured documentation update that accurately reflects the current architecture and adds helpful contributing guidelines. The changes look good overall. Here's my detailed review:

Positive Aspects

Architecture Documentation

  • Clear two-tier system: The distinction between quick scans (always) and full reviews (when bot is assigned) is well explained
  • Complete workflow: The 5-step process clearly describes the flow from webhook to review completion
  • Comprehensive configuration: All environment variables are documented with defaults and requirements

Deployment Clarity

  • Service separation: Clearly explains the two-deployment architecture sharing the same image
  • Network details: Provides specific service names and ports for Kubernetes deployment
  • Dashboard access: Clear instructions for accessing the monitoring dashboard

Contributing Guidelines

  • Branch naming: Consistent prefixes that follow common conventions
  • Self-documenting: Notes that the bot reviews its own PRs, which is a nice touch

🔍 Areas for Consideration

Configuration Section (lines 30-37)

The new configuration variables are well documented, but consider:

  • BOT_USERNAME: Should clarify if this needs to match the actual Forgejo username exactly
  • Adaptive settle time: The three settle-time variables could benefit from a brief explanation of how adaptive settling works

Dashboard URL Inconsistency

File: README.md, line 84
The dashboard access instruction shows visiting http://<ip>/ but doesn't mention if there are any authentication requirements or if it's truly open on the network.

Missing Error Handling Documentation

While the configuration is comprehensive, there's no mention of:

  • What happens if required environment variables are missing
  • How the service behaves with invalid webhook secrets
  • Database connection failure scenarios

📝 Minor Suggestions

Endpoint Documentation (lines 39-51)

The split into webhook service and dashboard endpoints is clear, but the (main:app) and (dashboard:app) notation might be unclear to users unfamiliar with the codebase structure.

Contributing Section (lines 86-94)

Consider adding:

  • Minimum testing requirements
  • How to run the service locally for development
  • Whether there are any coding standards or linting requirements

🚀 No Issues Found

Security

  • Webhook secret verification is properly documented
  • API token permissions are clearly specified
  • Internal-only dashboard deployment is noted

Breaking Changes

  • This is documentation-only, no breaking changes
  • All existing functionality appears to be preserved

Performance

  • Token limits for different review types are documented
  • Adaptive settle timing is mentioned (good for preventing race conditions)

Overall Assessment

This is a solid documentation update that significantly improves the README's usefulness. The two-tier review system is well explained, the deployment architecture is clear, and the contributing guidelines establish good development practices. The changes accurately reflect a mature system with thoughtful features like adaptive settle timing and separate dashboard deployment.

Recommendation: Approve and merge. This documentation will help both users and contributors understand the system better.

*Automated review by [pr-reviewer](https://git.brooktrails.org/brooktrails/pr-reviewer) v0.6.0 | Full Review | anthropic | tracking id `r-bcdede-28874c`* **Status:** ✅ Completed --- This is a well-structured documentation update that accurately reflects the current architecture and adds helpful contributing guidelines. The changes look good overall. Here's my detailed review: ## ✅ Positive Aspects ### Architecture Documentation - **Clear two-tier system**: The distinction between quick scans (always) and full reviews (when bot is assigned) is well explained - **Complete workflow**: The 5-step process clearly describes the flow from webhook to review completion - **Comprehensive configuration**: All environment variables are documented with defaults and requirements ### Deployment Clarity - **Service separation**: Clearly explains the two-deployment architecture sharing the same image - **Network details**: Provides specific service names and ports for Kubernetes deployment - **Dashboard access**: Clear instructions for accessing the monitoring dashboard ### Contributing Guidelines - **Branch naming**: Consistent prefixes that follow common conventions - **Self-documenting**: Notes that the bot reviews its own PRs, which is a nice touch ## 🔍 Areas for Consideration ### Configuration Section (lines 30-37) The new configuration variables are well documented, but consider: - **`BOT_USERNAME`**: Should clarify if this needs to match the actual Forgejo username exactly - **Adaptive settle time**: The three settle-time variables could benefit from a brief explanation of how adaptive settling works ### Dashboard URL Inconsistency **File**: README.md, line 84 The dashboard access instruction shows visiting `http://<ip>/` but doesn't mention if there are any authentication requirements or if it's truly open on the network. ### Missing Error Handling Documentation While the configuration is comprehensive, there's no mention of: - What happens if required environment variables are missing - How the service behaves with invalid webhook secrets - Database connection failure scenarios ## 📝 Minor Suggestions ### Endpoint Documentation (lines 39-51) The split into webhook service and dashboard endpoints is clear, but the `(main:app)` and `(dashboard:app)` notation might be unclear to users unfamiliar with the codebase structure. ### Contributing Section (lines 86-94) Consider adding: - Minimum testing requirements - How to run the service locally for development - Whether there are any coding standards or linting requirements ## 🚀 No Issues Found ### Security - Webhook secret verification is properly documented - API token permissions are clearly specified - Internal-only dashboard deployment is noted ### Breaking Changes - This is documentation-only, no breaking changes - All existing functionality appears to be preserved ### Performance - Token limits for different review types are documented - Adaptive settle timing is mentioned (good for preventing race conditions) ## Overall Assessment This is a solid documentation update that significantly improves the README's usefulness. The two-tier review system is well explained, the deployment architecture is clear, and the contributing guidelines establish good development practices. The changes accurately reflect a mature system with thoughtful features like adaptive settle timing and separate dashboard deployment. **Recommendation**: Approve and merge. This documentation will help both users and contributors understand the system better.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
brooktrails/pr-reviewer!1
No description provided.