feat(alertmanager): ship durable paperclip_claude_k8s default owner route (BLO-9574) - #322
Merged
Merged
Conversation
…oute (BLO-9574) Adds DEFAULT_OWNER_MAP to constants.ts with class.paperclip_claude_k8s -> support@blockcast.net so ClaudeK8sConcurrentRunBlockedRate alerts are routed to a real owner on every fresh deploy / reinstall. Worker merges DEFAULT_OWNER_MAP with instance runtime config (operator overrides win) so existing operator-managed routes are preserved. README documents the bundled default and the merge semantics. Regression test in owner-resolver.test.ts locks the default route in. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
13 tasks
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.
Summary
Ships a durable plugin-side default owner route for
class.paperclip_claude_k8s -> support@blockcast.netsoClaudeK8sConcurrentRunBlockedRatealerts are routed to a real owner on every fresh deploy or plugin reinstall — not only when an operator has applied the runtime config write.Scope:
packages/plugins/paperclip-plugin-alertmanageronly —constants.ts,worker.ts, README, owner-resolver test.Override semantics preserved:
mergeOwnerMap()inworker.tsmergesDEFAULT_OWNER_MAPwith the instance runtime config; operator-supplied routes for the same keys win, so existing runtime-config writes are not clobbered.Evidence trail:
Changes
constants.ts: addsDEFAULT_OWNER_MAP: OwnerMapexport withclass.paperclip_claude_k8s = "support@blockcast.net"; setsDEFAULT_CONFIG.ownerMap = DEFAULT_OWNER_MAP.worker.ts: addsmergeOwnerMap()that deep-mergesDEFAULT_OWNER_MAPwith instance runtime config; applies merged map inapplyConfig().README.md: documents the bundled default and merge semantics under the ownerMap example block.owner-resolver.test.ts: adds regression test verifying the default route resolvesClaudeK8sConcurrentRunBlockedRatetosupport@blockcast.netviaDEFAULT_OWNER_MAP.Test plan
pnpm --filter paperclip-plugin-alertmanager test— 71 tests pass (3 files)pnpm --filter paperclip-plugin-alertmanager typecheck— cleanpnpm --filter paperclip-plugin-alertmanager build— clean🤖 Generated with Claude Code