ci: schedule bounded hourly PR maintenance (stacked on #569) - #570
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
|
@opencode-agent Perform an independent exact-head review of |
Match the audited nosemgrep boundaries used on tool-fallback tip so the hourly maintenance PR clears the Medium+ Semgrep gate without weakening real findings.
Summary
Add a repository-owned hourly heartbeat that delegates review-feedback repair to the protected central
ContextualWisdomLab/.githubcontrol plane instead of copying the repair engine into this product repository.mainPRs but permits at most one repair dispatch per heartbeat.GITHUB_TOKENread-only and uses only the existing central scheduler credentials.NVIDIA_NIM_API_KEY; the separately reviewed central OpenCode worker owns NIM model execution.COPILOT_GITHUB_TOKEN.Dependency boundary
This PR is temporarily stacked on
fix/tool-execution-fallbacks-567/ PR #569. The previousmain-based merge ref failed SAST only on five pre-existing provider/TLS/SQL findings in protectedmain; none were introduced by this four-file scheduler slice. PR #569 owns the audited source-level/Semgrep boundary for those findings. Do not duplicate unrelated suppressions in this PR.After #569 reaches protected
main, retarget this PR tomainwithout changing its product head, then regenerate every exact-head check and review. No predecessor-base result transfers after retargeting.Documentation
docs/doctoring/hourly-pr-maintenance.mdrecords cadence, source-of-truth ownership, credential/model boundaries, fail-closed behavior, rollback, and APA 7th references to the GitHub Actions and repository-dispatch contracts.Verification
python3 -m pytest -q tests/test_hourly_pr_maintenance_workflow.py— 4 passedbash -npython3 -m compileall -q tests/test_hourly_pr_maintenance_workflow.pygit diff --checkThe former
main-based exact head had Tests, Security, Security Scan, and Fuzz success. Its SAST failure was the five inherited findings listed above and is diagnostic only after this base change.Activation boundary
GitHub scheduled workflows execute from the default branch. This hourly loop is therefore not considered active until #569 and this PR are merged in dependency order and the required dispatch credential exists. A non-204 central dispatch response fails closed and remains visible in Actions.