Skip to content

feat(gos): retire CMS local point-query under GOS mode (cms_point) - #531

Merged
zzylol merged 1 commit into
mainfrom
split/pr-retire-cms-point-query
Jul 17, 2026
Merged

zzylol merged 1 commit into
mainfrom
split/pr-retire-cms-point-query

Conversation

@zzylol

@zzylol zzylol commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Part of the GOS per-family stack (base: reattach #518 split/pr-518-reattach-sampled-gos / #530).

CMS's threshold.functional=cms_point readout (CMSWrapper.EstimateCount, a min-across-rows estimate) is poisoned by any single row a GOS-active cell reset in place at insert time (design-gos-unified-edge-telemetry.md §11). Reject the combination at boot (config_validate.go) and gate it at runtime (precompute.rewireMonitorHooks) for live control-plane config pushes that bypass YAML validation.

Scoped to CMS only: plain CountSketch serves the same functional (FunctionalCMSPoint) via a median across signed rows, which tolerates a reset row fine, so it is left unaffected by GOS mode. A CMS series not running in GOS mode is likewise unaffected — cells never reset mid-window in fixed mode.

Test plan

  • TestConfigValidate_CMSPointRetiredUnderGOS: boot-time rejection of CMS+GOS+cms_point; acceptance of CMS+GOS w/o cms_point monitor, CMS+cms_point w/o GOS, and CountSketch+GOS+cms_point.
  • TestMonitor_CMSPoint_RetiredUnderGOS / TestMonitor_CMSPoint_FixedModeStillWorks / TestMonitor_CMSPoint_CountSketchUnaffectedByGOS: runtime gate in rewireMonitorHooks, covering the control-plane-push path that bypasses YAML validation.
  • build/vet/test clean in both asap-precompute-go and the processor.

🤖 Generated with Claude Code

CMS's threshold.functional=cms_point readout (CMSWrapper.EstimateCount, a
min-across-rows estimate) is poisoned by any single row a GOS-active cell
reset in place at insert time (design-gos-unified-edge-telemetry.md §11).
Reject the combination at boot (config_validate.go) and gate it at runtime
(precompute.rewireMonitorHooks) for live control-plane config pushes that
bypass YAML validation.

Scoped to CMS only: plain CountSketch serves the same functional via a
median across signed rows, which tolerates a reset row fine, so it is left
unaffected by GOS mode. A CMS series not running in GOS mode is likewise
unaffected — cells never reset mid-window in fixed mode.

Part of the GOS per-family stack (base: reattach #518 /
split/pr-518-reattach-sampled-gos).

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@zzylol
zzylol changed the base branch from split/pr-518-reattach-sampled-gos to main July 17, 2026 15:48
@zzylol
zzylol merged commit bde5d9a into main Jul 17, 2026
@zzylol
zzylol deleted the split/pr-retire-cms-point-query branch July 17, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant