Skip to content

The agent that grows with you

feat(skills): unbroker spam-call lane (phone-led runs + DNC one-shot)

SHL0MS3e1a5b13688c
diff --git a/optional-skills/security/unbroker/README.md b/optional-skills/security/unbroker/README.md
index 5a11e898c73..3a3b6980492 100644
--- a/optional-skills/security/unbroker/README.md
+++ b/optional-skills/security/unbroker/README.md
@@ -57,6 +57,11 @@ Drive it from a Hermes session:
> "Use the unbroker skill to remove my data from data brokers. Here is my consent. Run it hands-off
> and show me the human-task digest at the end."
+Or, phone-first (spam-call scrubbing):
+
+> "My number is getting hammered by spam calls. Find where it's listed, scrub it, and put it on
+> the Do Not Call Registry."
+
The agent configures itself (`setup --auto` selects programmatic email if `EMAIL_*` creds exist, the
cloud browser if available, and encryption if `age` is installed), records your consent, then drains
the autonomous queue: scan, opt out (parents first), send and verify emails, schedule re-checks. You
@@ -72,6 +77,7 @@ The underlying CLI (run via `terminal`, as `python3 scripts/pdd.py <cmd>`):
| `pdd.py brokers` / `refresh-brokers` | List people-search brokers, or pull the latest BADBOOL list plus the CA registry |
| `pdd.py registry` | State data-broker registry coverage (CA ~545 ingested; VT/OR/TX portals); `--search` to find one |
| `pdd.py drop` | The CA DROP one-shot: delete from all registered brokers in a single request |
+| `pdd.py dnc` | The spam-call one-shot: register US personal numbers on the FTC National Do Not Call Registry |
| `pdd.py plan` | Per-broker tier, method, search vectors, and the exact fields to disclose |
| `pdd.py fanout` | Batch brokers into parallel `delegate_task` subagents |
| `pdd.py record` | Update the ledger (validated state machine); auto-stamps recheck dates |
@@ -114,6 +120,11 @@ The underlying CLI (run via `terminal`, as `python3 scripts/pdd.py <cmd>`):
- **The DROP one-shot.** California's Delete Request and Opt-out Platform is live: for a CA resident,
a single verified request deletes their data from **every registered broker at once**, and
`pdd.py next` surfaces it as the highest-leverage action.
+- **Spam-call lane.** A run can be entered from the phone number ("my number keeps getting spam
+ calls"): the number is scanned across the reverse-phone people-search sites (18 of the 22
+ curated records), opted out, and re-checked on the same schedule - and `pdd.py dnc` registers it
+ on the FTC's National Do Not Call Registry (surfaced by `next` for US personal numbers until
+ filed).
- **Ledger, audit, and re-scan.** Every case is a validated state machine, every PII disclosure is
logged (field names only), and confirmed removals are re-scanned on a schedule so a re-listing is
caught and re-filed. Ledger writes are file-locked for safe concurrent runs.
@@ -122,7 +133,7 @@ The underlying CLI (run via `terminal`, as `python3 scripts/pdd.py <cmd>`):
## Tests
-85 hermetic tests (no network, browser, or email; SMTP and IMAP are exercised through injected
+34 hermetic tests (no network, browser, or email; SMTP and IMAP are exercised through injected
fakes):
```bash
@@ -147,7 +158,7 @@ python3 tests/skills/test_unbroker_skill.py # dependency-
**v1.0.** The deterministic engine, the autonomous loop, the verified cluster-parent deletion lanes,
and full broker-registry coverage (the CA Data Broker Registry plus the DROP one-shot) are built and
-covered by 85 hermetic tests. The skill ships placeholder data only. Live agent-driven submission
+covered by 34 hermetic tests. The skill ships placeholder data only. Live agent-driven submission
against broker sites is the active field-testing frontier.
## Credits and license
diff --git a/optional-skills/security/unbroker/SKILL.md b/optional-skills/security/unbroker/SKILL.md
index c06a4bb0f42..74361404a38 100644
--- a/optional-skills/security/unbroker/SKILL.md
+++ b/optional-skills/security/unbroker/SKILL.md
@@ -1,6 +1,6 @@
---
name: unbroker
-description: Autonomously remove your info from data-broker sites.
+description: Remove your info from data-broker sites, by name or phone.
version: 1.0.0
author: SHL0MS (github.com/SHL0MS)
license: MIT
@@ -28,7 +28,8 @@ The Python CLI (`scripts/pdd.py`) owns the deterministic state - config, dossier
broker database, tier planning, the ledger, drafts, reports, **email sending (SMTP), verification-link
polling (IMAP), and the autonomous action queue (`next`)**. You (the agent) do the scanning and
form-driving with native tools: `web_extract` and `browser_exec` for searching and web forms, and
-`cronjob` for recurring re-scans.
+`cronjob` for recurring re-scans. Runs can be entered from a phone number alone (spam-call
+scrubbing), with the FTC Do Not Call registry one-shot (`dnc`) alongside the opt-outs.
## Autonomy contract
@@ -58,6 +59,8 @@ verifying re-scan.
- "Opt me out", "delete me from Spokeo/Whitepages/etc.", "clean up after a doxxing."
- "Set up recurring privacy monitoring" (brokers re-list people).
- Checking which brokers still expose someone and why.
+- "My number keeps getting spam calls" - phone-led scrub: find where the number is listed, opt
+ out, register it on the Do Not Call Registry, and re-check on a schedule.
## Prerequisites
@@ -112,12 +115,13 @@ breaks reading the dossier).
| `$PDD setup --auto` | **Autonomous setup**: detect capabilities, pick the most autonomous valid config (no questions) |
| `$PDD doctor` | Readiness check: config, broker count, and which upgrades are on/available |
| `$PDD cdp [--check] [--print] [--port N]` | Launch/detect the operator's Chrome over CDP for Phase-2 browser + webmail (dedicated debug profile; the reliable way to send webmail and clear session-bound gates) |
-| `$PDD intake --full-name "..." [--alias ...] [--email ... --phone ...] [--city --state] [--prior-location "City,ST"] --consent` | Create a consenting subject; captures aliases + multiple emails/phones + prior locations; prints `subject_id` |
+| `$PDD intake --full-name "..." [--alias ...] [--email ... --phone ...] [--focus-phone ...] [--city --state] [--prior-location "City,ST"] --consent` | Create a consenting subject; captures aliases + multiple emails/phones + prior locations; prints `subject_id`. Phone-led (spam-call) runs may start from `--phone` alone + `--focus-phone` (the number being scrubbed); a missing name is warned, not required |
| `$PDD next <subject>` | **The autonomous loop driver**: ordered agent actions right now + human digest + `next_wake_at` |
| `$PDD brokers [--priority crucial]` | List the people-search broker database (curated + live) |
| `$PDD refresh-brokers` | Pull the latest BADBOOL people-search list **and the CA Data Broker Registry** (`next` requeues this automatically when the cache is stale) |
| `$PDD registry [--search NAME]` | State registry coverage (CA ~545 ingested; VT/OR/TX portals surfaced); the DROP/email lane, not scanned |
| `$PDD drop <subject> [--filed]` | **The one-shot legal lever**: one CA DROP request deletes from ALL registered brokers; `--filed` records it |
+| `$PDD dnc <subject> [--filed]` | **The spam-call lever**: register the subject's US personal numbers on the FTC National Do Not Call Registry (sales calls stop within 31 days, never expires); `--filed` records it |
| `$PDD plan <subject> [--priority crucial]` | Per-broker tier + method + `search_vectors` + the exact fields to disclose |
| `$PDD plan <subject> --batch` | **Reduce view**: overlays ledger state, groups brokers by next action (unscanned/found/indirect/blocked/in_progress/done), collapses ownership clusters, **orders `found` cluster-parents-first + emits a tailored `parent_playbook`**, prints `next_actions` |
| `$PDD fanout <subject> [--priority crucial] [--size 5]` | Batch brokers into parallel `delegate_task` subagents (auto for large runs; batches of 5 - 8+ time out) |
@@ -270,6 +274,28 @@ recording `found` and before any deletion.
windows, verification polls, and reappearance sweeps all flow through the same queue, so the case
keeps advancing with zero human attention.
+## Spam-call scrubber (phone-led run)
+
+A number that keeps getting spam calls is almost always published on people-search sites - that
+is where lead buyers get it. The same engine, entered from the number:
+
+1. **Intake from the number.** `$PDD intake --phone "+1-555-0100" --focus-phone "+1-555-0100"
+ --full-name "..." --email ... --consent`. `--focus-phone` marks the number being scrubbed: it is
+ added to the search vectors and becomes the `phone` field any opt-out form discloses (instead of
+ `phones[0]`). A name is not required to scan - phone/email/address vectors run, and brokers with
+ no runnable vector group as `unsearchable` (excluded from the crawl, never wedging the loop) -
+ but collect the full name + contact email at intake anyway: every opt-out form and legal request
+ needs them.
+2. **The loop is unchanged.** `$PDD next <subject>` drives the same crawl / opt-out / re-check
+ queue; the reverse-phone sites (18 of the 22 curated people-search records declare `by: phone`)
+ are scanned with the phone vector, and the re-check schedule watches for the number re-listing
+ (per the subject's `rescan_interval_days`).
+3. **DNC one-shot.** For a US personal number, `next` also surfaces `dnc_register` once: the FTC
+ National Do Not Call Registry (free, never expires, sales calls stop within 31 days; up to 3
+ numbers per pass, one confirmation email per number - open each link within 72 hours). `$PDD
+ dnc <subject>` prints the steps; `$PDD dnc <subject> --filed` records it. DNC stops lawful
+ telemarketers, not scammers - broker removal is what cuts the lead lists, so do both.
+
## Pitfalls
- **Never disclose more than the broker already shows.** Submit only `disclosure_fields`. The engine
diff --git a/optional-skills/security/unbroker/references/methods.md b/optional-skills/security/unbroker/references/methods.md
index 238152a74e2..5185ad819de 100644
--- a/optional-skills/security/unbroker/references/methods.md
+++ b/optional-skills/security/unbroker/references/methods.md
@@ -264,6 +264,30 @@ T2 and become human tasks. **Never use a third-party CAPTCHA-defeating service.*
-> **stop, do not loop** (e.g. PrivateRecords' distorted-text-THEN-arithmetic double gate). If no cited
rights-email exists, that is a genuine `blocked`.
+## Spam-call lane (reverse-phone search + DNC registration)
+
+A phone-led run ("my number keeps getting spam calls") is the same loop entered from the number:
+`intake --phone ... --focus-phone ...` (the focus number is what phone-asking opt-out forms
+disclose), then `next` as usual. `search_vectors` already emits one `by: phone` vector per dossier
+phone on every broker that declares phone search (18 of the 22 curated records). Two
+phone-specific notes:
+
+- **Reverse-phone pages SEO-echo the number too.** The title/H1 templating trap applies: a real
+ result is a card naming the subscriber (name / age / city), not the query echo. Corroborate
+ against the dossier before recording `found`.
+- **The page answers "whose number is this".** Running it reveals the subscriber behind the
+ number - only run phone vectors on the consenting subject's own numbers.
+
+**DNC one-shot** (`pdd.py dnc <subject>`, surfaced by `next` for US subjects with phones until
+`--filed`): register on the FTC's National Do Not Call Registry. Free, personal numbers only
+(business/fax lines are not covered), up to three numbers per registration pass with one
+confirmation email PER number (open each link within 72 hours or that number is not registered),
+sales calls stop within 31 days, registration never expires. It stops lawful telemarketers - it
+does NOT stop scammers, who ignore the list: broker removal is the complementary half, because the
+people-search listings are where lead lists come from. If the FTC form defeats the configured
+browser, present it as a manual step in the end-of-run digest; `dnc --filed` records completion so
+the loop stops re-surfacing it.
+
## Browser backends: scan vs execute
Two different jobs need two different browsers. Getting this wrong is the single biggest cause of a
diff --git a/optional-skills/security/unbroker/scripts/autopilot.py b/optional-skills/security/unbroker/scripts/autopilot.py
index 3ccaf1bdc20..911091b96d4 100644
--- a/optional-skills/security/unbroker/scripts/autopilot.py
+++ b/optional-skills/security/unbroker/scripts/autopilot.py
@@ -248,6 +248,28 @@ def next_actions(dossier: dict, brokers_list: list[dict], cfg: dict,
"after": f"python3 scripts/pdd.py drop {subject_id} --filed",
})
+ # 0c) National Do Not Call Registry one-shot (US personal numbers): the spam-call lever
+ # lawful telemarketers must honor (within 31 days). Complementary to broker removal --
+ # the people-search listings are where lead lists come from. Surfaced once until `dnc --filed`.
+ dnc_filed = bool((dossier.get("preferences") or {}).get("dnc_filed_at"))
+ dnc_phones = list(((dossier.get("identity") or {}).get("phones")) or [])
+ if residency.startswith("US") and dnc_phones and not dnc_filed:
+ actions.append({
+ "type": "dnc_register",
+ "one_shot": True,
+ "url": registry.DNC_URL,
+ "confirm_first": confirm_first,
+ "command": f"python3 scripts/pdd.py dnc {subject_id}",
+ "why": "US personal number(s) not yet on the National Do Not Call Registry: lawful "
+ "telemarketers must stop within 31 days; registration never expires.",
+ "how": "drive the FTC form with browser_exec (up to 3 numbers per pass + the subject's "
+ "contact email; the FTC emails a confirmation PER NUMBER -- open each link "
+ "within 72 hours or that number is not registered). If the form defeats the "
+ "configured browser, present it as a manual step in the end-of-run digest "
+ "instead of fighting it.",
+ "after": f"python3 scripts/pdd.py dnc {subject_id} --filed",
+ })
+
# 1) Phase 1 crawl: everything unscanned (read-only, parallel-safe)
unscanned = groups.get("unscanned") or []
if unscanned:
diff --git a/optional-skills/security/unbroker/scripts/dossier.py b/optional-skills/security/unbroker/scripts/dossier.py
index d19f907b752..a547f30fb4d 100644
--- a/optional-skills/security/unbroker/scripts/dossier.py
+++ b/optional-skills/security/unbroker/scripts/dossier.py
@@ -103,6 +103,15 @@ def contact_email(dossier: dict) -> str | None:
return prefs.get("contact_email_for_optouts") or (emails[0] if emails else None)
+def focus_phone(dossier: dict) -> str | None:
+ """The number a phone-led (spam-call) run is scrubbing, if one was designated at intake.
+
+ `select_disclosure` uses it as the `phone` field so a phone-asking opt-out form gets
+ the number being scrubbed even when it is not `phones[0]`.
+ """
+ return (dossier.get("preferences") or {}).get("focus_phone")
+
+
def select_disclosure(dossier: dict, inputs: list[str], override_email: str | None = None) -> dict:
"""Return ONLY the dossier fields a broker's opt-out actually requires.
@@ -124,7 +133,7 @@ def select_disclosure(dossier: dict, inputs: list[str], override_email: str | No
"state": addr.get("state"),
"postal": addr.get("postal"),
"date_of_birth": ident.get("date_of_birth"),
- "phone": phones[0] if phones else None,
+ "phone": focus_phone(dossier) or (phones[0] if phones else None),
}
out: dict = {}
for key in inputs:
diff --git a/optional-skills/security/unbroker/scripts/pdd.py b/optional-skills/security/unbroker/scripts/pdd.py
index ed9d4cc57de..37d7a93a782 100644
--- a/optional-skills/security/unbroker/scripts/pdd.py
+++ b/optional-skills/security/unbroker/scripts/pdd.py
@@ -308,8 +308,12 @@ def cmd_intake(args) -> None:
residency = data.get("residency_jurisdiction", "US")
prefs = data.get("preferences")
else:
- if not args.full_name:
- sys.exit("error: --full-name (or --json) is required")
+ # Phone-led intake: a spam-call run starts from the number. At least ONE identifier
+ # is required (name, phone, or email). The full name is not required to SCAN
+ # (phone/email/address vectors run; name-only brokers group as `unsearchable`), but
+ # every opt-out form and legal request needs it -- warned below, not refused.
+ if not (args.full_name or args.phone or args.email):
+ sys.exit("error: intake needs at least one identifier: --full-name, --phone, or --email")
identity = {"full_name": args.full_name, "emails": args.email or [], "phones": args.phone or []}
if args.alias:
identity["also_known_as"] = args.alias
@@ -341,13 +345,29 @@ def cmd_intake(args) -> None:
}
if args.contact_email:
prefs["contact_email_for_optouts"] = args.contact_email
+ if getattr(args, "focus_phone", None):
+ # Phone-led (spam-call) run: the number being scrubbed. Add it to the dossier
+ # phones so search vectors cover it even when it was not listed separately.
+ if args.focus_phone not in identity["phones"]:
+ identity["phones"].append(args.focus_phone)
+ prefs["focus_phone"] = args.focus_phone
d = dossier_mod.create(identity, consent, residency, prefs)
+ warnings: list[str] = []
+ if not (d["identity"].get("full_name") or "").strip():
+ warnings.append("no full_name on file: scans run (phone/email/address vectors) but most "
+ "opt-out forms and every legal request need the subject's legal name -- "
+ "collect it before Phase 2")
+ if not dossier_mod.contact_email(d):
+ warnings.append("no email on file: opt-out correspondence needs a contact email -- "
+ "collect one before Phase 2")
_out({"subject_id": d["subject_id"], "authorized": dossier_mod.is_authorized(d),
"residency": residency, "email_mode": (prefs or {}).get("email_mode"),
+ "focus_phone": (prefs or {}).get("focus_phone"),
"names": dossier_mod.all_names(d),
"emails": len(d["identity"].get("emails") or []),
"phones": len(d["identity"].get("phones") or []),
- "addresses": len(dossier_mod.all_addresses(d))})
+ "addresses": len(dossier_mod.all_addresses(d)),
+ "warnings": warnings})
def cmd_brokers(args) -> None:
@@ -437,6 +457,52 @@ def cmd_drop(args) -> None:
})
+def cmd_dnc(args) -> None:
+ """The spam-call one-shot: the FTC National Do Not Call Registry (US personal numbers).
+
+ Complementary to broker removal -- the registry is what lawful telemarketers must honor
+ (within 31 days); the people-search listings are where lead lists come from. Mirrors
+ `drop`: surfaced by `next` once per subject until `--filed` records it.
+ """
+ d = _require_subject(args.subject)
+ dossier_mod.require_authorized(d)
+ res = (d.get("residency_jurisdiction") or "US").upper()
+ phones = list((d.get("identity") or {}).get("phones") or [])
+ eligible = res.startswith("US") and bool(phones)
+ if args.filed:
+ prefs = d.setdefault("preferences", {})
+ prefs["dnc_filed_at"] = dossier_mod.now()
+ dossier_mod.save(d)
+ _out({"subject": args.subject, "dnc_filed_at": prefs["dnc_filed_at"],
+ "note": "recorded; `next` will stop surfacing the DNC one-shot"})
+ return
+ _out({
+ "subject": args.subject,
+ "eligible": eligible,
+ "residency": res,
+ "numbers": phones,
+ "dnc_url": registry.DNC_URL,
+ "steps": ([
+ f"Open {registry.DNC_URL} and enter the subject's personal number(s) -- up to "
+ f"three per pass ({len(phones)} on file here) -- with the subject's contact email.",
+ "The FTC sends a confirmation email PER NUMBER; open each link within 72 hours "
+ "or that number is not registered.",
+ "Sales calls stop within 31 days; registration never expires (personal numbers "
+ "only -- business/fax lines are not covered).",
+ f"After submitting, run `dnc {args.subject} --filed` so the loop stops "
+ "re-surfacing it.",
+ ] if eligible else [
+ "The National Do Not Call Registry covers US personal numbers only; this subject "
+ "has no US residency or no phone on file.",
+ "The broker-removal lane (`next`) is what cuts the lead lists scammers buy, in "
+ "any jurisdiction.",
+ ]),
+ "note": "DNC stops lawful telemarketers, not scammers; broker removal is the other "
+ "half. It is not a call blocker -- carriers' call-blocking/labeling handles "
+ "the rest.",
+ })
+
+
def cmd_plan(args) -> None:
d = _require_subject(args.subject)
dossier_mod.require_authorized(d)
@@ -453,7 +519,8 @@ def cmd_fanout(args) -> None:
d = _require_subject(args.subject)
dossier_mod.require_authorized(d)
bl = brokers_mod.by_priority(*(args.priority or [])) if args.priority else brokers_mod.load_all()
- grouping = tiers.fanout(bl, batch_size=args.size)
+ runnable, unsearchable = tiers.runnable_for(d, bl) # zero-vector brokers can't be scanned at all
+ grouping = tiers.fanout(runnable, batch_size=args.size)
mode = "scan AND opt-out (operator authorized submissions)" if args.optout \
else "READ-ONLY scan (submit nothing; reconnaissance only)"
batches = []
@@ -481,6 +548,7 @@ def cmd_fanout(args) -> None:
_out({
"subject": args.subject,
"broker_count": grouping["broker_count"],
+ "skipped_unsearchable": len(unsearchable),
"batch_size": grouping["batch_size"],
"should_fanout": grouping["should_fanout"],
"batch_count": len(batches),
@@ -776,6 +844,9 @@ def build_parser() -> argparse.ArgumentParser:
s.add_argument("--dob", help="date of birth YYYY-MM-DD (only used if a broker requires it)")
s.add_argument("--contact-email", dest="contact_email",
help="which email to use for opt-out correspondence (default: first)")
+ s.add_argument("--focus-phone", dest="focus_phone", metavar="PHONE",
+ help="phone-led (spam-call) run: the number being scrubbed -- added to the "
+ "search vectors and used as the `phone` field opt-out forms disclose")
s.add_argument("--residency", help="e.g. US, US-CA")
s.add_argument("--consent", action="store_true", help="subject authorizes removal on their behalf")
s.add_argument("--consent-method", default="self", choices=["self", "written_authorization", "poa"])
@@ -804,6 +875,14 @@ def build_parser() -> argparse.ArgumentParser:
s.add_argument("--filed", action="store_true", help="mark DROP as filed (stops `next` surfacing it)")
s.set_defaults(func=cmd_drop)
+ s = sub.add_parser("dnc",
+ help="spam-call one-shot: register the subject's US numbers on the FTC "
+ "National Do Not Call Registry (lawful telemarketers stop within 31 days)")
+ s.add_argument("subject")
+ s.add_argument("--filed", action="store_true",
+ help="mark the DNC registration as filed (stops `next` surfacing it)")
+ s.set_defaults(func=cmd_dnc)
+
s = sub.add_parser("plan", help="compute per-broker tier + next action for a subject")
s.add_argument("subject")
s.add_argument("--priority", action="append", choices=["crucial", "high", "standard", "long_tail"])
diff --git a/optional-skills/security/unbroker/scripts/registry.py b/optional-skills/security/unbroker/scripts/registry.py
index bc6aea42b87..2a501f87b96 100644
--- a/optional-skills/security/unbroker/scripts/registry.py
+++ b/optional-skills/security/unbroker/scripts/registry.py
@@ -35,6 +35,8 @@ _CA_CSV = "https://cppa.ca.gov/data_broker_registry/registry{year}.csv"
_CA_FLOOR_YEAR = 2025
DEFAULT_URL = _CA_CSV.format(year=_CA_FLOOR_YEAR)
DROP_URL = "https://privacy.ca.gov/drop"
+# National Do Not Call Registry (FTC): the US-wide personal-number list for spam-call runs.
+DNC_URL = "https://www.donotcall.gov/register.html"
USER_AGENT = "Mozilla/5.0 (compatible; unbroker/1.0; data opt-out)"
diff --git a/optional-skills/security/unbroker/scripts/tiers.py b/optional-skills/security/unbroker/scripts/tiers.py
index d83efcf33ec..6395de1ea8d 100644
--- a/optional-skills/security/unbroker/scripts/tiers.py
+++ b/optional-skills/security/unbroker/scripts/tiers.py
@@ -71,6 +71,7 @@ def plan(subject_dossier: dict, brokers_list: list[dict], cfg: dict,
"antibot": search.get("antibot"),
"search_by": vectors_mod.supported_by(b),
"search_vectors": svectors,
+ "search_vectors_count": len(svectors),
"optout_url": opt.get("url"),
"optout_email": opt.get("email"),
"disclosure_fields": sorted(disclosure.keys()),
@@ -105,6 +106,20 @@ def fanout(brokers_list: list[dict], batch_size: int = 5) -> dict:
}
+def runnable_for(subject_dossier: dict, brokers_list: list[dict]) -> tuple[list[dict], list[dict]]:
+ """(runnable, unsearchable) split of the broker list for THIS subject.
+
+ A broker with zero runnable search vectors (e.g. a name-only site in a phone-led run
+ with no name on file) cannot be scanned at all -- exclude it up front instead of
+ leaving it wedged in `unscanned` forever.
+ """
+ runnable: list[dict] = []
+ unsearchable: list[dict] = []
+ for b in brokers_list:
+ (runnable if vectors_mod.search_vectors(subject_dossier, b) else unsearchable).append(b)
+ return runnable, unsearchable
+
+
# States that mean "the crawl reached a verdict for this broker".
_SCANNED_STATES = {"found", "not_found", "indirect_exposure", "blocked", "submitted",
"verification_pending", "awaiting_processing", "confirmed_removed", "reappeared",
@@ -123,6 +138,7 @@ def batch_plan(subject_dossier: dict, brokers_list: list[dict], cfg: dict,
"""
ledger = ledger or {}
actions = plan(subject_dossier, brokers_list, cfg, browser_clears_captcha)
+ vcount = {a["broker_id"]: a.get("search_vectors_count", 1) for a in actions}
# child id -> parent id (only for parents present in this plan set)
child_to_parent: dict[str, str] = {}
@@ -134,6 +150,8 @@ def batch_plan(subject_dossier: dict, brokers_list: list[dict], cfg: dict,
return (ledger.get(bid) or {}).get("state", "new")
groups: dict[str, list[dict]] = {
+ "unsearchable": [], # no runnable search vector for THIS subject (e.g. a name-only
+ # site in a phone-led run) -> excluded from the crawl, not pending
"unscanned": [], # no verdict yet -> Phase 1 crawl
"found": [], # direct removable listing -> Phase 2 opt-out (incl. reappeared/action_selected)
"indirect_exposure": [],# PII on a third party's record -> CCPA/GDPR delete email
@@ -176,7 +194,10 @@ def batch_plan(subject_dossier: dict, brokers_list: list[dict], cfg: dict,
elif st in groups:
groups[st].append(row)
elif st not in _SCANNED_STATES:
- groups["unscanned"].append(row)
+ if not vcount.get(bid, 1):
+ groups["unsearchable"].append(row)
+ else:
+ groups["unscanned"].append(row)
else:
groups.setdefault(st, []).append(row)
@@ -277,6 +298,10 @@ def _batch_next(groups: dict, covered: dict) -> list[str]:
tips.append(f"Cluster dedup: {n} child site(s) covered by parent removals -- skip separate opt-outs.")
if groups["in_progress"]:
tips.append(f"{len(groups['in_progress'])} in progress: resolve verification links, then confirm removal.")
+ if groups.get("unsearchable"):
+ tips.append(f"{len(groups['unsearchable'])} broker(s) have no runnable search vector for "
+ "this subject (missing identifier, e.g. a name-only site in a phone-led "
+ "run) -- excluded from the crawl, not pending.")
if groups.get("human"):
tips.append(f"{len(groups['human'])} parked human task(s): present via `tasks` at end of run "
"(do not re-scan or re-queue them).")
diff --git a/tests/skills/test_unbroker_skill.py b/tests/skills/test_unbroker_skill.py
index 03f9f0cef32..295bc803962 100644
--- a/tests/skills/test_unbroker_skill.py
+++ b/tests/skills/test_unbroker_skill.py
@@ -45,6 +45,7 @@ import paths
import report
import storage
import tiers
+import vectors
_AGE = bool(shutil.which("age") and shutil.which("age-keygen"))
@@ -682,6 +683,85 @@ def test_report_metrics_removal_rate_and_overdue():
assert m["overdue_rechecks"] >= 1 and 0 < m["removal_rate"] <= 1
+# --- spam-call lane: phone-led intake, focus phone, DNC one-shot, unsearchable brokers ------
+
+def test_phone_led_intake_without_name():
+ with temp_env():
+ out = _run(["intake", "--phone", "+1-415-555-0137", "--email", "[email protected]", "--consent"])
+ assert out["phones"] == 1 and out["names"] == []
+ assert any("full_name" in w for w in out["warnings"])
+ # intake with no identifier at all is refused
+ try:
+ _run(["intake", "--consent"])
+ except SystemExit:
+ pass
+ else:
+ raise AssertionError("intake without any identifier must be refused")
+
+
+def test_focus_phone_drives_disclosure_and_vectors():
+ with temp_env():
+ out = _run(["intake", "--full-name", "Jane Q. Public", "--email", "[email protected]",
+ "--phone", "+1-415-555-0137", "--focus-phone", "+1-510-555-0199", "--consent"])
+ sid = out["subject_id"]
+ assert out["phones"] == 2 and out["focus_phone"] == "+1-510-555-0199"
+ d = dossier.load(sid)
+ assert d["preferences"]["focus_phone"] == "+1-510-555-0199"
+ # the focus number is what a phone-asking opt-out form gets, not phones[0]
+ assert dossier.select_disclosure(d, ["phone"])["phone"] == "+1-510-555-0199"
+ sv = vectors.search_vectors(d, {"search": {"by": ["phone"]}})
+ assert {v["query"]["phone"] for v in sv} == {"+1-415-555-0137", "+1-510-555-0199"}
+
+
+def test_dnc_one_shot_surfaced_once_then_filed():
+ with temp_env():
+ sid = _run(["intake", "--full-name", "Jane Q. Public", "--email", "[email protected]",
+ "--phone", "+1-415-555-0137", "--consent"])["subject_id"]
+ d = dossier.load(sid)
+ d["residency_jurisdiction"] = "US-CA"
+ dossier.save(d)
+ out = _run(["dnc", sid])
+ assert out["eligible"] is True
+ assert out["dnc_url"] == "https://www.donotcall.gov/register.html"
+ assert "72 hours" in " ".join(out["steps"])
+ q = autopilot.next_actions(dossier.load(sid), [], _auto_cfg(), {}, env={})
+ assert any(a["type"] == "dnc_register" for a in q["actions"])
+ filed = _run(["dnc", sid, "--filed"])
+ assert "dnc_filed_at" in filed
+ q2 = autopilot.next_actions(dossier.load(sid), [], _auto_cfg(), {}, env={})
+ assert not any(a["type"] == "dnc_register" for a in q2["actions"])
+ # non-US residency -> never surfaced
+ d2 = dossier.load(sid)
+ d2["residency_jurisdiction"] = "EU-DE"
+ dossier.save(d2)
+ q3 = autopilot.next_actions(dossier.load(sid), [], _auto_cfg(), {}, env={})
+ assert not any(a["type"] == "dnc_register" for a in q3["actions"])
+ assert _run(["dnc", sid])["eligible"] is False
+
+
+def test_unsearchable_group_and_fanout_skip_for_nameless_subject():
+ with temp_env():
+ sid = _run(["intake", "--phone", "+1-415-555-0137", "--consent"])["subject_id"]
+ d = dossier.load(sid)
+ bl = [_mini_broker("namesite"),
+ {**_mini_broker("phonesite"), "search": {"by": ["phone"]}}]
+ bp = tiers.batch_plan(d, bl, config.DEFAULT_CONFIG, {})
+ assert bp["counts"]["unsearchable"] == 1
+ assert bp["counts"]["unscanned"] == 1
+ assert [r["broker_id"] for r in bp["groups"]["unsearchable"]] == ["namesite"]
+ assert [r["broker_id"] for r in bp["groups"]["unscanned"]] == ["phonesite"]
+ assert any("no runnable search vector" in t for t in bp["next_actions"])
+ q = autopilot.next_actions(d, bl, _auto_cfg(), {}, env={})
+ scan = next(a for a in q["actions"] if a["type"] == "scan_inline")
+ assert scan["broker_ids"] == ["phonesite"]
+ # fanout batches only brokers this subject can actually be searched on
+ fan = _run(["fanout", sid])
+ ids = [b for batch in fan["batches"] for b in batch["brokers"]]
+ assert fan["skipped_unsearchable"] >= 1
+ for bid in ids:
+ assert "phone" in (brokers.get(bid).get("search") or {}).get("by", ["name"])
+
+
if __name__ == "__main__":
failures = []
tests = [(n, f) for n, f in sorted(globals().items()) if n.startswith("test_") and callable(f)]
diff --git a/website/docs/reference/optional-skills-catalog.md b/website/docs/reference/optional-skills-catalog.md
index 835f842e326..5351974c741 100644
--- a/website/docs/reference/optional-skills-catalog.md
+++ b/website/docs/reference/optional-skills-catalog.md
@@ -247,7 +247,7 @@ hermes skills uninstall <skill-name>
| [**godmode**](../user-guide/skills/optional/security/security-godmode.md) | Jailbreak LLMs: Parseltongue, GODMODE, ULTRAPLINIAN. |
| [**oss-forensics**](../user-guide/skills/optional/security/security-oss-forensics.md) | GitHub supply-chain forensics: recovery, IOCs, reporting. |
| [**sherlock**](../user-guide/skills/optional/security/security-sherlock.md) | Find accounts for a username across 400+ platforms. |
-| [**unbroker**](../user-guide/skills/optional/security/security-unbroker.md) | Autonomously remove your info from data-broker sites. |
+| [**unbroker**](../user-guide/skills/optional/security/security-unbroker.md) | Remove your info from data-broker sites, by name or phone. |
| [**web-pentest**](../user-guide/skills/optional/security/security-web-pentest.md) | Authorized web pentest: recon, proof-based exploits, report. |
## smart-home
diff --git a/website/docs/user-guide/skills/optional/security/security-unbroker.md b/website/docs/user-guide/skills/optional/security/security-unbroker.md
index 431cbadf08d..b28feeea4a4 100644
--- a/website/docs/user-guide/skills/optional/security/security-unbroker.md
+++ b/website/docs/user-guide/skills/optional/security/security-unbroker.md
@@ -1,14 +1,14 @@
---
-title: "Unbroker — Autonomously remove your info from data-broker sites"
+title: "Unbroker — Remove your info from data-broker sites, by name or phone"
sidebar_label: "Unbroker"
-description: "Autonomously remove your info from data-broker sites"
+description: "Remove your info from data-broker sites, by name or phone"
---
{/* This page is auto-generated from the skill's SKILL.md by website/scripts/generate-skill-docs.py. Edit the source SKILL.md, not this page. */}
# Unbroker
-Autonomously remove your info from data-broker sites.
+Remove your info from data-broker sites, by name or phone.
## Skill metadata
@@ -42,7 +42,8 @@ The Python CLI (`scripts/pdd.py`) owns the deterministic state - config, dossier
broker database, tier planning, the ledger, drafts, reports, **email sending (SMTP), verification-link
polling (IMAP), and the autonomous action queue (`next`)**. You (the agent) do the scanning and
form-driving with native tools: `web_extract` and `browser_exec` for searching and web forms, and
-`cronjob` for recurring re-scans.
+`cronjob` for recurring re-scans. Runs can be entered from a phone number alone (spam-call
+scrubbing), with the FTC Do Not Call registry one-shot (`dnc`) alongside the opt-outs.
## Autonomy contract
@@ -72,6 +73,8 @@ verifying re-scan.
- "Opt me out", "delete me from Spokeo/Whitepages/etc.", "clean up after a doxxing."
- "Set up recurring privacy monitoring" (brokers re-list people).
- Checking which brokers still expose someone and why.
+- "My number keeps getting spam calls" - phone-led scrub: find where the number is listed, opt
+ out, register it on the Do Not Call Registry, and re-check on a schedule.
## Prerequisites
@@ -126,12 +129,13 @@ breaks reading the dossier).
| `$PDD setup --auto` | **Autonomous setup**: detect capabilities, pick the most autonomous valid config (no questions) |
| `$PDD doctor` | Readiness check: config, broker count, and which upgrades are on/available |
| `$PDD cdp [--check] [--print] [--port N]` | Launch/detect the operator's Chrome over CDP for Phase-2 browser + webmail (dedicated debug profile; the reliable way to send webmail and clear session-bound gates) |
-| `$PDD intake --full-name "..." [--alias ...] [--email ... --phone ...] [--city --state] [--prior-location "City,ST"] --consent` | Create a consenting subject; captures aliases + multiple emails/phones + prior locations; prints `subject_id` |
+| `$PDD intake --full-name "..." [--alias ...] [--email ... --phone ...] [--focus-phone ...] [--city --state] [--prior-location "City,ST"] --consent` | Create a consenting subject; captures aliases + multiple emails/phones + prior locations; prints `subject_id`. Phone-led (spam-call) runs may start from `--phone` alone + `--focus-phone` (the number being scrubbed); a missing name is warned, not required |
| `$PDD next <subject>` | **The autonomous loop driver**: ordered agent actions right now + human digest + `next_wake_at` |
| `$PDD brokers [--priority crucial]` | List the people-search broker database (curated + live) |
| `$PDD refresh-brokers` | Pull the latest BADBOOL people-search list **and the CA Data Broker Registry** (`next` requeues this automatically when the cache is stale) |
| `$PDD registry [--search NAME]` | State registry coverage (CA ~545 ingested; VT/OR/TX portals surfaced); the DROP/email lane, not scanned |
| `$PDD drop <subject> [--filed]` | **The one-shot legal lever**: one CA DROP request deletes from ALL registered brokers; `--filed` records it |
+| `$PDD dnc <subject> [--filed]` | **The spam-call lever**: register the subject's US personal numbers on the FTC National Do Not Call Registry (sales calls stop within 31 days, never expires); `--filed` records it |
| `$PDD plan <subject> [--priority crucial]` | Per-broker tier + method + `search_vectors` + the exact fields to disclose |
| `$PDD plan <subject> --batch` | **Reduce view**: overlays ledger state, groups brokers by next action (unscanned/found/indirect/blocked/in_progress/done), collapses ownership clusters, **orders `found` cluster-parents-first + emits a tailored `parent_playbook`**, prints `next_actions` |
| `$PDD fanout <subject> [--priority crucial] [--size 5]` | Batch brokers into parallel `delegate_task` subagents (auto for large runs; batches of 5 - 8+ time out) |
@@ -284,6 +288,28 @@ recording `found` and before any deletion.
windows, verification polls, and reappearance sweeps all flow through the same queue, so the case
keeps advancing with zero human attention.
+## Spam-call scrubber (phone-led run)
+
+A number that keeps getting spam calls is almost always published on people-search sites - that
+is where lead buyers get it. The same engine, entered from the number:
+
+1. **Intake from the number.** `$PDD intake --phone "+1-555-0100" --focus-phone "+1-555-0100"
+ --full-name "..." --email ... --consent`. `--focus-phone` marks the number being scrubbed: it is
+ added to the search vectors and becomes the `phone` field any opt-out form discloses (instead of
+ `phones[0]`). A name is not required to scan - phone/email/address vectors run, and brokers with
+ no runnable vector group as `unsearchable` (excluded from the crawl, never wedging the loop) -
+ but collect the full name + contact email at intake anyway: every opt-out form and legal request
+ needs them.
+2. **The loop is unchanged.** `$PDD next <subject>` drives the same crawl / opt-out / re-check
+ queue; the reverse-phone sites (18 of the 22 curated people-search records declare `by: phone`)
+ are scanned with the phone vector, and the re-check schedule watches for the number re-listing
+ (per the subject's `rescan_interval_days`).
+3. **DNC one-shot.** For a US personal number, `next` also surfaces `dnc_register` once: the FTC
+ National Do Not Call Registry (free, never expires, sales calls stop within 31 days; up to 3
+ numbers per pass, one confirmation email per number - open each link within 72 hours). `$PDD
+ dnc <subject>` prints the steps; `$PDD dnc <subject> --filed` records it. DNC stops lawful
+ telemarketers, not scammers - broker removal is what cuts the lead lists, so do both.
+
## Pitfalls
- **Never disclose more than the broker already shows.** Submit only `disclosure_fields`. The engine