LEAD-QUAL-001.1 · Campaign qualification profile and autonomous funnel
Отдельный файл отчёта для этой задачи не найден или не указан. Показан сохранённый результат задачи.
Each campaign now carries its own rules in its config file: which companies may enter, the hard filters, the scoring weights and thresholds, rejection reasons, how humans monitor and override, and how the shortlist is built. No step requires a human. The pilot is migrated to this new version. python3 -m unittest tests.test_campaign_config -v passes all 105 tests. I did not run the 54 live leads and did not change the live database.
Pipeline: Candidate → Screened → Qualified → Shortlisted
- Entry: a company becomes a Candidate only if it matches the campaign targeting and has at least one dated signal that names it, with a real source URL. Ingesting company directories is forbidden in the config itself. These entry checks are rule-based; no AI decides here.
- AI pass 1 (cheap screening): answers yes/no questions from the config (competitor or vendor, product-usage-only evidence, unclear which company the signal is about). It also re-checks country, size and sector. Survivors become Screened.
- AI pass 2 (deep scoring): scores the seven weighted criteria, which sum to 100. A criterion only earns points if it cites evidence the system has confirmed against its source ("SUPPORTED"). Human "VERIFIED" evidence is optional and never required. The thresholds (70 qualified, 40 needs research) are in the config. Candidates that aren't ready yet stay Screened with a reason rather than being rejected.
- Shortlist: happens automatically, with no human approval. Candidates are ranked, capped per run, and each gets a handoff package for the later presales stage. Outreach stays off.
- Rejection reasons: every rejection or hold has a reason ID from the config, and the validator fails if a reason is undefined, used at the wrong stage, or never used.
- Humans: monitor and override only. An override needs a named person and a reason, is logged permanently, and never blocks the pipeline. Forcing a company onto the shortlist still needs a real dated source.
Pilot changes (config/pilot-campaign.json)
- Version: now on the new contract version 2, config_version 2.
- Human gates removed: the mandatory human review stage, the "human must approve the shortlist" setting and the "5 of 10 judged worth contacting by a human" goal are gone.
- Private/public sector: decided in config. Private, public and mixed organisations are all included. Public bodies get a note that they usually buy through procurement, which matters for the later contact stage. An unknown sector may enter but must be resolved during screening.
- Countries: a list of European country codes. I left out Russia and Belarus (sanctions) and Turkey. That was my call, so please confirm or adjust.
- Run approval: a human still has to approve the start of each run. This only controls spending; it is not a quality gate.
Older version-1 configs still work
- Saved version-1 configs, including
pilot-control-plane.json and the one stored in the live database, still validate under their old rules. They keep their old meaning (human-approved shortlist), and the new pipeline code refuses them. upgrade_v1_to_v2() converts a version-1 config. It requires every new decision (such as sector policy) to be supplied and never fills them in itself.- The database needed no schema change.
- The old pilot is kept as a test fixture.
Other changes
- The research workflow now takes its "human review required" flag
[truncated]
Материалы