The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(unbroker): a parked captcha task is a standing digest entry, not shown once
kshitijk4poor085f562af53a
diff --git a/optional-skills/security/unbroker/SKILL.md b/optional-skills/security/unbroker/SKILL.mdindex a8fdcbc07a2..edc48ea2d0a 100644--- a/optional-skills/security/unbroker/SKILL.md+++ b/optional-skills/security/unbroker/SKILL.md@@ -330,8 +330,8 @@ is where lead buyers get it. The same engine, entered from the number:actually gone; note paid-tier retention in the report.- **Soft CAPTCHAs clear by default; don't fight the hard ones.** The default cloud browser passesmanaged/soft challenges as normal operation (those brokers stay T1). For a hard interactive one it- genuinely can't pass, record `human_task_queued --reason "..."` so the operator gets it once in- the digest (a `blocked` case re-scans, re-finds the listing and re-queues the opt-out) - never a+ genuinely can't pass, record `human_task_queued --reason "..."` so it parks as one standing+ digest task (a `blocked` case re-scans, re-finds the listing and re-queues the opt-out) - never athird-party solver service or fingerprint spoofing.- **Broker pages change.** If a flow breaks, `$PDD record ... blocked` and flag the broker file in`references/brokers/` for re-verification instead of guessing.diff --git a/optional-skills/security/unbroker/references/methods.md b/optional-skills/security/unbroker/references/methods.mdindex fdc4fc324c1..39e02e2ae77 100644--- a/optional-skills/security/unbroker/references/methods.md+++ b/optional-skills/security/unbroker/references/methods.md@@ -254,7 +254,7 @@ reCAPTCHA checkbox - as normal operation, so those brokers stay T1 and you justOnly a **hard** challenge the browser genuinely can't pass (interactive image grids, behavioralscoring that flags the session) becomes a fallback: `record ... human_task_queued --reason "..."`-so it reaches the operator once in the digest (the operator's own residential browser is the+so it parks as one standing digest task (the operator's own residential browser is thereliable unblock; a `blocked` case would re-scan, re-find the listing and re-queue the opt-out).Without a cloud browser configured, soft-CAPTCHA brokers drop to T2 and become human tasks. **Never use a third-party CAPTCHA-defeating service.**diff --git a/optional-skills/security/unbroker/scripts/autopilot.py b/optional-skills/security/unbroker/scripts/autopilot.pyindex 1288187d1e4..50f90e15876 100644--- a/optional-skills/security/unbroker/scripts/autopilot.py+++ b/optional-skills/security/unbroker/scripts/autopilot.py@@ -123,7 +123,8 @@ def _email_identity_ready(dossier: dict) -> bool:# Open defunct cases worth closing: every state the ledger lets a defunct broker leave for-# not_found, minus the pre-verdict ones (new/searching) that never hold a listing.+# not_found, minus the pre-verdict ones (new/searching) that never hold a listing and+# not_found itself (the same-state move is always allowed)._DEFUNCT_OPEN_STATES = {s for s in ledger_mod.STATESif s not in {"new", "searching", "not_found"}and ledger_mod.can_transition(s, "not_found", broker_defunct=True)}@@ -244,8 +245,8 @@ def _optout_action(row: dict, playbook: dict[str, dict], subject_id: str, dossieaction["note"] = ("CAPTCHA-gated: attempt with the configured browser backend once; if it ""does not clear, record human_task_queued with the reason. Do NOT retry-loop ""or bypass -- and do NOT record blocked either: a blocked case re-scans, "- "re-finds the listing and re-queues this opt-out forever, while the digest "- "hands it to the operator exactly once")+ "re-finds the listing and re-queues this opt-out forever, while a parked "+ "task stays one standing digest entry until the operator acts")return action, Nonediff --git a/tests/skills/test_unbroker_skill.py b/tests/skills/test_unbroker_skill.pyindex 8cad9924073..d3f21f24dfd 100644--- a/tests/skills/test_unbroker_skill.py+++ b/tests/skills/test_unbroker_skill.py@@ -893,7 +893,8 @@ def test_defunct_brokers_excluded_from_all_planning():for st in ("blocked", "indirect_exposure"):led["deadbroker"] = {"broker_id": "deadbroker", "state": st}q3 = autopilot.next_actions(d, bl, _auto_cfg(), led, env={})- assert [t for t in q3["human_digest"] if "deadbroker" in _json.dumps(t)], st+ assert [t for t in q3["human_digest"]+ if "deadbroker" in _json.dumps(t) and "broker is defunct" in _json.dumps(t)], stdef test_full_autonomy_note_honors_confirm_first():@@ -923,7 +924,8 @@ def test_defunct_cases_never_recheck_or_wake_even_on_priority_runs():assert autopilot.next_actions(d, bl, _auto_cfg(), led, env={})["next_wake_at"] is Noneled["radaris"] = {"broker_id": "radaris", "state": "awaiting_processing"}q2 = autopilot.next_actions(d, bl, _auto_cfg(), led, env={})- assert [t for t in q2["human_digest"] if "radaris" in _json.dumps(t)]+ assert [t for t in q2["human_digest"]+ if "radaris" in _json.dumps(t) and "broker is defunct" in _json.dumps(t)]def test_ledger_not_found_close_out_only_for_defunct_brokers():diff --git a/website/docs/user-guide/skills/optional/security/security-unbroker.md b/website/docs/user-guide/skills/optional/security/security-unbroker.mdindex dc9f04a3125..48d457e673c 100644--- a/website/docs/user-guide/skills/optional/security/security-unbroker.md+++ b/website/docs/user-guide/skills/optional/security/security-unbroker.md@@ -344,8 +344,8 @@ is where lead buyers get it. The same engine, entered from the number:actually gone; note paid-tier retention in the report.- **Soft CAPTCHAs clear by default; don't fight the hard ones.** The default cloud browser passesmanaged/soft challenges as normal operation (those brokers stay T1). For a hard interactive one it- genuinely can't pass, record `human_task_queued --reason "..."` so the operator gets it once in- the digest (a `blocked` case re-scans, re-finds the listing and re-queues the opt-out) - never a+ genuinely can't pass, record `human_task_queued --reason "..."` so it parks as one standing+ digest task (a `blocked` case re-scans, re-finds the listing and re-queues the opt-out) - never athird-party solver service or fingerprint spoofing.- **Broker pages change.** If a flow breaks, `$PDD record ... blocked` and flag the broker file in`references/brokers/` for re-verification instead of guessing.