probo
probo copied to clipboard
Tracker mapping first party wrong attributions
Summary by cubic
Adds a FIRST_PARTY verdict to the tracker‑pattern catalog and tightens mapping to stop wrong vendor attributions from spreading. Keeps verdicts and vendor links consistent (clears stale org links on first‑party, no enrichment requeue), requires concrete evidence, and adds proboctl tools to curate, audit, upsert, and mark verdicts; e2e seeds set attribution to avoid NOT NULL failures.
Coredata +252 -24
- Added
CommonTrackerPatternAttributionandattributioncolumn; migration backfills vendors and drops DEFAULT. - Upsert preserves
FIRST_PARTY(rows stay vendor‑free) and skips enrichment requeue forFIRST_PARTY. RelinkCommonThirdPartyByIDssets verdicts on link/unlink; addedSetAttributionByIDs; filter gains.WithAttribution.
Service +259 -26
- Deterministic adoption trusts only confidence ≥0.9;
FIRST_PARTYshort‑circuits; skip agent forPRE_EXISTINGpatterns. - On a
FIRST_PARTYverdict, clear any stale orgThirdPartylink. - Agent returns
evidence_sourceandis_first_party; rejects attributions with no concrete evidence; corroborating a prior low‑confidence vendor promotes it to trusted.
proboctl +417 -3
- New
commontrackerpattern upsertkeyed by natural key; honorsFIRST_PARTY; normalizes verdicts when linking/unlinking (THIRD_PARTYon link,UNDETERMINEDon unlink); optional--enrich. - New
commontrackerpattern mark-first-partyto record the verdict and remap uncategorised org patterns. listadds--attributionand shows “Verdict”;showdisplays the verdict; seeder setsTHIRD_PARTYwhen a vendor exists.
Tests +595 -3
- Coverage for terminal first‑party behavior, clearing stale org links, non‑adoption of low‑confidence vendors, evidence gating, and helper logic.
- e2e seed helper inserts
UNDETERMINEDattribution.
Agents +36 -0
- Cursor rule documenting migration timestamp naming and SQL headers.
Written for commit 0b1c755471cf71020b0fa29fff5dd2cad81e9199. Summary will update on new commits.