Repository navigation
✨ Governor: opt-in advisory report in every repo (default off) - #18583
Conversation
Add governor.advisory.per_repo (Settings > Governor Config > Advisory, "Advisory report in every repo", owner-only, audited; env default HIVE_ADVISORY_PER_REPO). Off keeps the #18568 rule: one report in the primary repo. On, each other monitored repo gets exactly one report, found by title plus the hive/advisory label or a hive marker in any state, so restarts never re-create it. A report a person closed is left closed and no longer posted to. Issues-disabled or unwritable repos are skipped with one warning and an hourly recheck. Switching off stops updates without closing anything. Refs #18448, #18568 Signed-off-by: Andy Anderson <andy@clubanderson.com>
|
@nate-double-u FYI, for #18448: a hive keeps one Hive Advisory Report in its primary repo by default; this adds an owner setting (Settings, Governor) to also get one in every repo. |
|
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Open PR overlap checkBase branch: Conflicts are checked with every PR merged onto the current tip of
|
Mutation testing18 mutant(s) in changed files are not reached by any test (NOT COVERED). A maintainer may apply the
Verdict: |
|
Hive status — updated in place; edits do not notify. Full history is in the Activity Monitor. @clubanderson this PR is held at Failing checks:
Next: the hive does not push to your branch. Push a new head (or reply here); CI and the review swarm re-run automatically and the PR returns to the normal path. |
…ndex Signed-off-by: Andy Anderson <andy@clubanderson.com>
|
New changes are detected. LGTM label has been removed. |
Summary
Owner decision on #18448: per-repo advisory reports become an opt-in setting. Default off keeps the #18568 rule (one Hive Advisory Report, in
project.primary_repo, covering all repos).governor.advisory.per_repo(bool, defaultfalse).HIVE_ADVISORY_PER_REPOsets the default when the key is absent; an explicit value or a Settings change always wins.per_repo=false->true).EnsureSecondaryAdvisoryIssue:hive/advisorylabel or the new<!-- hive:advisory-report -->body marker, in any state, before creating, so a restart never re-creates it; a lookup failure is an error, never "none";AdvisoryReportClosedError: never reopened, never replaced, and no longer posted to (also detected mid-run by an hourly open check before posting). The 🐛 certus: advisory digest stale since 2026-08-13 (not refreshing) #4167 reopen stays primary-only;advisoryPerRepoSecondaryRepos(cfg)(empty unless opted in), and the wiring-count test allows exactly the one extra opt-in wiring.advisory.md(new "One report, or one per repo" section),env-vars.md,operator-reference,hive.yaml.example,dashboard/openapi.json. changelog.d fragment included.Tests
Refs #18448, follows #18568 (#18570).
🤖 Generated with Claude Code