Repository navigation
Named conditions over Muru's own figures, and overlays that follow one - #696
Merged
Merged
Conversation
…he daemon, with firing and resolved events (#123) `[condition.NAME]` in the daemon's file or an applied file has `when`, `for`, `clear_when`, `clear_for` and `min_requests`, written in the PromQL-shaped subset ADR 0061 records: signals named after Muru's metrics and the daemon's own state, label matchers, windows of up to an hour and numbers in base units. Each second the daemon reads what each term needs from the edge's samples, keeps those readings for the longest window, and evaluates every condition with three-valued logic: too few requests or no data leave a term unknown, and an unknown condition holds its state. `condition.firing` and `condition.resolved` events carry each term's figure, and `ListConditions`, `muructl condition list` and `show`, and the MCP `conditions` tool give the states. `latency` takes no `client_class` until #695.
…d once it resolves, with guards against flapping (#689) `trigger = { condition = 'NAME' }` makes the overlay reconciliation follow the condition's state each second through `overlays::condition_step`: idle, it activates while the condition fires; active by its condition, it ends once the condition has resolved and `min_active` has passed, held through `cooldown`; unknown holds it as it is. `max_per_hour` caps activations, counted in the store's `overlay_activations`, and a held or capped activation is one `overlay.skipped` event while the condition keeps firing. `latch` keeps it until ended by hand, `preconditions.probe` asks the `release_ready` release a path through the edge, and apply refuses an unknown condition and warns about an overlay that starves its own condition. `overlay list` and `preview` show the condition's state and figures.
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.
The second group of Next issues, one commit each.
[condition.NAME]in the daemon's file or an applied file, withwhen,for,clear_when,clear_forandmin_requests. It is written in the PromQL-shaped subset ADR 0061 records: signals named after Muru's metrics plus the autoscaler's and the budget's state, label matchers, windows of up to an hour, numbers in base units.condition.firingorcondition.resolvedevent.muructl condition listandshow,ListConditionsand the MCPconditionstool give the states.trigger = { condition = 'NAME' }on an overlay. It is active while the condition fires, ends once it resolves andmin_activehas passed, and is held as it is while the condition is unknown.cooldown, andmax_per_hour(counted in the store).latchkeeps it active until ended by hand.preconditions.probeasks therelease_readyrelease a path through the edge.overlay listandpreviewshow the condition's state and figures.Filed along the way: #695, durations by client class, so
latencycan takeclient_class.Checks:
just lint,just docs, the Rust tests of muru-controller, muructl and muru-config, andtests/pythonwithmuru._nativehidden.Closes #123
Closes #689
🤖 Generated with Claude Code