FiCl Dev Blog한국어

[PR #5] Two Gaps Where a Test Failed and Nobody Could See It

Work completed 2026-10-09 03:14 KST · Published 2026-10-12 14:08 KST · AI model used for the work Claude Opus 5.5

[PR #5] Two Gaps Where a Test Failed and Nobody Could See ItFour-stage summary. The investigation finding, two gaps where failure is invisible (timeout, alert), what Claude fixed, and three real-session checksPR #5Two Gaps Where a Test Failedand Nobody Could See ItChecking that what I built actually runsI askedto checkit really runsFound two gapsand fixed themProbeGapsFixVerifyⅠFindingsThe hook ran asconfigured1FineConfigured per the docsRan 4 times in the sessionrecord, no errors2Two gaps foundFailures could stayinvisible to the userCritical gapsⅡTwo gapsFailed, butnobody could see3TimeoutOver 600 seconds, the hookis cancelled silently4Alert not shownOnly an app alert was shownIt did not appearon my screenWhy the app does not draw itis not confirmedⅢFixesScript, settingsand docs5Verify scriptStops itself at 540 secondsAfter one block,allows finishingonly if the reply says"verification failed"6Settings and docsExplicit timeout of 600Wording: "when a reply ends"Chain commands with &&ⅣChecks15 standalone,3 real sessions73 real sessions1st: first failure → blocked2nd: no phrase → blocked again3rd: phrase present → allowed8What is leftWhy the app does not draw thealert is not confirmedTurn the hook on once atest command existsKey point: Do not trust "it works" reportsalone; check what the user actually seesFiCl Dev Blog · Post summary figure
[PR #5] Two Gaps Where a Test Failed and Nobody Could See ItFour-stage summary. The investigation finding, two gaps where failure is invisible (timeout, alert), what Claude fixed, and three real-session checksPR #5Two Gaps Where a Test Failedand Nobody Could See ItChecking that what I built actually runsI askedto checkit really runsFound two gapsand fixed themProbeGapsFixVerifyⅠFindingsThe hook ran asconfigured1FineConfigured per the docsRan 4 times in the sessionrecord, no errors2Two gaps foundFailures could stayinvisible to the userCritical gapsⅡTwo gapsFailed, butnobody could see3TimeoutOver 600 seconds, the hookis cancelled silently4Alert not shownOnly an app alert was shownIt did not appearon my screenWhy the app does not draw itis not confirmedⅢFixesScript, settingsand docs5Verify scriptStops itself at 540 secondsAfter one block,allows finishingonly if the reply says"verification failed"6Settings and docsExplicit timeout of 600Wording: "when a reply ends"Chain commands with &&ⅣChecks15 standalone,3 real sessions73 real sessions1st: first failure → blocked2nd: no phrase → blocked again3rd: phrase present → allowed8What is leftWhy the app does not draw thealert is not confirmedTurn the hook on once atest command existsKey point: Do not trust "it works" reportsalone; check what the user actually seesFiCl Dev Blog · Post summary figure

Claude had built a hook (the verify-gate hook) for me that runs a test command at the moment the AI is about to finish a reply, and blocks finishing if the test fails. I asked for an investigation into whether it was actually in effect. Checking that something runs turned out to matter as much as building it.

What I did and why

Midway through, my authentication expired (401 OAuth access token has expired) and the work stopped, so I picked it up the next day.

Here is Claude’s conclusion. The hook was configured exactly as the official docs describe, and the session records showed it ran four times with no errors. There was no setting turning it off and no other hook overlapping it. But there were two paths where a test could fail and the user would see nothing.

  1. Timeout. If the verification command runs past 600 seconds (the hook’s time limit), Claude Code cancels the hook and finishes without any message.
  2. The alert is not visible. When a failure continued after one block, the hook finished with only an app alert (systemMessage), and on my desktop app screen that alert did not actually appear. Claude found it in the session record, and reproduced that Claude Code does emit the alert. Why the app does not draw it, Claude could not confirm.

By the “failure-case table” standard I had set in CLAUDE.md, these two paths count as critical gaps, where the user sees nothing and there is neither a response nor a test.

What Claude changed

The options I chose and the ones I dropped

How I checked

Round Situation Result
1 First failure Blocked, told to fix it or report ‘검증 실패’
2 No ‘검증 실패’ in the reply Blocked again, told to stop fixing and report
3 ‘검증 실패’ in the reply Allowed to finish. The temporary file deleted itself

In the first test, the round number was missing from the output. That was not a hook problem. It was a mistake in the test command Claude wrote, where PowerShell read $n회차 as one whole variable name.

What I did not do this time

What is left and what I learned