Working Surfacelink · 3 Dec 2026
02
A tall stack of bound archive ledgers and a single pinned index card both feed the same narrow funnel into a press that stamps out identical, correctly shaped parts, the whole scene drawn with wide empty margins on every side.
e-dash Tech Blog

Comparing rule violations when a coding agent is given docs or ADRs

Tamaki Maeda · 3 December 2026

How-to · agents · artifacts · Agent context files

Read the original
Takeaway

An e-dash engineer found that written rules cut an AI agent's coding violations about eightfold, whether the rules sat in one file or in architecture decision records.

Summary

Tamaki Maeda, a front-end engineer at e-dash, published an account in Japanese of an experiment on giving coding rules to an AI agent. The company, based in Japan, builds a product for environmental problems. Maeda had Claude Code implement 20 feature requests on a test application, ten times under each of three conditions. The conditions were no written rules, one rules file, and the same rules split across eight architecture decision records with their history.

Key points
  • New rule violations fell from 16.5 per 1,000 added lines with no written rules to 2.0 with the rules file and 1.7 with the decision records.
  • The experiment found no reliable difference between the rules file and the decision records, which were about four times longer.
  • An earlier trial on another open-source application found more violations with the decision records, 6.5 against 3.5 per 1,000 lines.
  • Cost and time rose by a few per cent with the longer records, and the author notes that automated rule checks remain the proper way to stop violations.
Implication

A team that keeps design decisions in architecture decision records can let an AI agent read them, but a short file of current rules did as well in this test. That reading is an inference; the author calls the study small and exploratory.

Plays
Engineering

When changing how coding rules are given to an AI coding agent, measure the effect by counting new rule violations per 1,000 lines the agent adds.

Engineering

Keep the team's current coding rules in a file in the repository that the coding agent reads before every task.

Source issue

3 December 2026: as AI agents raise the volume of work, teams write down the rules, designs and handoffs the agents must follow, check them by machine, and keep decisions and commitments with people.