: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(eng-analytics): count team failed runs once (#102894)
Raúl Negrón-Oteroa80d16b69ca7
diff --git a/products/engineering_analytics/backend/facade/contracts.py b/products/engineering_analytics/backend/facade/contracts.pyindex 2428681c4c4e..947d15c2d934 100644--- a/products/engineering_analytics/backend/facade/contracts.py+++ b/products/engineering_analytics/backend/facade/contracts.py@@ -743,12 +743,14 @@ class TeamCIHealthItem:# Owned tests that failed with no such proof and still hit the blast-radius bar. Not flakes.regression_test_count: intregression_test_count_prior: int- # Runs (not spans) where an owned test's recorded outcome was failed or error.+ # Distinct runs where at least one owned test failed or errored. One run that failed many of the+ # team's tests counts once, so these are never a sum of the per-test run counts.failed_run_count: intfailed_run_count_prior: intsame_commit_recovery_run_count: intsame_commit_recovery_run_count_prior: int- # Runs where an owned test recorded a tolerated failure while quarantined: already masked, still failing.+ # Distinct runs where an owned test recorded a tolerated failure while quarantined: already+ # masked, still failing.quarantined_failed_run_count: intquarantined_failed_run_count_prior: int# Most recent failure, recovery, or quarantined-failure run across the team's owned tests,diff --git a/products/engineering_analytics/backend/logic/queries/team_ci_health.py b/products/engineering_analytics/backend/logic/queries/team_ci_health.pyindex 3ad02dc169bc..eaf7136085bd 100644--- a/products/engineering_analytics/backend/logic/queries/team_ci_health.py+++ b/products/engineering_analytics/backend/logic/queries/team_ci_health.py@@ -48,28 +48,30 @@ _RUN_EVIDENCE = run_evidence(bounded=True)_ROSTER_SELECT = f"""SELECTowner_team,- countIf(recovery_runs_current > 0) AS flaky_test_count,- countIf(recovery_runs_prior > 0) AS flaky_test_count_prior,- countIf(recovery_runs_current = 0 AND blast_radius_current) AS regression_test_count,- countIf(recovery_runs_prior = 0 AND blast_radius_prior) AS regression_test_count_prior,- sum(failed_runs_current) AS failed_run_count,- sum(failed_runs_prior) AS failed_run_count_prior,- sum(recovery_runs_current) AS same_commit_recovery_run_count,- sum(recovery_runs_prior) AS same_commit_recovery_run_count_prior,- sum(xfail_runs_current) AS quarantined_failed_run_count,- sum(xfail_runs_prior) AS quarantined_failed_run_count_prior,+ countIf(notEmpty(recovery_runs_current)) AS flaky_test_count,+ countIf(notEmpty(recovery_runs_prior)) AS flaky_test_count_prior,+ countIf(empty(recovery_runs_current) AND blast_radius_current) AS regression_test_count,+ countIf(empty(recovery_runs_prior) AND blast_radius_prior) AS regression_test_count_prior,+ -- One run can fail many owned tests. The run counts take the union of run ids across the+ -- team's tests, because a sum of per-test run counts counts that run once per test.+ length(groupUniqArrayArray(failed_runs_current)) AS failed_run_count,+ length(groupUniqArrayArray(failed_runs_prior)) AS failed_run_count_prior,+ length(groupUniqArrayArray(recovery_runs_current)) AS same_commit_recovery_run_count,+ length(groupUniqArrayArray(recovery_runs_prior)) AS same_commit_recovery_run_count_prior,+ length(groupUniqArrayArray(xfail_runs_current)) AS quarantined_failed_run_count,+ length(groupUniqArrayArray(xfail_runs_prior)) AS quarantined_failed_run_count_prior,max(last_signal) AS last_seen_atFROM (SELECTrunner,nodeid,argMax(owner_team, run_signal_at) AS owner_team,- countIf(recovered_in_run AND is_current) AS recovery_runs_current,- countIf(recovered_in_run AND NOT is_current) AS recovery_runs_prior,- countIf(failed_in_run AND is_current) AS failed_runs_current,- countIf(failed_in_run AND NOT is_current) AS failed_runs_prior,- countIf(quarantined_in_run AND is_current) AS xfail_runs_current,- countIf(quarantined_in_run AND NOT is_current) AS xfail_runs_prior,+ groupUniqArrayIf(run_id, recovered_in_run AND is_current) AS recovery_runs_current,+ groupUniqArrayIf(run_id, recovered_in_run AND NOT is_current) AS recovery_runs_prior,+ groupUniqArrayIf(run_id, failed_in_run AND is_current) AS failed_runs_current,+ groupUniqArrayIf(run_id, failed_in_run AND NOT is_current) AS failed_runs_prior,+ groupUniqArrayIf(run_id, quarantined_in_run AND is_current) AS xfail_runs_current,+ groupUniqArrayIf(run_id, quarantined_in_run AND NOT is_current) AS xfail_runs_prior,countIf(failed_in_run AND branch IN ('master', 'main') AND is_current) > 0OR uniqIf(pr_number, failed_in_run AND pr_number != '' AND is_current) >= {{min_failed_prs}}AS blast_radius_current,diff --git a/products/engineering_analytics/backend/presentation/serializers/teams.py b/products/engineering_analytics/backend/presentation/serializers/teams.pyindex a25785795dac..e6129da936f6 100644--- a/products/engineering_analytics/backend/presentation/serializers/teams.py+++ b/products/engineering_analytics/backend/presentation/serializers/teams.py@@ -35,18 +35,18 @@ class TeamCIHealthItemSerializer(DataclassSerializer):},"regression_test_count_prior": {"help_text": "Same count over the prior window."},"failed_run_count": {- "help_text": "CI runs (not spans) where an owned test's recorded outcome was failed or error. "- "An absolute count, not a rate: fast passing runs are not emitted.",+ "help_text": "Distinct CI runs where at least one owned test failed or errored. A run with many "+ "failing owned tests counts once. An absolute count, not a rate: fast passing runs are not emitted.",},"failed_run_count_prior": {"help_text": "Same count over the prior window."},"same_commit_recovery_run_count": {- "help_text": "Runs where one commit both failed and passed an owned test: a re-run attempt went "- "green, or an in-job retry recovered it.",+ "help_text": "Distinct CI runs where one commit both failed and passed at least one owned test: a "+ "re-run attempt went green, or an in-job retry recovered it.",},"same_commit_recovery_run_count_prior": {"help_text": "Same count over the prior window."},"quarantined_failed_run_count": {- "help_text": "Runs where an owned test recorded a tolerated failure while quarantined: masked in "- "CI, still failing.",+ "help_text": "Distinct CI runs where at least one owned test recorded a tolerated failure while "+ "quarantined.",},"quarantined_failed_run_count_prior": {"help_text": "Same count over the prior window."},"last_seen_at": {diff --git a/products/engineering_analytics/backend/tests/test_team_ci_health.py b/products/engineering_analytics/backend/tests/test_team_ci_health.pyindex f99591b1d4f9..405d46eeedfe 100644--- a/products/engineering_analytics/backend/tests/test_team_ci_health.py+++ b/products/engineering_analytics/backend/tests/test_team_ci_health.py@@ -13,6 +13,7 @@ from products.engineering_analytics.backend.tests._github_fixtures import connecT_REPLAY_PRS = "products/replay/backend/tests/test_snap/TestSnap::test_prs"T_REPLAY_RERUN = "products/replay/backend/tests/test_playlist/TestPlaylist::test_rerun"T_EXPORTS_RECOVERED = "products/batch_exports/backend/tests/test_snowflake/TestSnowflake::test_recovered"+T_EXPORTS_SAME_RUN = "products/batch_exports/backend/tests/test_s3/TestS3::test_fails_beside_snowflake"T_UNOWNED = "posthog/api/test/test_shared/TestShared::test_unowned"T_FOREIGN = "posthog/api/test/test_foreign/TestForeign::test_other_service"T_RESTAMPED = "products/moved/backend/tests/test_moved/TestMoved::test_restamped"@@ -54,7 +55,12 @@ class TestTeamCIHealthAPI(ClickhouseTestMixin, APIBaseTest):cls._span(2, T_REPLAY_PRS, "failed", ts=cls.current_a, owner="team-replay", run="102", pr="102"),cls._span(3, T_REPLAY_PRS, "failed", ts=cls.current_a, owner="team-replay", run="103", pr="103"),cls._span(4, T_REPLAY_PRS, "xfailed", ts=cls.current_b, owner="team-replay", run="104"),+ # A second owned test is quarantined in the same run. The team still had one such run.+ cls._span(21, T_REPLAY_RERUN, "xfailed", ts=cls.current_b, owner="team-replay", run="104"),cls._span(5, T_REPLAY_PRS, "failed", ts=prior, owner="team-replay", run="105", pr="101"),+ cls._span(23, T_REPLAY_PRS, "xfailed", ts=prior, owner="team-replay", run="204"),+ cls._span(24, T_REPLAY_RERUN, "xfailed", ts=prior, owner="team-replay", run="204"),+ cls._span(27, T_REPLAY_PRS, "rerun_passed", ts=prior, owner="team-replay", run="202", pr="202"),# team-replay test 2 is a proven flake in both windows via in-job pass-on-retry.cls._span(6, T_REPLAY_RERUN, "rerun_passed", ts=cls.current_b, owner="team-replay", run="201", pr="201"),cls._span(7, T_REPLAY_RERUN, "rerun_passed", ts=prior, owner="team-replay", run="202", pr="202"),@@ -65,7 +71,31 @@ class TestTeamCIHealthAPI(ClickhouseTestMixin, APIBaseTest):cls._span(9, T_EXPORTS_RECOVERED, "failed", ts=prior, owner="batch-exports", run="301", pr="301"),cls._span(10, T_EXPORTS_RECOVERED, "failed", ts=prior, owner="batch-exports", run="302", pr="302"),cls._span(11, T_EXPORTS_RECOVERED, "failed", ts=prior, owner="batch-exports", run="303", pr="303"),+ cls._span(25, T_EXPORTS_SAME_RUN, "failed", ts=prior, owner="batch-exports", run="301", pr="301"),+ cls._span(+ 26,+ T_EXPORTS_SAME_RUN,+ "passed",+ ts=prior,+ owner="batch-exports",+ run="301",+ attempt="2",+ pr="301",+ ),cls._span(14, T_EXPORTS_RECOVERED, "failed", ts=cls.current_a, owner="batch-exports", run="304", pr="304"),+ # A second owned test fails in the same run, and recovers in it. The team still had one+ # failed run and one recovery run.+ cls._span(20, T_EXPORTS_SAME_RUN, "failed", ts=cls.current_a, owner="batch-exports", run="304", pr="304"),+ cls._span(+ 22,+ T_EXPORTS_SAME_RUN,+ "passed",+ ts=cls.current_b,+ owner="batch-exports",+ run="304",+ attempt="2",+ pr="304",+ ),cls._span(15,T_EXPORTS_RECOVERED,@@ -161,10 +191,11 @@ class TestTeamCIHealthAPI(ClickhouseTestMixin, APIBaseTest):# is a regression here exactly as it is in the queue.replay = rows["team-replay"]assert (replay["flaky_test_count"], replay["regression_test_count"]) == (1, 1)- assert (replay["flaky_test_count_prior"], replay["regression_test_count_prior"]) == (1, 0)+ assert (replay["flaky_test_count_prior"], replay["regression_test_count_prior"]) == (2, 0)assert (replay["failed_run_count"], replay["failed_run_count_prior"]) == (3, 1)assert (replay["same_commit_recovery_run_count"], replay["same_commit_recovery_run_count_prior"]) == (1, 2)- assert (replay["quarantined_failed_run_count"], replay["quarantined_failed_run_count_prior"]) == (1, 0)+ # Two owned tests were quarantined in the same run in each window.+ assert (replay["quarantined_failed_run_count"], replay["quarantined_failed_run_count_prior"]) == (1, 1)# The unstamped test and the '@handle'-stamped one both land here; no '@someone' row exists.assert (rows["unowned"]["flaky_test_count"], rows["unowned"]["same_commit_recovery_run_count"]) == (2, 2)@@ -173,10 +204,11 @@ class TestTeamCIHealthAPI(ClickhouseTestMixin, APIBaseTest):# A re-run attempt went green on the same commit, so it is current-window flaky; the prior# window's 3 unrecovered PR failures are a regression, not a flake.exports = rows["batch-exports"]- assert (exports["flaky_test_count"], exports["regression_test_count"]) == (1, 0)- assert (exports["flaky_test_count_prior"], exports["regression_test_count_prior"]) == (0, 1)+ assert (exports["flaky_test_count"], exports["regression_test_count"]) == (2, 0)+ assert (exports["flaky_test_count_prior"], exports["regression_test_count_prior"]) == (1, 1)+ # Two owned tests failed and recovered in one shared run in each window.assert (exports["failed_run_count"], exports["failed_run_count_prior"]) == (1, 3)- assert (exports["same_commit_recovery_run_count"], exports["same_commit_recovery_run_count_prior"]) == (1, 0)+ assert (exports["same_commit_recovery_run_count"], exports["same_commit_recovery_run_count_prior"]) == (1, 1)# The foreign-service span's team must not appear at all.assert "ghost-team" not in rows@@ -204,7 +236,7 @@ class TestTeamCIHealthAPI(ClickhouseTestMixin, APIBaseTest):assert data["owner_team"] == "team-replay"# Before/after pairs: ranked by the stronger window, xfail excluded from signal.assert [(t["nodeid"], t["signal_count"], t["signal_count_prior"]) for t in data["tests"]] == [- (T_REPLAY_PRS, 3, 1),+ (T_REPLAY_PRS, 3, 2),(T_REPLAY_RERUN, 1, 2),]assert not data["truncated_tests"]diff --git a/products/engineering_analytics/frontend/generated/api.schemas.ts b/products/engineering_analytics/frontend/generated/api.schemas.tsindex f00b73b3bbec..18e3f1d039a7 100644--- a/products/engineering_analytics/frontend/generated/api.schemas.ts+++ b/products/engineering_analytics/frontend/generated/api.schemas.ts@@ -1791,15 +1791,15 @@ export interface TeamCIHealthItemApi {regression_test_count: number/** Same count over the prior window. */regression_test_count_prior: number- /** CI runs (not spans) where an owned test's recorded outcome was failed or error. An absolute count, not a rate: fast passing runs are not emitted. */+ /** Distinct CI runs where at least one owned test failed or errored. A run with many failing owned tests counts once. An absolute count, not a rate: fast passing runs are not emitted. */failed_run_count: number/** Same count over the prior window. */failed_run_count_prior: number- /** Runs where one commit both failed and passed an owned test: a re-run attempt went green, or an in-job retry recovered it. */+ /** Distinct CI runs where one commit both failed and passed at least one owned test: a re-run attempt went green, or an in-job retry recovered it. */same_commit_recovery_run_count: number/** Same count over the prior window. */same_commit_recovery_run_count_prior: number- /** Runs where an owned test recorded a tolerated failure while quarantined: masked in CI, still failing. */+ /** Distinct CI runs where at least one owned test recorded a tolerated failure while quarantined. */quarantined_failed_run_count: number/** Same count over the prior window. */quarantined_failed_run_count_prior: numberdiff --git a/products/engineering_analytics/frontend/scenes/EngineeringAnalyticsTeamScene.tsx b/products/engineering_analytics/frontend/scenes/EngineeringAnalyticsTeamScene.tsxindex 1e74f9d6eb5e..6c3c23c4d7df 100644--- a/products/engineering_analytics/frontend/scenes/EngineeringAnalyticsTeamScene.tsx+++ b/products/engineering_analytics/frontend/scenes/EngineeringAnalyticsTeamScene.tsx@@ -170,7 +170,7 @@ export function EngineeringAnalyticsTeamScene(): JSX.Element {/><WindowComparisonCardtitle="Failed runs"- tooltip="CI runs where an owned test failed or errored. Absolute counts, not rates: passing runs are mostly not recorded."+ tooltip="CI runs where at least one test this team owns failed or errored. A run counts once, however many tests failed. Absolute counts, not rates: passing runs are mostly not recorded."value={healthRow?.failedRunCount}previousValue={healthRow?.failedRunCountPrior}formatValue={humanFriendlyNumber}diff --git a/products/engineering_analytics/mcp/tools.yaml b/products/engineering_analytics/mcp/tools.yamlindex 0a8532385f21..7c1752fffe77 100644--- a/products/engineering_analytics/mcp/tools.yaml+++ b/products/engineering_analytics/mcp/tools.yaml@@ -245,17 +245,18 @@ tools:maximum 30 days). It reads the same per-run evidence as engineering-analytics-flaky-tests and means the samething by flaky: flaky_test_count is owned tests one commit was seen both failing and passing in the window(a re-run attempt went green, or an in-job retry recovered it), regression_test_count is owned tests that- failed with no such proof and still hit min_failed_prs distinct PRs or master, and failed_run_count /- same_commit_recovery_run_count / quarantined_failed_run_count are run counts. Each has an equal-length- previous-window twin (*_prior) for honest deltas. Use this for "which team owns the flakiest surfaces right- now" and to route a flaky-test or CI Signal to its owning team. Ownership is stamped on the spans at CI- emission time from the repo's ownership map (the distributed owners.yaml files); spans without a stamp- aggregate under the literal team 'unowned' (a nonempty 'unowned' row means ownership gaps, not a real team),- and a re-stamped test lands under its latest owner only. Each row also carries test_file_count (the daily- owners.yaml census denominator, with a window-start twin) and merged_pr_count (merged PRs by the team's- members, bots excluded); teams with census counts but no CI signal appear with zero signal counts and a null- last_seen_at. Teams are organizational owners of code surfaces, never authors. Read all counts as absolute- signal, never rates: fast passing runs are not emitted, so there is no honest denominator.+ failed with no such proof and still hit min_failed_prs distinct PRs or master, and failed_run_count,+ same_commit_recovery_run_count and quarantined_failed_run_count count distinct CI runs across the team's+ owned tests, so one run with many failing tests counts once. Each has an equal-length previous-window twin+ (*_prior) for honest deltas. Use this for "which team owns the flakiest surfaces right now" and to route a+ flaky-test or CI Signal to its owning team. Ownership is stamped on the spans at CI emission time from the+ repo's ownership map (the distributed owners.yaml files); spans without a stamp aggregate under the literal+ team 'unowned' (a nonempty 'unowned' row means ownership gaps, not a real team), and a re-stamped test lands+ under its latest owner only. Each row also carries test_file_count (the daily owners.yaml census+ denominator, with a window-start twin) and merged_pr_count (merged PRs by the team's members, bots+ excluded); teams with census counts but no CI signal appear with zero signal counts and a null last_seen_at.+ Teams are organizational owners of code surfaces, never authors. Read all counts as absolute signal, never+ rates: fast passing runs are not emitted, so there is no honest denominator.feature_flag: engineering-analyticsengineering-analytics-team-merge-trend:operation: engineering_analytics_team_merge_trenddiff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex ac468a30e2fb..9c2a99f01e69 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -3686,7 +3686,7 @@"feature_flag": "engineering-analytics"},"engineering-analytics-team-ci-health": {- "description": "Per-owning-team rollup of the CI test surfaces each team owns, over a window (date_from default -14d, maximum 30 days). It reads the same per-run evidence as engineering-analytics-flaky-tests and means the same thing by flaky: flaky_test_count is owned tests one commit was seen both failing and passing in the window (a re-run attempt went green, or an in-job retry recovered it), regression_test_count is owned tests that failed with no such proof and still hit min_failed_prs distinct PRs or master, and failed_run_count / same_commit_recovery_run_count / quarantined_failed_run_count are run counts. Each has an equal-length previous-window twin (*_prior) for honest deltas. Use this for \"which team owns the flakiest surfaces right now\" and to route a flaky-test or CI Signal to its owning team. Ownership is stamped on the spans at CI emission time from the repo's ownership map (the distributed owners.yaml files); spans without a stamp aggregate under the literal team 'unowned' (a nonempty 'unowned' row means ownership gaps, not a real team), and a re-stamped test lands under its latest owner only. Each row also carries test_file_count (the daily owners.yaml census denominator, with a window-start twin) and merged_pr_count (merged PRs by the team's members, bots excluded); teams with census counts but no CI signal appear with zero signal counts and a null last_seen_at. Teams are organizational owners of code surfaces, never authors. Read all counts as absolute signal, never rates: fast passing runs are not emitted, so there is no honest denominator.",+ "description": "Per-owning-team rollup of the CI test surfaces each team owns, over a window (date_from default -14d, maximum 30 days). It reads the same per-run evidence as engineering-analytics-flaky-tests and means the same thing by flaky: flaky_test_count is owned tests one commit was seen both failing and passing in the window (a re-run attempt went green, or an in-job retry recovered it), regression_test_count is owned tests that failed with no such proof and still hit min_failed_prs distinct PRs or master, and failed_run_count, same_commit_recovery_run_count and quarantined_failed_run_count count distinct CI runs across the team's owned tests, so one run with many failing tests counts once. Each has an equal-length previous-window twin (*_prior) for honest deltas. Use this for \"which team owns the flakiest surfaces right now\" and to route a flaky-test or CI Signal to its owning team. Ownership is stamped on the spans at CI emission time from the repo's ownership map (the distributed owners.yaml files); spans without a stamp aggregate under the literal team 'unowned' (a nonempty 'unowned' row means ownership gaps, not a real team), and a re-stamped test lands under its latest owner only. Each row also carries test_file_count (the daily owners.yaml census denominator, with a window-start twin) and merged_pr_count (merged PRs by the team's members, bots excluded); teams with census counts but no CI signal appear with zero signal counts and a null last_seen_at. Teams are organizational owners of code surfaces, never authors. Read all counts as absolute signal, never rates: fast passing runs are not emitted, so there is no honest denominator.","category": "Engineering analytics","feature": "engineering_analytics","summary": "Team CI health roster",diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex 66ed5f81bfc9..976c0c8e35ed 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -3715,7 +3715,7 @@"feature_flag": "engineering-analytics"},"engineering-analytics-team-ci-health": {- "description": "Per-owning-team rollup of the CI test surfaces each team owns, over a window (date_from default -14d, maximum 30 days). It reads the same per-run evidence as engineering-analytics-flaky-tests and means the same thing by flaky: flaky_test_count is owned tests one commit was seen both failing and passing in the window (a re-run attempt went green, or an in-job retry recovered it), regression_test_count is owned tests that failed with no such proof and still hit min_failed_prs distinct PRs or master, and failed_run_count / same_commit_recovery_run_count / quarantined_failed_run_count are run counts. Each has an equal-length previous-window twin (*_prior) for honest deltas. Use this for \"which team owns the flakiest surfaces right now\" and to route a flaky-test or CI Signal to its owning team. Ownership is stamped on the spans at CI emission time from the repo's ownership map (the distributed owners.yaml files); spans without a stamp aggregate under the literal team 'unowned' (a nonempty 'unowned' row means ownership gaps, not a real team), and a re-stamped test lands under its latest owner only. Each row also carries test_file_count (the daily owners.yaml census denominator, with a window-start twin) and merged_pr_count (merged PRs by the team's members, bots excluded); teams with census counts but no CI signal appear with zero signal counts and a null last_seen_at. Teams are organizational owners of code surfaces, never authors. Read all counts as absolute signal, never rates: fast passing runs are not emitted, so there is no honest denominator.",+ "description": "Per-owning-team rollup of the CI test surfaces each team owns, over a window (date_from default -14d, maximum 30 days). It reads the same per-run evidence as engineering-analytics-flaky-tests and means the same thing by flaky: flaky_test_count is owned tests one commit was seen both failing and passing in the window (a re-run attempt went green, or an in-job retry recovered it), regression_test_count is owned tests that failed with no such proof and still hit min_failed_prs distinct PRs or master, and failed_run_count, same_commit_recovery_run_count and quarantined_failed_run_count count distinct CI runs across the team's owned tests, so one run with many failing tests counts once. Each has an equal-length previous-window twin (*_prior) for honest deltas. Use this for \"which team owns the flakiest surfaces right now\" and to route a flaky-test or CI Signal to its owning team. Ownership is stamped on the spans at CI emission time from the repo's ownership map (the distributed owners.yaml files); spans without a stamp aggregate under the literal team 'unowned' (a nonempty 'unowned' row means ownership gaps, not a real team), and a re-stamped test lands under its latest owner only. Each row also carries test_file_count (the daily owners.yaml census denominator, with a window-start twin) and merged_pr_count (merged PRs by the team's members, bots excluded); teams with census counts but no CI signal appear with zero signal counts and a null last_seen_at. Teams are organizational owners of code surfaces, never authors. Read all counts as absolute signal, never rates: fast passing runs are not emitted, so there is no honest denominator.","category": "Engineering analytics","feature": "engineering_analytics","summary": "Team CI health roster",diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex 6f0f32322b29..fd4918dfea12 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -94007,15 +94007,15 @@ export namespace Schemas {regression_test_count: number;/** Same count over the prior window. */regression_test_count_prior: number;- /** CI runs (not spans) where an owned test's recorded outcome was failed or error. An absolute count, not a rate: fast passing runs are not emitted. */+ /** Distinct CI runs where at least one owned test failed or errored. A run with many failing owned tests counts once. An absolute count, not a rate: fast passing runs are not emitted. */failed_run_count: number;/** Same count over the prior window. */failed_run_count_prior: number;- /** Runs where one commit both failed and passed an owned test: a re-run attempt went green, or an in-job retry recovered it. */+ /** Distinct CI runs where one commit both failed and passed at least one owned test: a re-run attempt went green, or an in-job retry recovered it. */same_commit_recovery_run_count: number;/** Same count over the prior window. */same_commit_recovery_run_count_prior: number;- /** Runs where an owned test recorded a tolerated failure while quarantined: masked in CI, still failing. */+ /** Distinct CI runs where at least one owned test recorded a tolerated failure while quarantined. */quarantined_failed_run_count: number;/** Same count over the prior window. */quarantined_failed_run_count_prior: number;