Show & Tell: Phase 16.3 — ImprovementPlanner architecture (rule table, priority formula, safety gate) #424
web3guru888
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Phase 16.3 —
ImprovementPlanner: turning ranked weaknesses into actionable improvement plansIssue: #423 | Depends on: #420 (WeaknessDetector) | Feeds: Phase 16.4 SelfOptimiser
The gap
ImprovementPlannerfillsWeaknessDetectortells you what is degraded and how badly.ImprovementPlannertells you what to do about it. It is the bridge between diagnostic signal and executable change.ActionKind— the six interventionsActionKindTUNE_THRESHOLDINCREASE_BUDGETREDUCE_LOADHOT_SWAP_MODULEFLAG_FOR_REVIEWNO_OPPriority formula
Example with severity=0.9, confidence=0.95 (urgency=0.855):
TUNE_THRESHOLDREDUCE_LOADINCREASE_BUDGETHOT_SWAP_MODULELow-cost actions float to the top — the planner prefers cheap fixes unless urgency is extreme.
Rule table: WeaknessKind to ActionKind
Safety gate
Before emitting any action,
RuleBasedPlanneroptionally callssafety_filter.is_safe(action). If the filter rejects it,_downgrade()replaces the action kind withFLAG_FOR_REVIEW:This keeps the safety gate non-lossy: the operator still sees the intent, just escalated rather than auto-executed.
ImprovementActionfrozen dataclassparametersuses a tuple of 2-tuples (not a dict) so the dataclass remains hashable. Convert withdict(action.parameters)when reading.Prometheus metrics + PromQL
Open questions for contributors
_RULESbe static, or learned from pastSelfOptimiseroutcomes?ImprovementPlannerconsultVersionManager(Phase 15.4 —VersionManager: module version lineage, rollback targeting & compatibility assessment #410) to check whether a rollback is cheaper than a hot-swap?Beta Was this translation helpful? Give feedback.
All reactions