A test fails but deployment continues. Was the check absent, or did the workflow fail to use its result?
Write a brief prediction before opening the explanation.
Read the lesson
A request is not enforcement
Three different things can happen: instructions ask for a check, a tool executes it, and a workflow conditions the next action on its result. Only the third establishes a gate. A convincing completion message cannot substitute for a missing result. Start by naming the action to block, the evidence required and the condition under which work may continue. These conditions must be controlled by the workflow, not inferred from a model sounding confident.
Test the blocked path
A check can run and still be ineffective if its failure is ignored, its status is lost, or another route bypasses it. In a safe test environment, supply a known failure and verify that the dependent action does not occur. Also test the allowed path with valid evidence. A gate that always blocks is not correct either. No shell commands run in this lesson: the following cases describe simulated workflow records, not a tested CI configuration or a Codex hook contract.
Bind evidence to the work being accepted
A passing result from yesterday may be genuine yet unrelated to the current revision. Record the artifact or revision checked, relevant conditions and final outcome. If code changes after verification, decide which checks must be refreshed. A passing build still does not establish every behavior or authorization boundary. Treat missing, stale or interrupted evidence explicitly; request the smallest sufficient next check instead of overriding the gate to make the workflow green.
Accepting the existence of a test step as proof that failure prevents deployment.
Make the request actionable
A weak starting brief: Always run tests before deploy. If they fail, say everything is probably fine and continue.
This example is an adaptable request, not evidence that a runtime action has executed.
The ignored failure
Simulated pipeline: test step runs on revision R2 and reports failure. The deploy step still executes because it is configured to continue regardless of test status. The agent says tests were run.
Simulated scenario · No repository access or command execution
Loading your saved lesson progress…