scan_portfolio
Re-scan every member of a saved cohort against the live decision engine to find each member's current best offer. Returns a triage list (label, best lender, best APR, monthly payment, optional savings vs current) and a diff vs the previous scan (who's new, whose best lender changed, APR deltas). Persists the new snapshot. Use this to refresh a book of business and surface what changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Cohort id to scan. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| triage | No | Every member's current best offer. | |
| changed | No | Members whose best offer moved since the previous scan. | |
| scanned | No | Members evaluated (capped at 50). |