AIToday
AI Coding AssistantsAI Safety & AlignmentZenn AI/MLPublished: Nov 8, 2026, 19:01 JST

define-done: judging AI-built code without reading it

Send on LINE
define-done: judging AI-built code without reading it

3 Key Points

  1. What happened

    A developer describes a workflow built on the define-done skill and a check_seal.py verifier, which freezes acceptance tests in a sealed commit before implementation and mechanically checks three points afterward.

  2. Why it matters

    If the tests are frozen against the approved requirements, the verifier can confirm the code behaves as agreed without a line-by-line read — an attempt to counter what Addy Osmani calls cognitive surrender.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

The starting point is Addy Osmani's phrase "cognitive surrender," which the author says describes his own drift: overwhelmed by the volume of AI agent output, abandoning thinking for himself, and nearing a state where he cannot explain his own work to others. He accepts that humans can no longer grasp everything a generative AI produces.

The proposed division of labor follows from that. Rather than reading the codebase closely, he aligns with the AI on a compressed natural-language statement of requirements and requirements definitions — a few hundred characters for roughly a thousand lines of output — and generates design and code from there. The refinement loop adds a "question back" function to define-done that runs only when requested, writes nothing to the plan or tests, and returns ambiguous requirements as questions with quotes and options. The password-reset example asks whether there is a cap on resend attempts, and the loop does not exit until the question count reaches zero.

His stated observation is that when requirements are vague, the AI tends to guess at the design, producing surprises he did not intend; when requirements are clear, it writes code with fewer bugs and as instructed. The sealed acceptance test is the backstop that lets him judge the artifact without reading every line. He frames the whole exercise as refusing to give up on explaining, in his own words, why the work is being done.

FAQ
How does the verifier decide the code is good?
check_seal.py verify checks three things: the acceptance tests and plan were not rewritten after the seal, the tests failed at seal time before implementation, and the tests now pass against the current code. When all three hold, the developer says the code behaves as the accepted requirements describe.
How is this different from spec-driven development?
The author says it is largely the same but closer to ATDD (acceptance test-driven development). Three differences are cited: acceptance criteria are drawn from the original requirements rather than design decisions, acceptance tests are written and sealed before implementation so AI rewriting them is detectable, and the process does not move to writing acceptance criteria until unclear requirements return zero questions.
What happens if requirements are still ambiguous when the plan gate passes?
The normal gate stops on contradictions or gaps in the plan but not on values the materials leave undecided. Such values are reported as missing information rather than guessed, so ambiguity can survive the gate — which is why the author loops until the follow-up questions reach zero.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articlePangram AI Detection test: ChatGPT and Qwen Image 2.1 images caught