feat(private-server): agent guidance + published flag for MCP incidents#278
Merged
Conversation
…dents Give MCP clients the context to interpret incidents correctly: - Each incident now carries published (its Slack open was actually delivered: it outlived the group's grace window or escalated), open_duration_secs, and find_incidents reports published_count. published is derived from the slack_outbox (SlackOutbox::delivered_open_ids), the authoritative 'surfaced' signal — not a time approximation. - Expanded the find_incidents tool description and the server instructions to explain that event_count is raw churn (not duration/severity) and that summaries should count published incidents, not raw flapping rows. Spec updated. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
🤖 Gives MCP agents the context to interpret incidents correctly — they were over-counting raw flapping rows as real incidents.
Stacked on #277 (base will retarget to main once that merges).
What an agent gets
now - opened_at >= 10minapproximation (the grace is per-group and defaults to 3 min, and a time guess would misclassify cancelled/failed deliveries).The help text
This is the mechanism for "give agents context": MCP clients read the server instructions on connect and the per-tool descriptions, so the guidance travels with the tools.
Spec updated; MCP tests extended to cover published / published_count.