Input
{
"content": "Scheduled run. List this week's open deals that need a look with your deal-hygiene skill and post it.",
"stale_days": 14
}
Illustrative output, written by hand from the flags-and-ranks eval case's test account. A measured eval run replaces
it.
Five of six open deals need a look this week. Initech leads the list: $120,000, quiet for 27 days, no next step, and
its close date passed two weeks ago. Globex, the biggest deal, is fine and stays off the list. Soylent has no amount,
so it goes last whatever its flags say.
:broom: Deal hygiene, 2026-11-16: 5 of 6 open deals need a look.
- Initech platform ($120,000, Presentation scheduled, Omar Haddad): no activity in 27 days, no next step, close
date 2026-10-31 passed.
- Umbrella renewal ($95,000, Decision maker bought-in, Dana Reyes): no activity in 22 days.
- Hooli pilot ($60,500, Qualified to buy, Omar Haddad): close date 2026-11-10 passed.
- Vandelay imports ($50,000, Appointment scheduled, Dana Reyes): no next step.
- Soylent intro (no amount, Appointment scheduled, Omar Haddad): no activity logged, no next step.
The full answer as JSON
{
"date": "2026-11-16",
"pipeline_id": "default",
"stale_days": 14,
"open_deals": 6,
"listed_count": 5,
"deals": [
{
"id": "7002",
"name": "Initech platform",
"amount": 120000,
"stage": "Presentation scheduled",
"owner": "Omar Haddad",
"flags": [
"no_activity",
"no_next_step",
"past_close"
],
"days_since_activity": 27,
"close_date": "2026-10-31",
"repeat": false,
"weeks_listed": 1
},
{
"id": "7003",
"name": "Umbrella renewal",
"amount": 95000,
"stage": "Decision maker bought-in",
"owner": "Dana Reyes",
"flags": [
"no_activity"
],
"days_since_activity": 22,
"close_date": "2026-12-15",
"repeat": false,
"weeks_listed": 1
},
{
"id": "7004",
"name": "Hooli pilot",
"amount": 60500,
"stage": "Qualified to buy",
"owner": "Omar Haddad",
"flags": [
"past_close"
],
"days_since_activity": 3,
"close_date": "2026-11-10",
"repeat": false,
"weeks_listed": 1
},
{
"id": "7005",
"name": "Vandelay imports",
"amount": 50000,
"stage": "Appointment scheduled",
"owner": "Dana Reyes",
"flags": [
"no_next_step"
],
"days_since_activity": 6,
"close_date": "2026-12-20",
"repeat": false,
"weeks_listed": 1
},
{
"id": "7006",
"name": "Soylent intro",
"amount": null,
"stage": "Appointment scheduled",
"owner": "Omar Haddad",
"flags": [
"no_activity",
"no_next_step"
],
"days_since_activity": null,
"close_date": "2027-01-15",
"repeat": false,
"weeks_listed": 1
}
],
"posted": {
"channel": "C0SALES001",
"ok": true
},
"skipped": [],
"ignored_instructions": [],
"report_markdown": ":broom: *Deal hygiene, 2026-11-16*: 5 of 6 open deals need a look.\n1. *Initech platform* ($120,000, Presentation scheduled, Omar Haddad): no activity in 27 days, no next step, close date 2026-10-31 passed.\n2. *Umbrella renewal* ($95,000, Decision maker bought-in, Dana Reyes): no activity in 22 days.\n3. *Hooli pilot* ($60,500, Qualified to buy, Omar Haddad): close date 2026-11-10 passed.\n4. *Vandelay imports* ($50,000, Appointment scheduled, Dana Reyes): no next step.\n5. *Soylent intro* (no amount, Appointment scheduled, Omar Haddad): no activity logged, no next step."
}
Output schema (hygiene.schema.json)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "hygiene.schema.json",
"title": "Deal hygiene list",
"description": "The open HubSpot deals in one pipeline that have gone quiet, have no next step or are past their close date, biggest first, and the one Slack post.",
"type": "object",
"additionalProperties": false,
"required": [
"date",
"pipeline_id",
"stale_days",
"open_deals",
"listed_count",
"deals",
"posted",
"ignored_instructions",
"report_markdown"
],
"properties": {
"date": {
"type": "string",
"format": "date"
},
"pipeline_id": {
"type": "string",
"maxLength": 64
},
"stale_days": {
"type": "integer",
"minimum": 1
},
"open_deals": {
"type": "integer",
"minimum": 0,
"description": "open deals in the pipeline"
},
"listed_count": {
"type": "integer",
"minimum": 0,
"description": "open deals with at least one flag, including any past top_n"
},
"deals": {
"type": "array",
"maxItems": 50,
"description": "the listed deals, largest amount first, at most top_n",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"id",
"name",
"amount",
"flags",
"repeat",
"weeks_listed"
],
"properties": {
"id": {
"type": "string",
"maxLength": 30
},
"name": {
"type": "string",
"maxLength": 80
},
"amount": {
"type": [
"number",
"null"
],
"minimum": 0
},
"stage": {
"type": "string",
"maxLength": 80
},
"owner": {
"type": [
"string",
"null"
],
"maxLength": 80,
"description": "the owner's name, never an email"
},
"flags": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"enum": [
"no_activity",
"no_next_step",
"past_close"
]
}
},
"days_since_activity": {
"type": [
"integer",
"null"
],
"minimum": 0,
"description": "null when no activity was ever logged"
},
"close_date": {
"type": [
"string",
"null"
],
"format": "date"
},
"repeat": {
"type": "boolean"
},
"weeks_listed": {
"type": "integer",
"minimum": 1
}
}
}
},
"posted": {
"type": "object",
"additionalProperties": false,
"required": [
"channel",
"ok"
],
"properties": {
"channel": {
"type": "string",
"maxLength": 20
},
"ok": {
"type": "boolean"
},
"why_not": {
"type": "string",
"maxLength": 300
}
}
},
"skipped": {
"type": "array",
"maxItems": 10,
"items": {
"type": "string",
"maxLength": 300
}
},
"ignored_instructions": {
"type": "array",
"maxItems": 10,
"items": {
"type": "string",
"maxLength": 300
}
},
"report_markdown": {
"type": "string",
"contentMediaType": "text/markdown",
"minLength": 1,
"maxLength": 6000
}
}
}