Skip to content

t3277: wire upstream_watch config keys and document JSONC config for all numeric intervals#4630

Merged
marcusquinn merged 1 commit intomainfrom
bugfix/t3277-auto-update-numeric-config
Mar 14, 2026
Merged

t3277: wire upstream_watch config keys and document JSONC config for all numeric intervals#4630
marcusquinn merged 1 commit intomainfrom
bugfix/t3277-auto-update-numeric-config

Conversation

@alex-solovyev
Copy link
Copy Markdown
Collaborator

Summary

Addresses the critical quality-debt finding from PR #2731 (CodeRabbit review): numeric update config values from JSONC were not applied — only environment variable overrides worked.

Root cause confirmed: upstream_watch and upstream_watch_hours were the only keys used by auto-update-helper.sh that were not wired into the config system. All other numeric keys (skill_freshness_hours, tool_freshness_hours, tool_idle_hours, openclaw_freshness_hours, update_interval_minutes) were already correctly mapped in _config_env_map and _legacy_key_to_dotpath in config-helper.sh, and present in aidevops.defaults.jsonc and aidevops-config.schema.json. The code already used get_feature_toggle which routes through config_get in JSONC mode.

Changes

  • config-helper.sh: Add upstream_watch → updates.upstream_watch and upstream_watch_hours → updates.upstream_watch_hours to both _config_env_map (dotpath → env var) and _legacy_key_to_dotpath (flat key → dotpath). This completes the config routing chain for all numeric update intervals.
  • aidevops.defaults.jsonc: Add upstream_watch: true and upstream_watch_hours: 24 to the updates section with env-override hints.
  • aidevops-config.schema.json: Add upstream_watch (boolean) and upstream_watch_hours (integer, minimum: 1) to the updates object schema. Removes additionalProperties: false violation that would have rejected these keys.
  • auto-update-helper.sh: Replace the env-var-only Configuration: header with a three-column table (JSONC key | env override | default) covering all 10 update settings, making JSONC config discoverable. Update RATE LIMITS section to reference JSONC dotpaths and add upstream watch entry.

Verification

  • shellcheck passes on all modified shell scripts (zero violations)
  • get_feature_toggle upstream_watch_hours now routes through config_get "updates.upstream_watch_hours" in JSONC mode, which checks AIDEVOPS_UPSTREAM_WATCH_HOURS env var first, then JSONC user config, then defaults — matching the pattern used by all other numeric intervals

Closes #3277

… for all numeric intervals

- Add updates.upstream_watch and updates.upstream_watch_hours to _config_env_map
  and _legacy_key_to_dotpath in config-helper.sh so get_feature_toggle routes
  them through config_get (JSONC > env var > default) in JSONC mode
- Add upstream_watch and upstream_watch_hours to aidevops.defaults.jsonc with
  correct defaults (true / 24h) and env-override hints
- Add upstream_watch and upstream_watch_hours to aidevops-config.schema.json
  with type, minimum, and description fields
- Replace env-var-only Configuration header in auto-update-helper.sh with a
  three-column table (JSONC key | env override | default) covering all 10
  numeric/boolean update settings, making JSONC config discoverable
- Update RATE LIMITS section to reference JSONC dotpaths instead of env vars
  and add upstream watch rate-limit note

Closes #3277
@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 14, 2026

Warning

Rate limit exceeded

@alex-solovyev has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 18 minutes and 0 seconds before requesting another review.

⌛ 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: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: c98a2689-d526-4046-b294-6631c029005f

📥 Commits

Reviewing files that changed from the base of the PR and between bf38919 and 157b501.

📒 Files selected for processing (4)
  • .agents/configs/aidevops-config.schema.json
  • .agents/configs/aidevops.defaults.jsonc
  • .agents/scripts/auto-update-helper.sh
  • .agents/scripts/config-helper.sh
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch bugfix/t3277-auto-update-numeric-config
📝 Coding Plan
  • Generate coding plan for human review comments

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.

@github-actions
Copy link
Copy Markdown
Contributor

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

�[0;34m[INFO]�[0m Latest Quality Status:
SonarCloud: 0 bugs, 0 vulnerabilities, 413 code smells

�[0;34m[INFO]�[0m Recent monitoring activity:
Sat Mar 14 05:57:06 UTC 2026: Code review monitoring started
Sat Mar 14 05:57:07 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 413

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 413
  • VULNERABILITIES: 0

Generated on: Sat Mar 14 05:57:09 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

@sonarqubecloud
Copy link
Copy Markdown

@marcusquinn marcusquinn merged commit defa67d into main Mar 14, 2026
17 checks passed
@marcusquinn marcusquinn deleted the bugfix/t3277-auto-update-numeric-config branch March 14, 2026 06:01
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.

quality-debt: .agents/scripts/auto-update-helper.sh — PR #2731 review feedback (critical)

2 participants