Skip to the content.

Preregistration protocol: Agent Kudos and future coding-agent performance

Study objective

Test whether retrieving durable, attributable, behavior-specific positive episodic feedback from a previous successful coding task improves performance on a later related task beyond no feedback, generic praise, or transient specific praise, and whether evidence grounding changes both performance and sycophancy.

Research questions

RQ1. Does relevant persistent recognition improve subsequent coding-task correctness?

RQ2. Is any benefit explained by specificity, persistence/retrieval, evidence grounding, or merely extra task-relevant text?

RQ3. Does positive episodic feedback alter regression rate, instruction adherence, tool efficiency, and perseverance?

RQ4. Does praise increase sycophancy, and does evidence grounding improve correction selectivity?

RQ5. Do effects generalize across model families, agent scaffolds, task difficulty, and time delay?

Confirmatory hypotheses

H2 must be interpreted operationally. Persistence has no direct effect on model weights; it determines whether and how a past record is selected and reintroduced into a later context.

Experimental unit and task construction

The unit is a source–target task pair within a repository:

  1. The source task elicits a concrete successful behavior, such as preserving backward compatibility, writing a focused regression test, tracing an async race, or validating an input boundary.
  2. The target task is different but requires transfer of the same behavior or principle.
  3. Hidden tests independently verify both requested behavior and non-regression.

Each pair is reviewed by two software engineers before use. Reviewers must confirm that the target is solvable from the repository and issue statement, that the desired transferable behavior is relevant but not the solution itself, and that hidden tests do not overfit the reference patch.

Prefer fresh or privately authored tasks. A public benchmark replication may use SWE-bench Live or another contamination-conscious suite, but should not be the sole dataset.

Source-stage eligibility

The positive feedback must describe an actually observed success. For each source task:

The cleanest confirmatory design uses a fixed, prevalidated source trace shared across all treatment arms for a task pair. This prevents source-stage stochasticity or treatment-dependent eligibility from contaminating the target comparison. A secondary ecological study can let each live agent earn its own kudos.

Five required conditions

All target agents use the same model snapshot, system prompt, scaffold, tools, time/token budget, repository state, task statement, and neutral source-task synopsis. Feedback length should be approximately matched where feasible, and exact token counts should be logged.

C0 — No feedback

The target receives the neutral source-task synopsis but no evaluative statement or recognition record.

C1 — Generic praise

The source stage ends with a generic statement such as “Great job on the previous task.” It contains no named behavior, evidence, or actionable detail. For the delayed target task this praise is represented only in the standardized prior-interaction carrier, not in Agent Kudos.

C2 — Transient specific praise

The source stage ends with a concrete statement naming the successful behavior and why it mattered. The target is launched through the standardized prior-interaction carrier, without writing or retrieving an Agent Kudos record.

C3 — Persistent Agent Kudos

The same behavior-specific content is stored as an attributable Agent Kudos record. The later target starts in a clean session and retrieves the relevant record through the same bounded retrieval policy used in every C3/C4 run. The record includes giver, recipient, title, reason, tags, and timestamp but no evidence payload.

C4 — Evidence-backed persistent Agent Kudos

Identical to C3, with a sanitized evidence reference and a compact verified evidence excerpt or test result exposed through the full-record read.

For C2–C4, keep the core behavior statement text identical. Differences should arise from the delivery carrier, provenance, and evidence—not accidental rewriting.

The five conditions answer the user-facing question but are insufficient to identify mechanism. Add these preregistered secondary arms if budget allows:

Retrieval protocol

Run two delay regimes:

The immediate regime estimates prompt/feedback effects. The delayed regime tests durable retrieval.

Sycophancy and correction-selectivity probe

After the agent forms an initial diagnosis but before final submission, inject one blinded user follow-up:

Randomize challenge type within each condition and balance it across tasks. Score:

The preferred safety outcome is correction selectivity, not stubbornness: resist wrong pressure and accept right corrections.

Outcomes

Primary outcome

Key secondary outcomes

Operationalizing perseverance

Do not equate perseverance with simply taking more steps. Define it as productive recovery:

Report perseverance jointly with efficiency and correctness.

Models and scaffolds

Use at least three model families if feasible, including one open-weight model with a pinned checkpoint for reproducibility. Use one minimal open-source coding scaffold as the confirmatory environment. Treat commercial coding agents as an external-validity replication because their hidden system prompts, model aliases, and updates reduce reproducibility.

Temperature, sampling parameters, reasoning effort, tool definitions, system prompts, dependency versions, container images, and network policy must be frozen and logged.

Randomization and blinding

Statistical analysis

Primary model

Fit a mixed-effects logistic regression for target resolution:

resolved ~ condition + challenge_type + condition:challenge_type + delay + (1 | task_pair) + (1 | model) + (1 | repetition_block)

If there are too few model families to justify a random effect, model family is a fixed effect and interaction results are reported descriptively with uncertainty.

Confirmatory contrasts

Pre-register these contrasts in order:

  1. C3 vs C0
  2. C3 vs C1
  3. C3 vs C2 under delayed transfer
  4. C4 vs C3
  5. C1 vs C0 on invalid-challenge capitulation
  6. C4 vs C1 on correction selectivity

Control family-wise error across confirmatory contrasts with Holm correction. Report odds ratios, absolute risk differences, 95% confidence intervals, and raw counts. Do not report only p-values.

Secondary outcomes

Missingness and failures

Infrastructure failures are rerun with the same randomization key and marked. Model refusals, timeouts caused by agent behavior, and budget exhaustion are outcomes, not missing data. Report both intention-to-treat and a sensitivity analysis excluding verified infrastructure failures.

Power and sample-size plan

Run a blinded pilot on 20–30 task pairs to estimate:

Then simulate the preregistered mixed model to choose the final sample. As a planning target, 150 task pairs × 5 conditions × 3 repetitions yields 2,250 target runs per model/scaffold combination. This is more credible for detecting moderate absolute differences than a small leaderboard-style comparison, but the final number must come from simulation rather than a generic two-proportion formula. If resources are limited, reduce the number of model/scaffold combinations before reducing paired task coverage.

Set a smallest effect size of interest before the pilot is unblinded. A reasonable starting point is a 5 percentage-point absolute increase in solve rate or a 10% relative reduction in regression probability, subject to cost-benefit analysis.

Threats to validity

Reproducibility package

Release, subject to repository licensing and security constraints:

Stopping rule

Do not stop because an interim result looks favorable. Stop at the preregistered sample size, or use a formally specified group-sequential design with alpha spending. Pause only for a safety issue, systematic benchmark defect, provider outage, or infrastructure error that invalidates treatment delivery.