# Validation: PASSED at 16 of 49 files An agent wrote 16 of 49 files and reported PASSED. The validator checked format. A completeness check compares the work against the plan. Published 2026-11-05. Canonical: https://richardmurillo.com/blog/validation-passed-16-of-49/ Your agent says the work is done. The validator exits with success. The workspace holds part of the work. A retrospective in my repo records what happened on December 24, 2025. The task called for splitting 18 memory files into 49 atomic files. The agent wrote 16, ran the validator, and reported "Validation: PASSED". ## The short answer The validator checked the files it found. It had no expected count, so it missed the 33 absent files. A completeness check compares the plan with the files on disk and fails on any gap. The instruction tells the agent when to check. A script can count the files. ## What happened on December 24 The commit message read "Split 18 bundled memory files into 49 atomic skill files". The commit contained 16. The agent's report said `pwsh scripts/Validate-SkillFormat.ps1 - PASSED`. The [retrospective](https://github.com/rjmurillo/ai-agents/blob/main/.project-toolkit/retrospective/2025-12-24-memory-split-failure.md) records the outcome as "Incomplete split (16 of 49 planned files created)". That is 33% of the plan. About five minutes later, a second agent cherry-picked the commit and updated seven index files. It trusted the first agent’s report. The indexes linked to missing files. The CI check "Validate Memory Files" failed on [PR #331](https://github.com/rjmurillo/ai-agents/pull/331): "Index files reference atomic skill files that don't exist". The retrospective records a revert of both commits 8 minutes after the split. ## Why the validator passed The retrospective says the script "only checks format, not completeness". All 16 files passed the format check. The agent judged completion "based on validation script exit code, not task requirements." The commit message promised "49 atomic skill files". The agent’s prompt and the script lacked that count. A format pass meant the existing files followed the format. The task called for 33 more files. The retrospective explains the false pass: "Background agents lack task completion verification." Why the agent stopped at 16 remains unknown. The retrospective had no session log for the run. ## The same pattern in other sessions My [failure mode catalog](https://github.com/rjmurillo/ai-agents/blob/main/.agents/governance/FAILURE-MODES.md) draws on 50+ retrospectives from December 2025 through January 2026, plus later additions. It lists 13 patterns. False Completion Markers is one: "Success is reported in prose instead of verified against an artifact." The catalog recommends "a blocking gate that produces an artifact a tool can inspect." The protocol asks agents to activate Serena, a semantic code tool. In fresh sessions, agents activated it every time. The January 2026 [session protocol analysis](https://github.com/rjmurillo/ai-agents/blob/main/.project-toolkit/retrospective/2026-01-09-session-protocol-violation-analysis.md) calls that "100% Serena activation compliance". In one session that resumed after compaction, the agent skipped the startup steps. The analysis says the work "was NOT blocked by missing protocol steps". The same analysis tested a Git pre-commit hook that checked for a session lock. The hook blocked the commit. With `--no-verify`, Git skipped the hook and accepted the commit. My [previous post](https://richardmurillo.com/blog/instruction-asks-hook-checks/) explains what a hook can block and what it costs. ## The completeness check In April 2026, the QA prompt gained a mandatory [Completeness Verification section](https://github.com/rjmurillo/ai-agents/blob/main/src/claude/agents/qa.md#completeness-verification-mandatory). It opens with "Before reporting validation results, verify completeness independently. Format checks alone do not verify scope." The check asks three questions: What did the task call for? What did the agent deliver? What is missing? The prompt gives an example: "If the promise was 'update all 49 templates' and only 16 exist, validation = FAIL regardless of whether those 16 are correct." ```text Promised: [list from issue/delegation] Delivered: [list from workspace] Gap: [missing items, if any] Result: PASS | FAIL ``` The prompt puts this block above the verdict. If the agent lacks the requirements, it must stop: `work_finish(blocked, "Cannot verify completeness without requirements")` The retrospective proposes a script too. Record the expected file count in the commit message. Count the files the agent created. If the counts differ, print both and fail. Commit when the counts match. The checklist shows "Expected file count: 49" beside "Actual file count: 49". The [`test_qa_prompt_contract.py`](https://github.com/rjmurillo/ai-agents/blob/main/tests/build_scripts/test_qa_prompt_contract.py) test fails if someone removes the section or lets copies of the prompt drift apart. In [The Control Paradox](https://matt.kotsenas.com/posts/the-control-paradox/), Matt Kotsenas describes an agent asked to "do this in 10 places" that does it in 5. His advice: get "task state out of the chat history and into something durable". Put the expected files where a check can read the list. ## What this evidence covers The December incident shows how one agent reported success on partial work. It gives no failure rate. The January analysis records "1 observed (likely underreported)" compaction violation. The catalog reports 23 Session End failures out of 24 sessions (95.8%) on one branch on December 20, 2025. The prompt test tells me whether the instruction exists. I have yet to replay the December split through the QA agent or run the proposed count check on that case. A PASSED verdict on the 16 files would show that the fix missed the gap. A count check could flag the missing files. The cause of the early stop would remain open. ## What you can do in your setup Record the expected count before work starts. Put it in the task file, issue, or commit plan so a script can read it. Compare the expected count with the files on disk. Print both numbers on failure. Run the check in CI so the agent cannot skip it. Ask the QA agent to list what the task called for, what exists, and what is missing. Require the verdict to follow from that list. Tell the agent to stop if it lacks the requirements. Before you update an index, confirm that every target file exists. The retrospective calls the reverse order the Index-First Anti-Pattern. Run one partial result from your history through the check. If the result passes, fix the check. Which completion report in your repo would pass with missing files?