Repository navigation
#58 Drift alerts carry metadata.fault; an ok sends none - #59
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ends none
post_checkin takes an optional metadata, absent from the body unless given;
Verdict.metadata() is {"fault": kind} on an alert, None otherwise. Liveness's
call is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… an open fault Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 21, 2026
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.
Refs #58 (deploy and live checks follow the merge).
Every drift
alertnow checks in with"metadata": {"fault": <kind>}; anoksends nometadatakey at all. This is the sibling contract (co-archiver-driftstatus#32,co-broker-driftstatus#51 / broker#110). co-status groups a run of alerts into one fault bymetadata.fault(status#28). So a change of kind inside one fault (lag→off_main/unstamped), or a--test-alertsent during an open fault, now reports at once instead of waiting up to ~23.5 h for the daily reminder.checkin.post_checkin: optionalmetadata=None. The key goes into the body only when it is given (not when it isNoneor{}).drift.Verdict.metadata():{"fault": kind}on an alert,Noneotherwise. The value is the kind token only, neverbody. Modelled on broker's.__main__._driftpasses it. Liveness's call is unchanged, and its body equality test still holds.checkin.pydocstring; DEPLOYMENT.md § The drift check (the fault bullet, and the test alert during an open fault).docs/plans/2026-10-21-58-drift-fault.md.Tests (red first,
f1a75ac): every alerting kind's fault is its kind;ok/silentgiveNone; the command'slagand--test-alertcheck-ins carry the fault; anokcheck-in has nometadatakey;post_checkinwith no or empty metadata sends exactly today's body. Full suite: 688 passed, 14 skipped (environmental: secrets absent or unreadable in a worktree).🤖 Generated with Claude Code