π fix(governor): expose ACMM schedule changes - #4718
Merged
clubanderson merged 1 commit intoAug 26, 2026
Conversation
Contributor
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Report before/after governor interval and cadence mutations from ACMM pack applies in the API, dashboard, and logs. Fixes #4711 Signed-off-by: Danathar <doug.baggett@gmail.com>
Danathar
force-pushed
the
fix/4711-pack-eval-interval-visibility
branch
from
August 25, 2026 10:41
7db441c to
0de8f05
Compare
Contributor
Author
|
/cc @clubanderson |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Applying an ACMM level can change the governor's evaluation interval and multiple per-agent cadences. Before this PR, those scheduling changes were applied and persisted without being surfaced in the API response, dashboard, or logs. An operator could therefore select a level successfully and only discover the new schedule laterβpotentially after a governor restart activates a different ticker.
This PR makes those mutations explicit. It reports exact before/after values from both pack-apply APIs, shows them immediately in the dashboard, and emits a structured warning for operators diagnosing the change later.
Fixes #4711.
Problem
ACMM pack application reconciles more than the agent roster. On a first apply, expansion, or forced governor apply, it can also replace:
governor.eval_interval_ssurge / scanner: pause -> 5mThe existing response described created, updated, paused, resumed, skipped, and tombstoned agents, but omitted governor scheduling changes. That made an important operational side effect invisible at the moment the operator caused it.
The distinction matters because the configuration is persisted immediately while a running governor can retain its current ticker until restart. Without before/after reporting, an apparently routine level change could produce a surprising schedule later.
What changed
API result
ApplyPackResultnow includes an optionalgovernor_changesobject containing:fromandtovalues;mode,agent,from, andtovalues.The field is omitted from the internal result when nothing changed. Both operator-facing endpoints return it:
POST /api/packs/{level}/applyOnly real mutations are reported. Reapplying an already-matching value does not create noise, unknown old cadence values are represented as unset, and cadence entries are sorted by mode and agent so API responses and logs remain stable.
Dashboard feedback
Both ACMM apply flows now:
This gives the operator the information at the point of action instead of requiring a later config diff.
Operational logging
When scheduling changes occur, the server emits a structured
WARNevent namedACMM pack changed governor settings. The log includes the hive, level, pack name, interval transition, and cadence transitions, providing an audit trail without logging routine no-op applies.Behaviour and scope
This is an observability fix, not a change to ACMM reconciliation policy:
Verification
env GOCACHE=/tmp/hive-go-build-4711 CC=/usr/bin/gcc CXX=/usr/bin/g++ go test ./pkg/dashboard -count=1governor_changeswith the original value.Files of interest
src/pkg/dashboard/api_packs.goβ captures, sorts, returns, and logs changes.src/pkg/dashboard/static/index.htmlβ formats and displays the changes.src/pkg/dashboard/api_packs_governor_changes_test.goβ locks the API and log behaviour.CHANGELOG.mdβ records the operator-visible fix.β hive: backend=codex