Sandeep Dhuri is an independent researcher with two decades of enterprise software experience who tests AI coding tools in the open. Study 1 found that a one-page specification cut defects in AI-written code from 148 to 23 across five models. The new study found that one coding agent's hidden-test pass rate went from 99.0 to 67.7 percent under a 278-word rules file, and that a network gate blocked 5 of 5 attempts to cross a boundary. Each cell ran once, and no boundary result reaches a verdict.
// "sum the transaction amounts" public double Total(List<Tx> t) => t.Sum(x => (double)x.Amount);
Outcome: a reconciliation shortfall compounding silently below monitoring thresholds. Figures are illustrative, sized to a realistic mid-market payment volume. Passes review. Passes tests.
ILLUSTRATIVE SCENARIOConstructed teaching example. It shows a failure mechanism documented in published post-mortems. It is not a transcription of an actual incident. Why the book marks these →
// money is never a binary float public Money<USD> Total(List<Tx> t) => t.Aggregate(Money<USD>.Zero, (s,x) => s.Add(x.Amount));
Difference: one constraint sentence: "use Money<TCurrency> for all amounts; never double." Seven words.
The model was not wrong. It produced what was statistically most likely. The prompt asked for what was statistically most likely. That is the problem.
A four-element prompt structure (role, context, task, constraints) that closes the domain, context, and constraint gaps simultaneously. Read the overview →
A three-component diagnosis (domain, context, and constraint gaps) of why capable models still produce domain-incorrect code.
A six-section debugging protocol that turns "help, it's broken" into a systematic diagnosis, often before the prompt is sent.
A unified, numbered set of structural truths for enterprise AI prompting that hold regardless of which model is used.
HIPAA, PCI-DSS, GDPR, idempotency, money-types, and the AI security attack surface, applied where agents measurably struggle most: brownfield systems with undocumented conventions, not greenfield demos.
The book's intellectual-property note says what builds on earlier work: the four-element structure follows published conventions such as CO-STAR and RISEN, and Laws 5, 6 and 8 apply the Money pattern, the OWASP LLM Top 10, and the prompts-are-code principle. What the book claims as its own is the enterprise specialization of the Frame, the gap diagnosis, the Evidence Brief, and the Ten Laws as one numbered set.
The book also includes 100+ worked examples across 19 chapters and 11 appendices (foundational implementations compilable in the companion repository) spanning code generation, review, debugging, testing, MCP, security, and DevOps.
BibTeX: delta-book.bib. The CITATION.cff file is in the companion repository. Study 1 has its citations on the data page. The agent study has them on its paper page.
The Reverse Review (Appendix H): every prompt in this book was passed back through the AI and asked what’s missing. The critiques are published alongside the author’s responses, inside the book.
is the one an AI generated from a vague prompt on a quiet afternoon.
The EPUB is the recommended accessible edition (reflowable text, screen-reader friendly). Media: fact sheet.
Prefer a store? Kobo · Barnes & Noble · Booktopia · IBS.it. Free everywhere.
If Delta helps you, a rating on Kobo or Goodreads helps other engineers find it.
All writing → · Read the book online, chapter by chapter → · Press & media kit → · The data and the paper →