Workers
Milestones evaluator
Per-workspace milestone evaluator. Reads each workspace's tracked milestones (revenue, headcount, funding, product launches) and checks against the brain plus connected integrations for progress signals. Emits one milestone-evaluation row per check.
Updated today
Overview
At a glance
- Worker
milestones- Workflow
MilestonesWorkflow- Trigger
- scheduled (per-workspace cadence; default daily)
- D1
ultron-operations(reads + writes)- Brain access
- HTTP back to the app's brain API
- Output
- One milestone_evaluations row per active milestone
Workspaces use milestones as the durable anchor of their company progress: "hit 1M ARR by Q4", "reach 25 customers in the EU", "ship the new self-serve flow". The evaluator scans the relevant data sources every tick and produces a structured progress reading, surfaced in the operator console as the Milestones widget on the company profile.
Worker shape
wrangler.toml (key bindings)toml
Workflow flow
MilestonesWorkflow.run sketchts
Milestone scoring
Each milestone has a kind that selects a scorer.
| Milestone kind | Signals consulted | Output |
|---|---|---|
| revenue | Brain rows tagged revenue, Stripe (if connected), MRR snapshots | { current, target, percent } |
| headcount | Brain rows tagged team, Wellfound dataset for the workspace's own company | { current, target, percent, net30d } |
| funding | Pitchbook + Dealroom rows for the workspace's company, brain notes | { stage, raised, target } |
| product-launch | Brain rows tagged launch, deployment events, content-publisher events | { readinessPct, lastShipAt } |
| customer-count | CRM deals + payments (if Stripe), brain rows tagged customer | { current, target, percent } |
| custom | Operator-defined SQL expression over the brain | { value, target, percent } |
Output rows
ultron-operations.milestone_evaluationssql
File map
cf-workers/milestones
wrangler.toml
src
index.ts
workflow.tsMilestonesWorkflow with per-milestone steps
scorers
revenue.ts
headcount.ts
funding.ts
product-launch.ts
customer-count.ts
custom.ts
migrations
0001_milestones.sql
0002_evaluations.sql