Skip to content

fix(cortex-health): accept pre-7.40.4 reviewer dispatch summaries - #1933

Open
jbmml wants to merge 1 commit into
danielmiessler:mainfrom
jbmml:fix/cortexhealth-accept-pre-7404-summary
Open

fix(cortex-health): accept pre-7.40.4 reviewer dispatch summaries#1933
jbmml wants to merge 1 commit into
danielmiessler:mainfrom
jbmml:fix/cortexhealth-accept-pre-7404-summary

Conversation

@jbmml

@jbmml jbmml commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Fixes #1930.

validDispatchSummary required skipped_guard/skips on every success row, but those keys were added in 7.40.4. The health check reads only the latest reviewer-runs.jsonl line — right after an upgrade that's a pre-7.40.4 success lacking both keys — so a run that succeeded is reported CRITICAL until the next review fires.

Treats a missing skip pair as zero guard refusals (both-or-neither; one field without the other still rejects). All existing fail-closed cases unchanged. Adds a self-contained smoke test (bun …/CortexHealth.ts → 6/0) and updates the ObservabilitySystem doc line. No writer change, no log rewrite.

validDispatchSummary required skipped_guard/skips on every success row, but
those keys were added in 7.40.4. The health check reads only the latest
reviewer-runs.jsonl line, which right after an upgrade is a pre-7.40.4 success
lacking both keys — so a run that succeeded is reported CRITICAL until the next
review fires. Treat a missing skip pair as zero guard refusals (both-or-neither;
one without the other still rejects). Fail-closed cases unchanged. Adds a smoke
test and updates the ObservabilitySystem doc. Fixes danielmiessler#1930.
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.

7.40.4 CortexHealth marks a successful pre-upgrade reviewer run CRITICAL (skipped_guard/skips required)

1 participant