: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
chore(ci): make master-red prompt agentic (#98029)
Raúl Negrón-Otero5803f0912e8c
diff --git a/.agents/skills/debugging-ci-failures/SKILL.md b/.agents/skills/debugging-ci-failures/SKILL.mdindex a25421ecbcaf..4d8b2a595e66 100644--- a/.agents/skills/debugging-ci-failures/SKILL.md+++ b/.agents/skills/debugging-ci-failures/SKILL.md@@ -7,11 +7,12 @@ description: >current CI or master status, or mentions a failing check, GitHub Actions run,Depot runner, workflow, job, shard, merge queue kick, flaky test, lint failure, typecheckfailure, snapshot diff, migration check, generated types drift, or skills- build failure. Start with the `hogli ci:insights` digest (cross-run CI history- from engineering analytics), then guides read-only inspection, failure- classification, smallest local reproduction with hogli, and safe reporting- without rerunning CI or posting to GitHub. Running unattended as the- "Master-red diagnosis" workflow: see references/master-red-incident.md.+ build failure. Interactive runs start with the `hogli ci:insights` digest+ (cross-run CI history from engineering analytics), then use read-only+ inspection, failure classification, the smallest local reproduction with+ hogli, and safe reporting without rerunning CI or posting to GitHub. Running+ unattended as the "Master-red diagnosis" workflow: see+ references/master-red-incident.md for its sandbox-compatible first step.---# Debugging PostHog CI failures@@ -22,12 +23,16 @@ Find the first meaningful failure, classify it, reproduce the smallest usefulcase locally when appropriate, and report the result. Avoid public-visible orirreversible actions unless the user explicitly asks.-Always start with the `hogli ci:insights` digest. It aggregates across runs and-branches, which `gh` cannot do cheaply, and tells you whether a failure is-likely trunk-borne, gate-only, or isolated to a small set of branches. `gh` is-authoritative for one run's current state and attribution. Use the digest to-decide _what_ to inspect; use `gh` to confirm _whose_ failure it is and exactly-what failed in a given run.+For an interactive investigation, start with the `hogli ci:insights` digest.+It aggregates across runs and branches, which `gh` cannot do cheaply, and tells+you whether a failure is likely trunk-borne, gate-only, or isolated to a small+set of branches. `gh` is authoritative for one run's current state and+attribution. Use the digest to decide _what_ to inspect; use `gh` to confirm+_whose_ failure it is and exactly what failed in a given run.++The unattended Master-red workflow is the exception.+Follow [its reference](references/master-red-incident.md), which defines a first+step that works in the task sandbox.This skill triages and classifies. Once a failure is confirmed flaky, hand offto the `fixing-flaky-tests` skill, which owns local reproduction, root-cause@@ -68,7 +73,7 @@ overwrite unrelated work.## Workflow-### 1. Start with CI insights (always first)+### 1. Start with CI insights for interactive investigations`hogli ci:insights` reads PostHog's own engineering analytics — the cross-runfailure history a single run can't show. Consult it before any raw `gh` logdiff --git a/.agents/skills/debugging-ci-failures/references/master-red-incident.md b/.agents/skills/debugging-ci-failures/references/master-red-incident.mdindex f5dacbed9733..6d57f0cc6280 100644--- a/.agents/skills/debugging-ci-failures/references/master-red-incident.md+++ b/.agents/skills/debugging-ci-failures/references/master-red-incident.md@@ -3,30 +3,97 @@You are answering one open master-red incident, started by the "Master-red diagnosis" workflow when the DevEx alerter posted its incident message in #alerts-devex.One run is one answer: work out what broke, post a single reply in that Slack thread, and stop.-The parent `SKILL.md` owns the method: the classification table and the base-rate check.-This file only adds what is different about running unattended, starting with the fact that its first step does not exist here.+The parent `SKILL.md` owns the classification method and base-rate check.+This reference replaces only its first step for an unattended run.Setting the workflow up is `master-red-workflow-setup.md` in this directory.-## You have no digest, so start from the MCP tools+## Execution contract-The parent skill says to start with `hogli ci:insights`. That command cannot run here.-This sandbox is a shallow clone with no hogli installed, and the digest needs a credential that only a browser sign-in writes, which you cannot complete.-Do not try it, and do not report its absence as the reason you could not answer.+Emit no plan, preamble, or progress update.+The first output must be tool calls.+The run is complete when every alerted lane has a current-state verdict or a specific evidence gap, the reply gives one safe next action, and every factual claim has cited evidence.+Return only that reply, then stop.-Get the cross-run history from the PostHog MCP instead. The run's token already carries `engineering_analytics:read`, and the MCP is bound to the project that holds this data.+## Start by resolving the failing run-| Tool | Use it for |-| ---------------------------------------- | -------------------------------------------------------------------- |-| `engineering-analytics-run-failure-logs` | one run id, every failed job's error region, already thinned |-| `engineering-analytics-broken-tests` | which tests are failing on master now |-| `engineering-analytics-flaky-tests` | whether this test has a flake history, which decides a flaky verdict |-| `engineering-analytics-ci-failure-logs` | one PR number, across every run it has pushed |+Do not call `hogli ci:insights` in this task sandbox.+If the alert shows the broad-failure signals from the parent's platform-outage gate, check GitHub and Depot status before reading run logs.+Otherwise, make the first tool turn one parallel batch:-These are bounded by GitHub's log retention, so fall back to `gh` for anything older than about 90 days.-If one of them is not in your tool list, say which one in the reply's last line and work from `gh` for that part, rather than dropping the cross-run question.+- Fetch the newest `master` commit.+- Fetch the newest 10 runs for every alerted lane.-The digest's grouped master-failures view has no MCP tool yet. Rebuild the part you need with `gh run list --branch master --workflow <name> --json conclusion,headSha,createdAt`, which is also how you get the denominator for a rate.+The triggering event's `workflows` entries can include the workflow file, event, and observed failing run.+Use those values as lookup keys and starting evidence, but verify them against GitHub because they describe when the alert opened.+Older events can contain bare workflow names instead; remove `(scheduled)` and use `schedule`, otherwise use `push`.+If the alert has only a commit streak, list runs for its `latest_commit_sha` instead of inventing a lane:++```bash+gh run list --repo PostHog/posthog --branch master --commit <latest-commit-sha> --limit 40 --json databaseId,status,conclusion,createdAt,headSha,url,workflowName,event+```++Fetch the commit with:++```bash+gh api repos/PostHog/posthog/commits/master --jq '{sha, createdAt: .commit.committer.date}'+```++Fetch each lane directly by workflow file when supplied, which avoids resolving a display name through the repository's full workflow list:++```bash+gh api "repos/PostHog/posthog/actions/workflows/<workflow-file>/runs?branch=master&event=<push-or-schedule>&per_page=10" --jq '[.workflow_runs[] | {databaseId: .id, status, conclusion, createdAt: .created_at, headSha: .head_sha, url: .html_url, workflowName: .name}]'+```++For an older event with only a display name, use `gh run list` with the same branch, event, fields, and limit.++Do not filter by status because the raw page head is the freshness signal.+Compare its first run's `createdAt` with the newest commit time before filtering it.+Treat a push page as stale when it trails the commit by more than three hours, and a scheduled page as stale after six hours.+Retry a stale page twice, with 15 seconds between attempts.+If it remains stale, do not diagnose from it; report the unresolved evidence and the freshness check as the next probe.++On a fresh page, discard runs that are not completed and runs whose conclusion is `cancelled` or `skipped`.+Select the newest remaining run.+Only `failure` and `timed_out` are failing conclusions for this alert.+If the newest remaining run has another conclusion, find the first preceding run with either failing conclusion and take the recovered fast path below.+Expand the page from 10 to 40 only when the first page does not contain that preceding failure or the evidence gate needs an older green/red boundary.+If no run remains, report the missing evidence instead of choosing a different lane.++## Evidence budget++For an active failing lane, use `posthog:engineering-analytics-run-failure-logs` first when it is available.+It returns every failed job's thinned error region in one request.+If it is unavailable or has expired data, use one `gh run view --log-failed` fallback.+Read a full job log only when the thinned output does not contain the first causal error.++Use at most one additional cross-run or attribution lookup per lane.+Choose it from the verdict evidence you still need:++| Tool | Use it for |+| ----------------------------------------------- | ------------------------------------------------------ |+| `posthog:engineering-analytics-broken-tests` | grouped pytest failures and their current triage state |+| `posthog:engineering-analytics-flaky-tests` | same-commit recovery or known flakiness |+| `posthog:engineering-analytics-ci-failure-logs` | failure evidence across one PR's pushes |+| The parent's job base-rate query | transient infrastructure versus a standing outage |+| GitHub compare or commit history | a first-bad boundary or candidate regression |++For an infrastructure signature, spend this lookup on the parent's base-rate check unless a status page already confirms an outage.+If the rate is unavailable, classify the infrastructure evidence but do not call it transient; name the missing rate as an evidence gap.+If a needed MCP tool is exposed, inspect its schema once before calling it.+Do not spend a tool call searching for a missing optional tool; use the `gh` fallback.+Do not call every tool, repeat a failed access path, or inspect commit history for an infrastructure verdict.+Stop as soon as the verdict gate and next action are supported.+After one thinned-log fallback and one corroborating lookup, report any material gap instead of continuing to search.+Do not ask for clarification during this run.++## Recovered fast path++When the newest settled run is not failing, report **recovered before diagnosis** and link both that run and the preceding failure.+Use at most one thinned-log lookup to name the failed job and an obvious cause.+Do not inspect commit history unless a candidate fix is already evident and proving it changes the next action.+A green run proves recovery, not a fix.+Use "fixed" only when an identified change addresses the exact failure and is present in the passing run.## Non-negotiable rules@@ -37,35 +104,47 @@ The digest's grouped master-failures view has no MCP tool yet. Rebuild the part## What you are given-The alert text, which names the failing workflows, how long each has been red, and the newest commit on master.-It does not carry run ids, so start by resolving the alert's workflow names to their latest failing runs on master, then follow the parent skill from there.+The alert text names the failing workflows, how long each has been red, and the newest commit on master.+Its `workflows` data normally carries the workflow file, event, and observed failing run ID, URL, creation time, and SHA.+These identify the incident without proving it is still active; the first-step lookup detects recovery and verifies currentness.A name with a `(scheduled)` suffix is not a separate workflow.It is the cron-triggered master run of the workflow before the suffix, which the alerter tracks apart from that workflow's master-push runs because the two run different jobs.-`Backend CI (scheduled)` means the hourly full test matrices, so resolve it to Backend CI's newest failing `schedule` run rather than its push runs.+`Backend CI (scheduled)` means the hourly full test matrices, so use Backend CI's `schedule` runs in the first-step lookup rather than its push runs.++## Verdict gates-## The verdict+Choose the first verdict whose evidence gate is satisfied:-Classify with the parent skill's table, then reduce it to one of three answers a reader can act on: **infrastructure** (no code change fixes it), **flaky test**, or **real regression**.+- **Recovered before diagnosis:** the newest settled run is not `failure` or `timed_out` and a preceding failing run is visible.+- **Flaky test:** the same test failed and passed on the same SHA, or the flakiness tool confirms matching history.+- **Real regression:** a deterministic lint, migration, codegen, or test failure is tied directly to committed state, or a first-bad boundary and relevant change support attribution.+- **Infrastructure:** the evidence names a platform, runner, network, or external-service failure before application tests ran, or corroborating history shows the same infrastructure signature outside the code change.-Confirm a flaky verdict against master history rather than asserting it, and pin a regression to the commit that introduced it.-Then find the smallest thing a person can act on: the failing job name, the failing test or step, and the commit or PR behind it.+A pass on an older SHA does not prove flakiness.+A single green run after a failure does not prove a fix.+When no gate is satisfied, say that you could not determine the cause instead of forcing a verdict.+Then name the smallest useful evidence a person can act on: the failing job and step or test, plus the commit or PR only when attribution is supported.## The reply-Four short lines, in this order. No preamble, no restating the alert.+For each workflow, choose the form the evidence supports:-1. The verdict, in one sentence, with the failing job named.-2. The evidence, in one line. Link the run.-3. What a person should do next, or that nothing needs doing because no code change fixes it.-4. What you could not settle, and the one probe that would settle it.+- For an active classified failure, write one verdict line with the failing job, then one evidence line with the failing run.+- For a recovered lane, write one verdict line and one evidence line linking both the passing run and preceding failure.+- If required evidence is unavailable, start with `I could not determine the cause for <workflow>.` Then name the unresolved gap and the specific probe that would settle it. Do not invent a job name or run link.-Keep it under about 80 words. Somebody is reading it while master is broken.+After covering every workflow in the alert, add one shared action line.+Say what a person should do next, or that no action is safe until the named probe completes.+Mention uncertainty only when it changes the verdict or action.-Do not recommend a rerun for a failure you classified as a real regression, and do not recommend a code change for one you classified as infrastructure.+Keep a single-workflow reply under about 80 words.+Keep each line short when the alert names several workflows.+Somebody is reading it while master is broken.-Line 4 is one clause for the gap and one for the probe, and it replaces the bare "could not check" rather than adding to it. "Unconfirmed: whether the shard rebalance landed first" is the whole line.-Name the probe as a fact, never as an offer. "Let me know if you need more" is filler, and so is any sentence about what you would be happy to do.+Do not recommend a rerun for a real regression or a code change for infrastructure.+Name a probe as a fact, never as an offer.+Do not add "Let me know if you need more" or say what you would be happy to do.-A reply in the thread reaches you and buys another full run, which is why the probe is worth naming at all.-Treat the first answer as the opening of a conversation rather than a report you defend.+A human reply can continue the same task while it remains open.+Answer the follow-up directly; repeat investigation steps only when its question needs newer evidence.diff --git a/.agents/skills/debugging-ci-failures/references/master-red-workflow-setup.md b/.agents/skills/debugging-ci-failures/references/master-red-workflow-setup.mdindex c72de8d94a5f..21ccb67c80a1 100644--- a/.agents/skills/debugging-ci-failures/references/master-red-workflow-setup.md+++ b/.agents/skills/debugging-ci-failures/references/master-red-workflow-setup.md@@ -1,62 +1,70 @@# Setting up the master-red diagnosis workflow-The agent that answers a master-red incident is a PostHog Workflow, built in the UI, with a Slack-message trigger and one "Create AI task" step.-Its instructions point at `master-red-incident.md` in this directory, so what the agent does ships by PR while the wiring stays configuration.--Nothing in this repository fires it. The DevEx alerter posts its incident message to #alerts-devex as it always has, and the workflow triggers on that message.+The agent that answers a master-red incident is a PostHog Workflow with a webhook trigger and one "Create AI task" step.+The DevEx alerter opens the Slack incident, then invokes the workflow with the incident thread and observed CI state.+The task instructions point to `master-red-incident.md` in this directory, so investigation behavior ships through the repository while the workflow owns task creation and Slack delivery.## Why this shape-- A CI failure is not a webhook a workflow can subscribe to, and `ALLOWED_GITHUB_TRIGGER_EVENTS` covers only issues, comments, PRs and pushes. The alert message is the only artifact that means "master has been red long enough to matter".-- The alerter already decides that. It opens an incident on a 5-run failure streak or 60 minutes red, so triggering on its message inherits that judgment instead of re-deriving it.-- A Slack-triggered task binds to the thread automatically, so the answer lands under the alert rather than in a new message.+- The alerter already decides when a sustained failure deserves an incident. The workflow should not derive that decision again.+- A direct webhook avoids matching Slack message text and starts only when the alerter opens an incident.+- The payload carries the Slack channel and thread timestamp, so the task can reply to the existing incident.+- The payload also carries the observed failing lanes. The agent verifies them against GitHub before diagnosing because the lane can recover after the alert opens.## Build it-In [Workflows](https://us.posthog.com/project/2/workflows), create a workflow with:+Create a workflow with a POST webhook trigger.+Emit `$slack_message_received` so the task action can use the existing Slack-thread integration.+Map these request values into event properties without changing their shape:-**Trigger: Slack message posted**+| Event property | Request value |+| ---------------------- | ---------------------------------------------- |+| `channel` | `request.body.properties.channel` |+| `ts` | `request.body.properties.ts` |+| `workflows` | `request.body.properties.workflows` |+| `since` | `request.body.properties.since` |+| `commit_streak` | `request.body.properties.commit_streak` |+| `latest_commit_sha` | `request.body.properties.latest_commit_sha` |+| `all_failing_runs_url` | `request.body.properties.all_failing_runs_url` |-| Field | Value | Why |-| ----------------------------- | ------------------------------- | ---------------------------------------------------------------------------------------- |-| Channel | `#alerts-devex` | Required. Without it the trigger runs on every message in every channel the bot is in. |-| Who can start a run | Specific apps, `A0B83REAZU3` | The DevEx app, which posts the incident. |-| Ignore replies inside threads | on | The agent's own replies land in this channel. Without this they re-trigger the workflow. |-| Additional filter | `text` contains `Master is red` | The same app posts other alerts, and each one would otherwise start a run. |+Configure the "Create AI task" step with:-Edits do not fire the trigger: `_TRIGGERING_SUBTYPES` in `slack_workflow_events.py` admits only real posts, so the alerter's per-tick update of its own message is ignored.+| Input | Value |+| ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |+| Instructions | The alert fields as data, then: read `.agents/skills/debugging-ci-failures/references/master-red-incident.md` and its parent `SKILL.md`, and answer the incident as they prescribe. |+| Repository | `PostHog/posthog` |+| Model | `gpt-5.6-sol` |+| Connectors | none |+| PostHog MCP scopes | `read_only` |+| Max parallel tasks | 1 |+| Reply in the Slack thread | on |-**Step: Create AI task**+The editor hides the Slack-thread option for webhook triggers, but the action defaults it to on.+Preserve that default so the emitted Slack event binds the task to the incident thread.-| Input | Value |-| ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| Instructions | The alert text as data, then: read `.agents/skills/debugging-ci-failures/references/master-red-incident.md` and its parent `SKILL.md`, and answer the incident as they prescribe. |-| Repository | `PostHog/posthog` |-| Model | empty, so the default applies |-| Connectors | none |-| PostHog MCP scopes | `read_only` |-| Max parallel tasks | 1 |-| Reply in the Slack thread | on |+Keep the task prompt below the incident data explicit:-Notes on the choices:+```text+Begin with tool calls. Read .agents/skills/debugging-ci-failures/references/master-red-incident.md and its parent SKILL.md in this repository, then answer this incident exactly as they prescribe. Emit no plan, preamble, or progress update. Post one reply: the verdict, the failing job, the evidence, and the next action for a human. Never re-run or dispatch CI, and never push a commit or open a PR.+```-- Connectors stay empty because the Slack reply is native. The step binds `slack_context` from the triggering message, and replies in that thread reach the agent, so no MCP installation is involved.-- `read_only` covers the engineering analytics reads the parent skill uses. The run needs no write scope anywhere.-- One parallel task keeps a burst of incidents from fanning out into a burst of runs.-- The task runs as the workflow's owner. That account must stay active in the org.+## Contract with the alerter-## The contract with the alerter+`.github/scripts/ci-alerts-devex.js` sends `properties.workflows` as lane records.+Each record contains the displayed name, workflow file, trigger event, observed run ID and URL, creation time, and head SHA.+Keep the workflow's `workflows` property mapping unchanged so these records reach the task.+Older events can contain names only, and `master-red-incident.md` retains that fallback.-The `text` filter matches a string built by `buildAnchorMessage` in `.github/scripts/ci-alerts-devex.js`.-Reword that headline and the workflow silently stops firing, with no error anywhere.-Change one and check the other.+The workflow must preserve `channel` and `ts` because the task uses them to reply in the incident thread.+The alerter invokes the workflow only when it creates an incident, so an unchanged open incident does not start another task.## Turning it off-Disable the workflow. The alerter is unaffected, because it does not know the workflow exists.+Disable the workflow or remove the alerter's diagnosis webhook configuration.+The Slack incident continues to work without the diagnosis task.## Letting it open PRs later-The step has no PR switch: a task opens a PR only when its instructions ask for one, and `master-red-incident.md` forbids it.-Leave that in place until the thread answers have been read for a few weeks.-When the cause is infrastructure, no PR is the correct output, and an agent that opens one produces noise with a review cost attached.+The task opens a PR only when its instructions ask for one, and `master-red-incident.md` forbids it.+Keep that rule until the workflow has enough reviewed history to justify write access.+Infrastructure failures need no code change, and speculative repair PRs create review work without resolving the incident.diff --git a/.github/scripts/ci-alerts-devex.js b/.github/scripts/ci-alerts-devex.jsindex 85bb95fa700d..5ae10f7d72da 100644--- a/.github/scripts/ci-alerts-devex.js+++ b/.github/scripts/ci-alerts-devex.js@@ -188,6 +188,7 @@ async function fetchSettledRuns(github, owner, repo, workflowFile, perPage, { evif (run.status !== 'completed') {continue}if (run.conclusion === 'cancelled' || run.conclusion === 'skipped') {continue}settled.push({+ id: run.id,name: run.name,conclusion: run.conclusion,sha: run.head_sha,@@ -248,7 +249,10 @@ function buildFailingMap(laneRuns) {lane,since: oldest.updated_at, // detection (full streak)displaySince: contiguousFailureSince(runs, count), // display only (gap-bounded)+ run_id: latest.id,run_url: latest.run_url,+ run_created_at: latest.created_at,+ run_sha: latest.sha,workflow_file: latest.workflow_file,consecutive_failures: count,}@@ -642,7 +646,15 @@ module.exports = async ({ context, github, core }, { now: _now, slack: _slack, fproperties: {channel,ts: posted.ts,- workflows: workflows.map((w) => w.name),+ workflows: blocking.map((failure) => ({+ name: failure.name,+ workflow_file: failure.workflow_file,+ event: failure.lane.event,+ run_id: failure.run_id,+ run_url: failure.run_url,+ run_created_at: failure.run_created_at,+ head_sha: failure.run_sha,+ })),commit_streak: commitActive ? commitStreakCount : 0,since,latest_commit_sha: latestCommit?.sha || '',diff --git a/.github/scripts/ci-alerts-devex.test.js b/.github/scripts/ci-alerts-devex.test.jsindex a74519b6a03a..47bc7a154bba 100644--- a/.github/scripts/ci-alerts-devex.test.js+++ b/.github/scripts/ci-alerts-devex.test.js@@ -25,11 +25,13 @@ function recordingFn(impl) {// Workflow-run objects in raw listWorkflowRuns shape, conclusions newest-first.function runs(name, conclusions) {return conclusions.map((conclusion, i) => ({+ id: 1000 + i,name,status: 'completed',conclusion,head_sha: `sha_${name}_${i}`,html_url: `https://github.com/runs/${name}/${i}`,+ created_at: minutes(-(i * 5)).toISOString(),updated_at: minutes(-(i * 5)).toISOString(),}))}@@ -240,7 +242,17 @@ describe('ci-alerts-devex', () => {assert.equal(body.event, 'master_ci_incident_opened')assert.equal(body.properties.channel, 'C0AS64N6DJL')assert.equal(body.properties.ts, '111.222') // the anchor, so the agent replies under it- assert.deepEqual(body.properties.workflows, ['Backend CI'])+ assert.deepEqual(body.properties.workflows, [+ {+ name: 'Backend CI',+ workflow_file: 'ci-backend.yml',+ event: 'push',+ run_id: 1000,+ run_url: 'https://github.com/runs/Backend CI/0',+ run_created_at: minutes(0).toISOString(),+ head_sha: 'sha_Backend CI_0',+ },+ ])})it('retries a failed start rather than losing it', async () => {@@ -343,10 +355,17 @@ describe('ci-alerts-devex', () => {: { 'ci-backend.yml': 'success', 'ci-frontend.yml': 'failure' }))- const { slack, outputs } = await run(createGithubMock(runsByWorkflow, { commits }))+ const fetch = makeWebhook()+ const { slack, outputs } = await run(createGithubMock(runsByWorkflow, { commits }), {+ env: { DIAGNOSIS_WEBHOOK_URL: 'https://webhooks.test/start' },+ fetch,+ })assert.equal(outputs.action, 'create')assert.equal(outputs.commit_streak, '10')+ const payload = JSON.parse(fetch.calls[0][1].body)+ assert.deepEqual(payload.properties.workflows, [])+ assert.equal(payload.properties.latest_commit_sha, 'commit_sha_0')const anchor = slack.postMessage.calls[0][0]const body = JSON.stringify(anchor.attachments)assert.match(body, /10 commits in a row failed a required check/)