Policy agents

How can a policy experiment go from data retrieval to results that can be independently checked?

Partly delivered · Validated by component

My role
Policy agent and Skill development
Business scope
Pre-loan and in-life · Eligibility and limit policies
Work stage
2025.07—present

Where the problem began

Policy development repeatedly involves retrieving data, agreeing on metric definitions, proposing rules, evaluating them and revising the plan. Each step can be done individually, but mismatched interfaces, changing definitions and intermediate results that cannot be reused often block progress. I package these steps as Skills, let agents organize experiments, and use a code-based Judge to provide checkable feedback.

My responsibilities

Package segmentation, calibration, search, optimization and review as Skills for rerunnable workflows.

Methods and trade-offs

Working organizes execution, a code-based Judge checks evidence, and Loop routes feedback and records stopping reasons.

  • For eligibility, build a Working / Judge / Loop workflow that searches complete rule combinations, respecting the sequence of baseline eligibility, ordinary rejection, recall and final rejection. It covers pre-loan and high-limit in-life eligibility, and retains rule-contribution, Swap, monthly and key-segment diagnostics.
  • For credit limits, connect data retrieval, segmentation, counterfactual calibration, candidate-offer scoring, OR optimization, individual adjustment and final review. Fix the inputs, outputs, versions and intermediate artifacts so each Skill can be rerun and failures can be traced to a particular stage.
  • The segmentation Skill compares risk mechanisms and score structures under constraints on tiers, complexity and temporal stability. The calibration Skill exports reusable mappings. OR chooses offers under risk, value and business constraints; individual adjustment then addresses user-level differences.
  • For review, deterministic code computes metrics and evidence tables; LLMs organize hypotheses, explain differences and produce reports. Record candidate freezes, evaluation-data purposes, failure reasons and human review, while extending monitoring and offline simulation.

Credit-limit field note · Synthetic example

The higher limit earned 1.1 more. Why stop the experiment here?

The question is whether raising the credit limit alone increases 90-day net contribution per assigned customer. Both arms use the same term and rate, with 100 customers each in the same randomization stratum. All amounts are fictional and use one currency unit.

Screen for comparable offers, then rank expected contribution

Keep the current limit as the baseline and consider increases of one and two tiers. Form strata using information available before the offer. In comparable historical samples, estimate drawdown, income and principal loss on the same per-assigned-person basis. Compare the predictions under alternative offers for the same people.

The one-tier increase has a historical comparison within the same stratum, rate and term. The model predicts 2.1 more contribution and 1.2 more loss per person, qualifying it for a trial. Every historical two-tier increase also included a rate cut. Set that action aside until a limit-only comparison can be obtained.

The solver assigns at most one action per candidate. It maximizes the sum of predicted contribution gains subject to the incremental principal-loss budget and the number of trial places. If 100 treatment places go to the one-step increase, the model averages imply 210 more contribution and 120 more loss, within the loss budget of 150 for those 100 people. This selects a policy for testing. Eligible customers are randomized only afterward.

Why check support before ranking?

An aggressive offer can top a ranking on extrapolation alone. For each tier, record the size and recency of the comparable sample, estimation uncertainty and any exclusion reason. Freeze the list before randomization and reserve trial outcomes for evaluation.

Make every tool hand over something the next tool can check

The agent freezes the cohort, baseline, candidates, metrics, observation window and model version in an experiment plan. Tools then run in dependency order. Assignment and mature outcomes come from separate inputs; everyone on the assignment list must be accounted for at evaluation.

Cohort and strata
SQL produces one row per eligible person with stratum and pre-offer features. Each score has a unique key for the candidate customer, limit, term and rate.
Scoring and optimization
The response model scores each tier. The constrained solver selects among supported actions and records both the baseline and reasons for rejection. An empty feasible set retains the current limit.
Assignment and reconciliation
After the experiment owner approves, randomize as planned and record both assigned and delivered offers. At maturity, left-join transactions to the assignment list and aggregate mature counts, borrowers, principal and losses.
How do you recover from a duplicate row or a lost connection?

Suppose 100 candidates yield 101 scores at one limit tier. Tracing the duplicate key uncovers two versions of a historical drawdown feature. Select the single version effective at the pre-offer cutoff and recompute only the affected stratum. Verify customer coverage, candidate count and feature timestamps before optimization. Keep the duplicate as a regression fixture.

The plan version and run ID identify the round. After a disconnect, reconcile the original run and its artifacts first. When input checksums, arm counts and artifact versions agree, resume at the first missing step. If dispatch is uncertain, hold further assignments and reconcile the original list with delivery records.

Reconcile the ledger, then apply the agreed rule

This synthetic evaluation ledger is opened after both arms complete 90 days. Income already has funding and operating costs deducted. Subtract principal losses to obtain net contribution over the window.

One randomized stratum · 90-day ledger
Synthetic measureCurrent limitOne tier higher
Assigned / drew funds100 / 50100 / 60
Principal drawn50,00060,000
Income after funding and operating costs2,4002,700
Loss of principal1,2501,440
Net contribution per assignee11.512.6
What does the evaluation check?

An independent evaluator reads the frozen assignment list, metric version and transactions. Deterministic code recomputes the scores. Reconcile assignment with delivery, deduplicate people and check age, principal and total loss. When transactions are missing, enter zero loss only for a confirmed non-borrower with complete follow-up. Immature outcomes remain unknown. Estimate both contrasts by original assignment and their prespecified intervals using the randomization strata and units. Aggregate totals lack the individual variation needed to establish significance.

Turn this round’s error into the next round’s work

The one-tier increase was predicted to add 1.2 loss per person but produced an observed increase of 1.9, an underestimate of 0.7. Record the discrepancy with the population, offer, maturity window and model version. Diagnose drawdown versus loss conditional on drawdown before choosing a tool to revise.

The same ledger tells us where to check first. Average loss per customer who draws is 25 at the current limit and 24 one step up. The per-assignee difference is (0.60 − 0.50) × 25 + 0.60 × (24 − 25) = 1.9. Compare predicted draw rates with 50% and 60%, then check loss among borrowers in each arm. Different people may draw in the two arms. This accounting decomposition helps locate prediction error. It does not identify two separate causal effects.

Start with inexpensive support and calibration checks. If baseline and candidate both have adequate support, rank a smaller increase ahead of the two-tier jump. Estimate trial precision from outcome variation and available participants, and retain a current-limit control. The two-tier offer needs a separate exploration budget.

What changes the schedule?

Immature outcomes schedule a follow-up on the same cohort; delivery discrepancies schedule an engineering fix. Repeatedly inspected trial data are reserved for diagnosis. If this round informs a model or selection-rule change, freeze the revision and compare with the previous version on an untouched mature cohort. A pass permits a new randomized trial; insufficient sample or risk budget keeps the current limit in place.

Follow the task through implementation

Make each policy experiment traceable.

From the task contract to computation, checking and revision. Select a module to see what it receives and what it leaves behind.

Synthetic example
Eligibility policy

Check whether candidate rules merit another evaluation round

Loop returns issues to the stage where they arose At most 2 rounds

This invocation
  • Customer segmentation
  • Rule search
  • Swap replay

Ready. Start with the task and contract.

Records from this round 0 records
  1. After execution, computation, checks and revisions are recorded here in sequence.

This synthetic example illustrates the workflow. It calls no production tools and makes no real lending decisions. Passing the checks still requires independent evaluation and human review.

Validation and delivery

I develop reusable tools and evaluation workflows for eligibility and credit-limit policies, preserving rules, parameters, comparisons and review records. Integration status and business results are redacted; results are shown as **. The method demos do not establish production acceptance.

Policy agents: connecting eligibility, credit limits and development stages
A general workflow for eligibility and credit-limit policy development, including data agreements, candidates, constraints and independent review; it does not show actual integration status.
This is a general workflow illustration. Actual integration status and business results are redacted, so it does not indicate production deployment progress.
Method details & evaluation definitions

Freeze metric definitions and candidate rules first. Code computes metrics and details; an LLM explains each module, then the conclusions are checked against the tables. A traceable report does not mean the policy has passed production validation.

Eligibility policies are assessed on training, test and out-of-time data. Candidate generation, adjustment, rescoring and final review should each leave records. This is a general checking sequence, without internal integration status.

General evaluation stages for policy development

Pre-loan eligibility: record tool delivery and independent experiments separately; actual result **

See the table below for the full comparison and definitions; scroll horizontally if needed.

Scroll horizontally to view the full table

General evaluation stages for policy development
ScenarioMethod stageEvaluation focus
Pre-loan eligibilityWorking / Judge rule search, constraint checks, eligibility integration and reportingRecord tool delivery separately from independent experiments; actual results **
In-life eligibilitySearch complete rule graphs; check recall, final rejection, Swap, monthly performance and segmentsAssess stability over time and missing-data handling; actual results **
Pre-loan credit limitsData retrieval → Segmentation → Counterfactual calibration → Candidate-offer scoring → OR optimizationAssess candidates, constraints and final actions by stage; actual results **
In-life credit limitsCounterfactual models, candidate-scoring matrices, constrained optimization and diagnosisValidate models, optimization and policy value separately; actual results **
Review & monitoringDeterministic evidence tables, LLM analysis, difference attribution and reportsKeep evaluation and review records; actual results **

This table describes general evaluation stages. Actual integration status and business results are redacted; tool demos do not establish production acceptance.

Package methods as Skills, then let agents organize experiments

Segmentation Skill: tiering rules, user-level mappings, baseline comparisons and search traces

See the table below for the full comparison and definitions; scroll horizontally if needed.

Scroll horizontally to view the full table

Package methods as Skills, then let agents organize experiments
ModuleResponsibilitiesDeliverables that can be checked
Segmentation SkillExplore features and mechanisms, combine scores, create constrained tiers and check temporal stabilityTiering rules, user-level mappings, baseline comparisons and search traces
Calibration SkillSegment-wise calibration, small-sample fallback and validation on rolling mature-label windowsCalibration mappings, error comparisons and audit reports
Candidate scoring & ORCompare credit-limit / term / pricing combinations and optimize allocation under constraintsCandidate matrices, offer mappings, and risk/value diagnostics
Individual adjustmentAnchor on the segment-level offer, then personalize using risk and response estimatesAdjustment parameters, user-level offers and staged evaluation
Working / Judge / LoopAgents propose candidates; code evaluates and returns feedback; review follows the freezeRules, parameters, metric evidence, versions and stopping reasons

Code computes metrics and replays rules. LLMs propose hypotheses, organize search and explain results. Historical replays, model-selection OOT data and independent validation are labeled separately.

Remaining questions

Search and review should assess performance over time, rule contributions and decision constraints separately. Data used for model selection is kept separate from final independent validation.

View this project in my experience ↗
Ask Max Ask about this site
Ask Max ↗

Opening the assistant…

Paper figure

Photo comments

LEAVE A NOTE

About this photograph

Connecting to the discussion board…

    Comments become public after moderation. You can delete your own comments from this browser.
    No email is required. Clearing cookies prevents this browser from claiming earlier comments.

    MAX WANG / INDEX

    Find something

    Enter a keyword, or explore the directory below.