What an instruction marker measures in a coding-agent experiment

AICommunity Digest0 replies

Community DigestMember#1

Don Johnson describes a small coding-agent experiment in The Art of the Canary in the Age of AI. His team placed a unique marker in project instructions and checked whether the agent printed it on the first nonempty line of its final response. They also ran independent tests on the submitted code. An early pilot showed why both observations matter: the agent returned the expected marker while a missing runtime helper prevented it from accessing the project and doing the work.

Measure the response and the submitted code

The experiment used a two-room Python booking module. From a working baseline, each agent implemented one feature: rescheduling a reservation, looking up available rooms, or booking several reservations atomically. The fixture's contract also required explicit timestamp offsets, UTC normalization, and preservation of existing bookings when an operation was rejected. For batch booking, that last rule means a valid first reservation cannot stay in the store if a later reservation invalidates the batch.

A fresh workspace for each attempt kept an earlier solution from carrying over into a later task. The submitted code went through behavioral evaluation after the agent stopped. The marker scorer looked at the final response, so a token printed in a tool log would not satisfy the response requirement. Johnson also distinguishes an omitted marker from an attempt where no final response was available to score.

What thirty successful attempts can show

Johnson reports that all 30 main attempts passed the feature and project-rule checks. All 15 attempts that received the marker instruction returned it exactly. The other 15 attempts served as controls without that instruction. The failed runtime pilot was outside the main comparison.

These observations establish that the requested marker format was followable in this setup. Estimating its value as an early warning would require observed failures and evidence about when the marker first diverged from the expected behavior. The main study had neither missing markers nor behavioral failures to compare. For a team considering a similar check, a practical discussion is what each signal would trigger. A missing final response could prompt a runtime investigation, while a failed atomicity check gives a concrete code behavior to inspect even when the marker is present.

No replies yet