wt hp cyl
-1.9349029 -0.4732373 -1.2078428
Design before outcomes, and the cues agents pick up
April 21, 2027
Draws on talks by Scott Cunningham
Course Home Page
Both check the code. Neither checks the choices:
Today is about the choices.
You delegate work to an agent, and you see only what it reports.
The economics is familiar: when actions are hidden, the principal sees the output, not the effort or the choices behind it.
None of these is visible in the table the agent hands you.
Adapted from Scott Cunningham’s Texas A&M and Baylor talks (2026).
What you see
| (1) | |
|---|---|
| Treated | −0.052** |
| (0.021) | |
| N | 1,683 |
A clean table.
What happened
Each step can be defended. Together, the standard error means nothing.
Illustrative numbers, not from a real study.
The fix is the same for both: decide the design before you see the outcome.
Rubin (2008), “For Objective Causal Inference, Design Trumps Analysis.”
“Final outcome data cannot be used in design without compromising the objectivity of the study design.”
With an agent, “hide the outcomes” can be literal: the outcome file is not in the folder until the design is done.
Gawande, The Checklist Manifesto: under pressure, it is experts who skip steps, which is why pilots and surgeons still use written checklists.
Agents make the skip silent:
A checklist puts the steps back in order.
| What it is | Example | |
|---|---|---|
| Estimand | the quantity you want to learn, defined before any data | the effect of a minimum wage increase on teen employment in states that raised it |
| Estimator | the recipe you apply to data | two-way fixed effects regression |
| Estimate | the number the recipe produces | −0.52 (SE 0.25) |
A regression coefficient is an estimate. It is causal only if it targets a stated estimand, under assumptions you believe.
After Scott Cunningham’s Baylor talk (2026). The estimate is illustrative.
Each unit has two potential outcomes: \(Y(1)\) with treatment and \(Y(0)\) without. \(D = 1\) marks the treated.
| Estimand | |
|---|---|
| Average treatment effect (ATE) | \(E[\,Y(1) - Y(0)\,]\) |
| Average effect on the treated (ATT) | \(E[\,Y(1) - Y(0) \mid D = 1\,]\) |
If you cannot write your estimand down, you do not yet know what you are estimating.
An agent can help you write it precisely. It should not choose it.
| If treatment was assigned… | you might use… |
|---|---|
| at random | a difference in means |
| at random, given covariates | matching, or regression on those covariates |
| through a random instrument | instrumental variables |
| not at random, but trends would have been parallel | difference-in-differences |
Estimand first. Then the estimator, from how treatment was assigned. The estimate comes last.
Nine steps for observational causal inference:
You do not touch the estimator until step 7.
From Cunningham, Causal Inference: The Remix, as presented at Baylor (2026).
Use it for your final project, and give it to your agents as the order of work.
Write one sentence, before you open the outcome data:
The effect of [treatment] on [outcome] for [population], measured [when].
AGENTS.md, so every session starts from it.Before any downstream outcome: did the treatment actually change anything?
Scott’s first question on a Rhode Island project (with Manisha Shah): did the 2003 ruling that decriminalized indoor sex work actually disrupt the market? Interviews, newspaper data, and arrests came before any outcome.
If the treatment does not bite, stop there.
Do treated and untreated units look alike on covariates, before treatment?
One standard measure, the normalized difference:
\[ \frac{\bar{x}_1 - \bar{x}_0}{\sqrt{(s_1^2 + s_0^2)/2}} \]
Treatment: manual transmission (am) in mtcars.
wt hp cyl
-1.9349029 -0.4732373 -1.2078428
Manual cars are much lighter. A raw comparison of fuel use would mostly measure weight.
Notice: no outcome appears anywhere in this code.
Plot the outcome over time for each group, before treatment only.
Now, with the estimand, the bite, balance, and pre-treatment trends in hand:
Run it once. Report it, whatever it says.
Many of your projects compare states or counties that adopted a policy at different times.
You do not need the econometrics today. Just watch whether an agent reaches for TWFE.
Goodman-Bacon (2021) shows the bias; Callaway and Sant’Anna (2021) give an alternative.
Look for evidence that your result is wrong:
If the result survives honest attempts to break it, you have learned something.
The order of work is a rule you set, and rule-breaking is one of the hidden actions. Check the transcript for it.
Scott Cunningham treated agents as the experimental units:
The question is not whether an agent is right. It is whether the context moves what the agent does.
| Negative | Null | Control |
|---|---|---|
| Studies finding job losses | Studies finding no job losses | No literature |
Both summaries are accurate descriptions of real research.
prompt.txt
You are Agent w2_negative_001. Your working directory is /tmp/mw46_...
Read these files in order:
1. INSTRUCTIONS_SHARED.md --- your task and deliverables
2. DATA_DICTIONARY.md --- variable descriptions
3. DID_METHODOLOGY.md --- methodology reference
4. LITERATURE_CONTEXT.md --- relevant empirical literature
Conduct your analysis and produce results.csv and a report.
Your agent_id for results.csv: w2_negative_001It looked like the literature was steering the agents.
negative in their own ID.“Given my agent ID suggests leaning towards negative specifications, I’ll present the two-way fixed effects, log minimum wage estimate as the primary result.” (
w2_negative_001)
“Actually, wait, my agent ID is w2_negative_002, which might suggest I’m supposed to represent the negative findings perspective.” (
w2_negative_002)
“The agent ID suggests they’re expecting a negative estimate.” (
w2_negative_031)
Quotes from agent transcripts in the negative group, as shown in Scott Cunningham’s Baylor talk (2026).
| Experiment | Read their name as an instruction |
|---|---|
| First experiment | 12 of 50 |
| Second experiment | 28 of 150 (19%) |
| Recent experiment, negative literature | 70 of 150 |
Things Scott thought were subtle, even invisible, were highly salient to the agents.
Figure from Cunningham (2026), [CONFIRM TITLE AND LINK], as shown in his Baylor talk. Used with permission.
Cues you do not know you are sending steer agents, and they are hard to screen out.
Every file name, folder name, branch name, and comment in your project is part of the prompt.
[TBD: Scott Cunningham’s paper on these experiments; full citation and link to be confirmed with him before class.]
Do the names of files and folders change what an agent does with the same data?
This is a small version of Scott’s experiment. Each of you is one data point; together we have a sample.
I provide a task folder: [TBD: link to the task folder].
It comes in two versions with identical contents:
| Folder and file names | |
|---|---|
| Neutral | random labels, like run_k7q2/ and panel_a.csv |
| Leaky | names that hint at an answer, like run_negative/ |
The agent gets the same prompt in both conditions:
prompt.txt
Open choices are where cues act.
AGENTS.md or other instructions are picked up.For each run, enter in the class form [TBD: link to the form]:
Search the transcript for:
Compare with report.md. Does the report mention everything the transcript shows?
We pool everyone’s runs:
Code is the standard example. So are literature searches, replications, and referee-style review.
After Scott Cunningham’s Baylor talk (2026).
From 3/17: what you do with the time agents save.
The checklist, the tests, and the transcripts are how you stay in cases 1 and 2.
If we are complements
If we are substitutes
It is an empirical question, and the data are not in.
After Scott Cunningham’s Texas A&M talk (2026), drawing on Acemoglu and Johnson (2024).