:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(visual-review): tighten the weekly debt digest (#100072)
Julian Beza187682d2dd3
diff --git a/products/visual_review/README.md b/products/visual_review/README.mdindex bd09496799de..ea58ec701ba6 100644--- a/products/visual_review/README.md+++ b/products/visual_review/README.md@@ -50,9 +50,12 @@ The same task runs twice a day, and only the Monday morning run posts.The other runs read the Storybook story index into the cache, because the build artifact it comes from is short lived and the Monday run would otherwise have nothing to attribute against.Each message is Block Kit.-The lead names the team, the week, and the two counts, with buttons to the repository's flakiness overview and its snapshots.+The lead names the team and the week, and counts each condition that has items, with buttons to the repository's flakiness overview and its snapshots.Under it, one thread reply per condition that has items: a line saying what to do about that condition, then one section per item with the single action that resolves it on a button beside it.-The last reply says when the next digest comes and how to opt out.+Theme variants of one story list as one entry when the reader would see the same facts for each.+A merged expiring quarantine links to the flakiness page searched to that story, and a merged unowned file keeps its file button.+Pile-ups never merge, because a baseline resets one snapshot at a time.+The last reply says when the next digest comes.A team that owns nothing gets no message at all.Two conditions, and nothing else:diff --git a/products/visual_review/backend/logic/debt_digest.py b/products/visual_review/backend/logic/debt_digest.pyindex 3b009c6955bd..fbc89ea76b49 100644--- a/products/visual_review/backend/logic/debt_digest.py+++ b/products/visual_review/backend/logic/debt_digest.py@@ -75,6 +75,7 @@ from posthog.team_notifications.slack import (post_with_join,section_block,)+from posthog.utils import human_list, pluralizefrom products.engineering_analytics.backend.facade.api import resolve_path_ownersfrom products.engineering_analytics.backend.facade.contracts import UNOWNED_TEAM, PathOwnership@@ -122,9 +123,8 @@ _DIGEST_EXPIRY_WINDOW_DAYS = FLAKINESS_EXPIRY_SOON_DAYS + 1# index. Late enough that a child task held in a queue still counts as the morning run it came from._POSTS_BEFORE_HOUR_UTC = 12-_LEAD_BODY = (- "Each item and its action is in the thread. Quarantines that lapse start failing the gate again on the next run."-)+_LEAD_BODY = "Each item and its action is in the thread."+_LEAD_LAPSE_NOTE = "Quarantines that lapse start failing the gate again on the next run."_QUARANTINE_HEADING = ("*Quarantines expiring soon*\n""Fix the story and let the quarantine lapse, or extend it with a new reason. "@@ -293,6 +293,15 @@ def _repo_flakiness_url(repo: Repo) -> str:return f"{settings.SITE_URL}/project/{repo.team_id}/visual_review/repos/{repo.id}/flakiness"+def _quarantined_story_url(repo: Repo, story: str) -> str:+ """The flakiness page narrowed to the quarantined snapshots of one story, in every theme.++ Falls back to the whole page when the search makes the URL too long for a Slack button.+ """+ url = f"{_repo_flakiness_url(repo)}#preset=quarantined&q={quote(story, safe='')}"+ return url if len(url) <= MAX_BUTTON_URL_CHARS else _repo_flakiness_url(repo)++def _snapshot_button(repo: Repo, item: DebtItem, text: str) -> SlackButton:"""The item's button, pointing at the repo's list when the snapshot URL is too long for Slack.@@ -584,54 +593,123 @@ def _closing_parts(text: str) -> list[MessagePart]:return [MessagePart(block=divider_block(), line=""), _context_part(text)]-def _item_text(item: DebtItem, extra: str = "") -> str:- """One item's section: what it is, then its facts, then whatever its group adds under them."""+@frozen+class ListedEntry:+ """What one section of a reply lists: one snapshot, or the theme variants of one story that share every fact."""++ items: list[DebtItem]+ # The identifier the section shows. Merged variants show it without the theme.+ identifier: str+ # Empty for a single snapshot.+ themes: list[str]+++def _single_entry(item: DebtItem) -> ListedEntry:+ return ListedEntry(items=[item], identifier=item.identifier, themes=[])+++def _merge_theme_variants(items: Sequence[DebtItem]) -> list[ListedEntry]:+ """The items as entries, with the theme variants of one story merged into its first entry.++ A story snapshots once per theme, so one unreliable story usually lists twice. Variants merge+ only when the reader sees the same facts for each, so the merge hides nothing.+ """+ groups: list[list[DebtItem]] = []+ open_groups: dict[tuple[str, str, str, Attribution], list[DebtItem]] = {}+ for item in items:+ split = story_index.split_theme(item.identifier)+ if not split.theme:+ groups.append([item])+ continue+ key = (item.run_type, split.rest, item.facts, item.attribution)+ group = open_groups.get(key)+ if group is None or any(other.identifier == item.identifier for other in group):+ group = []+ open_groups[key] = group+ groups.append(group)+ group.append(item)++ entries: list[ListedEntry] = []+ for group in groups:+ if len(group) == 1:+ entries.append(_single_entry(group[0]))+ continue+ splits = [story_index.split_theme(item.identifier) for item in group]+ entries.append(ListedEntry(items=group, identifier=splits[0].rest, themes=[split.theme for split in splits]))+ return entries+++def _item_text(entry: ListedEntry, extra: str = "") -> str:+ """One entry's section: what it is, then its facts, then whatever its group adds under them."""+ first = entry.items[0]+ themes = f" · {human_list(entry.themes)}" if entry.themes else ""title = (- f"*{escape_slack_mrkdwn(clip_text(item.identifier, _MAX_IDENTIFIER_CHARS))}* "- f"{escape_slack_mrkdwn(item.run_type)}"+ f"*{escape_slack_mrkdwn(clip_text(entry.identifier, _MAX_IDENTIFIER_CHARS))}* "+ f"{escape_slack_mrkdwn(first.run_type)}{themes}"+ )+ return clip_text("\n".join(part for part in (title, first.facts, extra) if part), MAX_SECTION_CHARS)+++def _item_part(repo: Repo, item: DebtItem, button_text: str, line: str | None = None) -> MessagePart:+ return MessagePart(+ block=section_block(_item_text(_single_entry(item)), _snapshot_button(repo, item, button_text)),+ line=item.line if line is None else line,)- return clip_text("\n".join(part for part in (title, item.facts, extra) if part), MAX_SECTION_CHARS)-def _item_part(repo: Repo, item: DebtItem, button_text: str) -> MessagePart:- return MessagePart(block=section_block(_item_text(item), _snapshot_button(repo, item, button_text)), line=item.line)+def _quarantine_part(repo: Repo, entry: ListedEntry) -> MessagePart:+ """One expiring quarantine, or the theme variants of one story that expire together.++ A merged entry links to the flakiness page, because the snapshot page shows one theme and each+ variant needs the same extension.+ """+ if not entry.themes:+ return _item_part(repo, entry.items[0], "Extend or fix")+ # The page searches identifiers by substring, and a webkit identifier puts the theme before the+ # browser suffix, so only the bare story id matches every variant.+ story_id = story_index.split_theme(entry.items[0].identifier).story_id+ button = SlackButton(text="Extend or fix", url=_quarantined_story_url(repo, story_id))+ return MessagePart(+ block=section_block(_item_text(entry), button), line="\n".join(item.line for item in entry.items)+ )def _footer_parts(now: datetime) -> list[MessagePart]:- """What closes the last reply: when the next one comes, and how to stop getting them."""- return _closing_parts(- f"Next digest Monday, {_month_day(_monday_of(now) + timedelta(days=7))}. "- "Opt out with `notifications: {visual_review: false}` under your team in owners.yaml."- )+ """What closes the last reply: when the next one comes."""+ return _closing_parts(f"Next digest Monday, {_month_day(_monday_of(now) + timedelta(days=7))}.")-def lead_text(repo: Repo, digest: TeamDigest) -> str:- """The lead as one sentence, for the notification Slack shows before the blocks render."""+def _count_phrases(digest: TeamDigest, emphasis: str = "") -> list[str]:+ """How much of each condition the team carries. A condition with no items is left out, because a+ zero count reads as one more thing to look at."""+ phrases: list[str] = []expiring = len(digest.expiring_quarantines)+ if expiring:+ phrases.append(+ f"{emphasis}{pluralize(expiring, 'quarantine')}{emphasis} expire{'s' if expiring == 1 else ''} soon"+ )pileups = len(digest.variant_pileups)+ if pileups:+ phrases.append(f"{emphasis}{pluralize(pileups, 'snapshot')}{emphasis} with piled-up variants")+ return phrases+++def lead_text(repo: Repo, digest: TeamDigest) -> str:+ """The lead as one sentence, for the notification Slack shows before the blocks render."""return clip_text(- f"Visual review debt for {digest.team_slug} in {repo.repo_full_name}: "- f"{expiring} quarantine{'' if expiring == 1 else 's'} expire{'s' if expiring == 1 else ''} soon, "- f"{pileups} snapshot{'' if pileups == 1 else 's'} with piled-up variants.",+ f"Visual review debt for {digest.team_slug} in {repo.repo_full_name}: {', '.join(_count_phrases(digest))}.",MAX_SECTION_CHARS,)def lead_message(repo: Repo, digest: TeamDigest, now: datetime) -> SlackMessage:- """What lands in the channel: the team, the week, the two counts, and the pages behind them."""- expiring = len(digest.expiring_quarantines)- pileups = len(digest.variant_pileups)+ """What lands in the channel: the team, the week, the counts, and the pages behind them."""return SlackMessage(blocks=[header_block(f"Visual review debt for {digest.team_slug}"),context_block(f"{repo.repo_full_name} · week of {_month_day(_monday_of(now))} · weekly digest"),- fields_block(- [- f"*{expiring} quarantine{'' if expiring == 1 else 's'}* expire{'s' if expiring == 1 else ''} soon",- f"*{pileups} snapshot{'' if pileups == 1 else 's'}* with piled-up variants",- ]- ),- section_block(_LEAD_BODY),+ fields_block(_count_phrases(digest, emphasis="*")),+ section_block(f"{_LEAD_BODY} {_LEAD_LAPSE_NOTE}" if digest.expiring_quarantines else _LEAD_BODY),actions_block([SlackButton(text="Open flakiness overview", url=_repo_flakiness_url(repo), primary=True),@@ -648,7 +726,7 @@ def thread_messages(repo: Repo, digest: TeamDigest, now: datetime) -> list[Slackgroups = [ReplyGroup(heading=_heading_part(_QUARANTINE_HEADING),- items=[_item_part(repo, item, "Extend or fix") for item in digest.expiring_quarantines],+ items=[_quarantine_part(repo, entry) for entry in _merge_theme_variants(digest.expiring_quarantines)],),ReplyGroup(heading=_heading_part(_PILEUP_HEADING),@@ -679,25 +757,23 @@ def _file_button(repo: Repo, item: DebtItem) -> SlackButton | None:return SlackButton(text="Open file", url=url) if len(url) <= MAX_BUTTON_URL_CHARS else None-def _placed_part(repo: Repo, item: DebtItem) -> MessagePart:+def _placed_part(repo: Repo, entry: ListedEntry) -> MessagePart:+ """One unowned story file. Theme variants share the file, so one button covers all of them."""+ first = entry.items[0]# The path stays in the text as well as behind the button, because it is what somebody types# into owners.yaml.- text = _item_text(item, f"`{escape_slack_mrkdwn(item.attribution.source_path)}`")- return MessagePart(block=section_block(text, _file_button(repo, item)), line=_triage_line(item))+ text = _item_text(entry, f"`{escape_slack_mrkdwn(first.attribution.source_path)}`")+ return MessagePart(+ block=section_block(text, _file_button(repo, first)), line="\n".join(_triage_line(item) for item in entry.items)+ )def _triage_group(repo: Repo, group: TriageGroup) -> ReplyGroup:"""One reason for having no owner, and the items behind it."""if group.kind == AttributionKind.PLACED:- items = [_placed_part(repo, item) for item in group.items]+ items = [_placed_part(repo, entry) for entry in _merge_theme_variants(group.items)]else:- items = [- MessagePart(- block=section_block(_item_text(item), _snapshot_button(repo, item, "Open snapshot")),- line=_triage_line(item),- )- for item in group.items- ]+ items = [_item_part(repo, item, "Open snapshot", line=_triage_line(item)) for item in group.items]return ReplyGroup(heading=_heading_part(_TRIAGE_HEADINGS[group.kind]), items=items)diff --git a/products/visual_review/backend/logic/story_index.py b/products/visual_review/backend/logic/story_index.pyindex bbd247b75c0c..fd09a2bca2b7 100644--- a/products/visual_review/backend/logic/story_index.py+++ b/products/visual_review/backend/logic/story_index.py@@ -61,20 +61,42 @@ class StoryIndex:path_by_story_id: Mapping[str, str]-def _strip_theme_and_browser(identifier: str) -> str | None:- """The story id an identifier was built from, before any width suffix is considered.+@frozen+class ThemeSplit:+ """An identifier taken apart around its theme. The theme is empty when the identifier carries none."""- None when the identifier carries no theme, which means the test runner did not write it.- """+ story_id: str+ theme: str+ browser_suffix: str++ @property+ def rest(self) -> str:+ """Everything but the theme, so a chromium and a webkit snapshot of one story never share it."""+ return f"{self.story_id}{self.browser_suffix}"+++def split_theme(identifier: str) -> ThemeSplit:+ """Take an identifier apart into the story id, the theme and the browser suffix."""rest = identifier+ browser_suffix = ""for browser in _SUFFIXED_BROWSERS:if rest.endswith(f"--{browser}"):- rest = rest.removesuffix(f"--{browser}")+ browser_suffix = f"--{browser}"+ rest = rest.removesuffix(browser_suffix)breakfor theme in _THEMES:if rest.endswith(f"--{theme}"):- return rest.removesuffix(f"--{theme}")- return None+ return ThemeSplit(story_id=rest.removesuffix(f"--{theme}"), theme=theme, browser_suffix=browser_suffix)+ return ThemeSplit(story_id=identifier, theme="", browser_suffix="")+++def _strip_theme_and_browser(identifier: str) -> str | None:+ """The story id an identifier was built from, before any width suffix is considered.++ None when the identifier carries no theme, which means the test runner did not write it.+ """+ split = split_theme(identifier)+ return split.story_id if split.theme else Nonedef story_path(index: StoryIndex, identifier: str) -> str | None:diff --git a/products/visual_review/backend/tests/logic/test_debt_digest.py b/products/visual_review/backend/tests/logic/test_debt_digest.pyindex ede6ccd0711a..0686ed7c9194 100644--- a/products/visual_review/backend/tests/logic/test_debt_digest.py+++ b/products/visual_review/backend/tests/logic/test_debt_digest.py@@ -103,21 +103,22 @@ def _all_buttons(messages: list[debt_digest.SlackMessage]) -> list[dict]:class TestLead:@pytest.mark.parametrize(- "expiring,pileups,fields",+ "expiring,pileups,fields,mentions_lapse",[- (1, 0, ["*1 quarantine* expires soon", "*0 snapshots* with piled-up variants"]),- (0, 2, ["*0 quarantines* expire soon", "*2 snapshots* with piled-up variants"]),- (3, 1, ["*3 quarantines* expire soon", "*1 snapshot* with piled-up variants"]),+ (1, 0, ["*1 quarantine* expires soon"], True),+ (0, 2, ["*2 snapshots* with piled-up variants"], False),+ (3, 1, ["*3 quarantines* expire soon", "*1 snapshot* with piled-up variants"], True),],)- def test_the_lead_names_the_team_and_counts_both_conditions(- self, expiring: int, pileups: int, fields: list[str]+ def test_the_lead_names_the_team_and_counts_only_the_conditions_it_has(+ self, expiring: int, pileups: int, fields: list[str], mentions_lapse: bool) -> None:message = debt_digest.lead_message(_repo(), _team_digest(expiring, pileups), _MONDAY)assert message.blocks[0]["type"] == "header"assert message.blocks[0]["text"]["text"] == "Visual review debt for team-devex"assert [field["text"] for field in message.blocks[2]["fields"]] == fields+ assert ("Quarantines that lapse" in message.blocks[3]["text"]["text"]) is mentions_lapseassert "week of Sep 14" in message.blocks[1]["elements"][0]["text"]def test_the_lead_links_to_the_two_pages_the_counts_come_from(self) -> None:@@ -176,8 +177,56 @@ class TestThreadReplies:assert messages[0].blocks[-1]["type"] == "section"assert messages[-1].blocks[-2]["type"] == "divider"- assert messages[-1].blocks[-1]["elements"][0]["text"].startswith("Next digest Monday, Sep 21.")- assert "notifications: {visual_review: false}" in messages[-1].text+ assert messages[-1].blocks[-1]["elements"][0]["text"] == "Next digest Monday, Sep 21."++ @pytest.mark.parametrize(+ "browser_suffix,dark_facts,titles,urls",+ [+ (+ "",+ "Expires *Wednesday*",+ [f"*{_STORY_ID}* storybook · light and dark"],+ [f"{settings.SITE_URL}/project/7/visual_review/repos/abc/flakiness#preset=quarantined&q={_STORY_ID}"],+ ),+ # A webkit identifier puts the theme before the browser suffix, so the search has to+ # drop both to match the two variants.+ (+ "--webkit",+ "Expires *Wednesday*",+ [f"*{_STORY_ID}--webkit* storybook · light and dark"],+ [f"{settings.SITE_URL}/project/7/visual_review/repos/abc/flakiness#preset=quarantined&q={_STORY_ID}"],+ ),+ (+ "",+ "Expires *Thursday*",+ [f"*{_STORY_ID}--light* storybook", f"*{_STORY_ID}--dark* storybook"],+ [+ f"{settings.SITE_URL}/project/7/visual_review/repos/abc/storybook/snapshots/{_STORY_ID}--light",+ f"{settings.SITE_URL}/project/7/visual_review/repos/abc/storybook/snapshots/{_STORY_ID}--dark",+ ],+ ),+ ],+ )+ def test_theme_variants_of_a_story_expiring_together_list_once(+ self, browser_suffix: str, dark_facts: str, titles: list[str], urls: list[str]+ ) -> None:+ light = _item(_PLACED, identifier=f"{_STORY_ID}--light{browser_suffix}", facts="Expires *Wednesday*")+ dark = _item(_PLACED, identifier=f"{_STORY_ID}--dark{browser_suffix}", facts=dark_facts)+ digest = debt_digest.TeamDigest(+ team_slug="team-devex",+ expiring_quarantines=[light, dark],+ variant_pileups=[+ _item(_PLACED, identifier=f"{_STORY_ID}--light{browser_suffix}"),+ _item(_PLACED, identifier=f"{_STORY_ID}--dark{browser_suffix}"),+ ],+ )++ quarantines, pileups = debt_digest.thread_messages(_repo(), digest, _MONDAY)++ assert [text.split("\n")[0] for text in _section_texts(quarantines)[1:]] == titles+ assert [button["url"] for button in _buttons(quarantines)] == urls+ # A baseline resets one snapshot at a time, so pile-up variants keep a button each.+ assert len(_buttons(pileups)) == 2def test_a_group_over_the_block_limit_splits_and_repeats_its_heading(self) -> None:items = [_item(_PLACED)] * (debt_digest._ITEMS_PER_MESSAGE + 1)@@ -205,7 +254,14 @@ class TestThreadReplies:class TestMaintainersMessage:def test_it_lists_each_unowned_reason_with_the_action_it_asks_for(self) -> None:digest = _maintainers_digest(- debt_digest.TriageGroup(kind=debt_digest.AttributionKind.PLACED, items=[_item(_PLACED)]),+ debt_digest.TriageGroup(+ kind=debt_digest.AttributionKind.PLACED,+ # Both themes of one story share the file, so they list once with one file button.+ items=[+ _item(_PLACED, identifier=f"{_STORY_ID}--light"),+ _item(_PLACED, identifier=f"{_STORY_ID}--dark"),+ ],+ ),debt_digest.TriageGroup(kind=debt_digest.AttributionKind.STORY_ABSENT,items=[_item(_STORY_ABSENT, identifier=_ABSENT_IDENTIFIER)],@@ -225,6 +281,7 @@ class TestMaintainersMessage:]# The path stays readable in the message, because it is what somebody types into owners.yaml.assert f"`{_SOURCE_PATH}`" in _section_texts(messages[0])[1]+ assert _section_texts(messages[0])[1].split("\n")[0] == f"*{_STORY_ID}* storybook · light and dark"@pytest.mark.parametrize("kinds", [(), (debt_digest.AttributionKind.UNAVAILABLE,)])def test_nothing_is_sent_when_no_item_asks_anybody_to_act(self, kinds: tuple) -> None:@@ -575,7 +632,7 @@ class TestCollectAndSend:# Preview prints the plain text behind every message, so a by-hand run reads without Slack.assert rendered[0].startswith("Visual review debt for team-devex in org/test-debt: ")assert "3 accepted variants of the current baseline" in rendered[0]- assert rendered[0].rstrip().endswith("under your team in owners.yaml.")+ assert rendered[0].rstrip().split("\n")[-1].startswith("Next digest Monday, ")def test_an_unreadable_owners_file_sends_nothing(self, repo, mocker):self._completed_run(repo, mocker)diff --git a/products/visual_review/mcp/tools.yaml b/products/visual_review/mcp/tools.yamlindex 73df95f606d6..296fad9b504a 100644--- a/products/visual_review/mcp/tools.yaml+++ b/products/visual_review/mcp/tools.yaml@@ -106,11 +106,11 @@ tools:Change one repo's settings. `enable_pr_comments` controls whether a run that finds visual changes posts apull request comment asking for a review. `debt_digest_enabled` controls whether the debt digest runs forthe repo, which posts expiring quarantines and piled-up variants to the Slack channels of the teams that own- the snapshots; it is off until somebody turns it on, and it runs Monday to Friday. `baseline_file_paths`- maps each run type to the file holding its committed baseline hashes, for example `{"storybook":- ".storybook/snapshots.yml"}`, and finalize reads and commits the path named there; a `default` key covers- every run type that has no entry of its own. Every field is optional, and a field you leave out keeps its- current value.+ the snapshots; it is off until somebody turns it on, and it posts every Monday morning.+ `baseline_file_paths` maps each run type to the file holding its committed baseline hashes, for example+ `{"storybook": ".storybook/snapshots.yml"}`, and finalize reads and commits the path named there; a+ `default` key covers every run type that has no entry of its own. Every field is optional, and a field you+ leave out keeps its current value.param_overrides:id:description: The repo's UUID, from `visual-review-repos-list`.diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex cab8eda312a0..c0e08e28986c 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -12349,7 +12349,7 @@"feature_flag": "visual-review"},"visual-review-repos-partial-update": {- "description": "Change one repo's settings. `enable_pr_comments` controls whether a run that finds visual changes posts a pull request comment asking for a review. `debt_digest_enabled` controls whether the debt digest runs for the repo, which posts expiring quarantines and piled-up variants to the Slack channels of the teams that own the snapshots; it is off until somebody turns it on, and it runs Monday to Friday. `baseline_file_paths` maps each run type to the file holding its committed baseline hashes, for example `{\"storybook\": \".storybook/snapshots.yml\"}`, and finalize reads and commits the path named there; a `default` key covers every run type that has no entry of its own. Every field is optional, and a field you leave out keeps its current value.",+ "description": "Change one repo's settings. `enable_pr_comments` controls whether a run that finds visual changes posts a pull request comment asking for a review. `debt_digest_enabled` controls whether the debt digest runs for the repo, which posts expiring quarantines and piled-up variants to the Slack channels of the teams that own the snapshots; it is off until somebody turns it on, and it posts every Monday morning. `baseline_file_paths` maps each run type to the file holding its committed baseline hashes, for example `{\"storybook\": \".storybook/snapshots.yml\"}`, and finalize reads and commits the path named there; a `default` key covers every run type that has no entry of its own. Every field is optional, and a field you leave out keeps its current value.","category": "Visual review","feature": "visual_review","summary": "Update visual review repo settings",diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex bb4b3fbbb9ad..929d12f0a871 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -12994,7 +12994,7 @@"feature_flag": "visual-review"},"visual-review-repos-partial-update": {- "description": "Change one repo's settings. `enable_pr_comments` controls whether a run that finds visual changes posts a pull request comment asking for a review. `debt_digest_enabled` controls whether the debt digest runs for the repo, which posts expiring quarantines and piled-up variants to the Slack channels of the teams that own the snapshots; it is off until somebody turns it on, and it runs Monday to Friday. `baseline_file_paths` maps each run type to the file holding its committed baseline hashes, for example `{\"storybook\": \".storybook/snapshots.yml\"}`, and finalize reads and commits the path named there; a `default` key covers every run type that has no entry of its own. Every field is optional, and a field you leave out keeps its current value.",+ "description": "Change one repo's settings. `enable_pr_comments` controls whether a run that finds visual changes posts a pull request comment asking for a review. `debt_digest_enabled` controls whether the debt digest runs for the repo, which posts expiring quarantines and piled-up variants to the Slack channels of the teams that own the snapshots; it is off until somebody turns it on, and it posts every Monday morning. `baseline_file_paths` maps each run type to the file holding its committed baseline hashes, for example `{\"storybook\": \".storybook/snapshots.yml\"}`, and finalize reads and commits the path named there; a `default` key covers every run type that has no entry of its own. Every field is optional, and a field you leave out keeps its current value.","category": "Visual review","feature": "visual_review","summary": "Update visual review repo settings",