Структурированная сводка для этой задачи не записана. Показан сохранённый результат без изменений.
Итог
The lead list is now a monitoring view of the autonomous pipeline, on desktop and on phones. The dispatcher check python3 -m unittest tests.test_monitoring_lead_list -v passes all 25 tests.
What the list shows now
- Columns: Company | Trigger | Fit | Why now | Stage | Factory next action / result.
- Phones: one row of about 46px per lead, with a checkbox, the company name, a one-line Factory next action and a stage label.
- Campaign: named once at the top of the page ("Campaign: …"), never repeated per row.
- Removed from the list: Lead ID, Class / score, the Evidence / Review / Shortlist columns and pills, the E/R/S indicators and their legend, and the U1/S2-style evidence counts. All of these still appear on the lead's detail page (dossier), which now also shows the stage and the Factory next action.
- Warning: the only one is a "⚠ Blocked" stage label with a concrete reason.
- Filters: search, Campaign and a new Stage filter. Old links that use the review/evidence/shortlist filters still work.
- List bar: shows per-stage counts, e.g. "54 lead(s) · Screening 47 · Blocked 7".
How the stage and next action are worked out
- They come from data the system already stores. Nothing on this page starts a pass or contacts anyone.
- Each lead lands in one stage, checked in this order:
- Shortlisted: "Ready for presales handoff (outreach off)".
- Blocked: the shortlist rules are no longer met. The first unmet rule is shown.
- Rejected: by an override (who and why are shown) or by the qualification pass.
- Blocked: no dated, sourced signal yet. Shown as "Research pass: find a dated, sourced signal".
- Qualified: "Shortlist ranking on next run".
- Qualification: held for missing evidence, or waiting for the qualification pass.
- Screening: everything else. Shown as "Screening pass: hard filters and campaign fit".
- Trigger, Fit and Why now: shown only once a qualification pass has produced a result. Until then the row says "Not yet qualified". Hypothesis text from the imported cards is never shown in these columns, so LEAD-QUAL-001 has to supply the values.
- Live data: of the 54 live leads, 47 are at Screening and 7 are Blocked because their imported cards have no source link or date. Trigger, Fit and Why now are pending for all 54. I checked this on a copy; the live database was not changed.
Tests
- New:
tests/test_monitoring_lead_list.py. - Updated to the new layout:
tests/test_compact_leads.py, tests/test_mobile_ui.py and tests/compact_list_check.js. - Real-browser checks pass: on a 390×844 phone screen (no sideways scrolling, 46–47px rows, 13 rows visible on the live data) and a 1280×800 desktop (six columns, rows at most 60px high). I also looked at screenshots of both against a copy of the live data.
- Full suite: 413 tests, 4 failures. All 4 were already failing before my changes, in campaign-config and e2e code I didn't touch.
Files changed (in /home/iovon/lead-generation)
app/review_queue.pyapp/review_ui.pyapp/main.py (adds the stage filter)app/static/app.cssdocs/monitoring-lead-list.md (new; includes the full stage table)docs/compact-leads-verification.md (marked as superseded)
Not done (left out to stay in scope)
- The
/queue page and the "Human review" batch action still exist. The queue rows use the new layout, but whether to remove
[truncated]