Repository navigation
Conversation
A window whose 5xx rate reaches a severe rate (default 0.5) with enough samples and above the baseline now rolls back immediately instead of advancing the split for a second breaching window. Borderline single breaches keep the consecutive-window rule. Refs #89 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A1xMi7Nz9a6hESQxPZs8iQ Signed-off-by: mrgoonie <mrgoonie@users.noreply.github.com>
|
CI Generated by Claude Code |
|
The re-run of Generated by Claude Code |
What and why
Refs #89. A canary revision that failed every request was judged
continueat the 5% window (one breaching window of the twoConsecutiveneeds) and advanced to 25%, so customers saw ~120 server errors where 20 were enough evidence.This adds
MonitorConfig.SevereErrorRate(default0.5, a starting value to calibrate): a window that has at leastMinSamplesresponses, breaches (aboveErrorRateThresholdand more thanMinDeltaover the baseline) and whose 5xx rate reaches the severe rate rolls back at once. A borderline single breach still waits for the next window. Validation refuses a severe rate at or below the threshold, above 1, or NaN.This is a governance change (REVIEW.md: rollback rules; ADR 0002: trusted control surface). It needs the Owner's approval of the rule and the 0.5 value before merge. Opened as a draft proposal; the brief §6.2 (both languages), REVIEW.md wording and an ADR amendment are left for the Owner to decide rather than self-applied, per AGENTS.md ("do not edit … to make your own work pass; propose a PR").
How it was tested
monitor_rule_test.go— severe window rolls back at once (100% and exactly 50%); borderline breaches (2.5%, 49.9%) still continue; a severe rate underMinSamplesstayslow_traffic; a severe rate no higher than the baseline is no breach.config_rules_test.go— severe rate at the threshold or above 1 is refused.auto_rollback_restores_lkg_test.goTestACanaryFailingEveryRequestIsRolledBackAtTheFirstStep— restored to the LKG after one window with one promotion (the split never reached 25%). Red before the change.go build ./... && go test ./... -race && golangci-lint run— all green on the pre-review head (lint 0 issues); package suite re-run green at the pushed heade6f3e78(go test -race -count=1 ./internal/supervisor/release/, lint 0 issues).make e2enot run (no Docker here).Checklist
go test ./... -race, lint pass locally (see above;make checke2e/smoke vetting not run).Governance
make e2e(needs Docker).Quyết định của routine
blocked+needs-decision.SevereErrorRateis not tunable from the manifest (same as the other monitor fields today). Open questions for the Owner: is 0.5 right (vs. 0.25)? Should the immediate path need a larger sample floor thanMinSamples?Generated by Claude Code