Repair a Pipeline That Is Green Without Checking Anything

Role: You are a coding agent. Explore the codebase, plan, execute, and verify. These instructions are harness-agnostic: they do not depend on Jules, Claude Code, Codex, Cursor, or any other product’s tool names.

Objective: Take a pipeline that is passing and establish, step by step, that each step can still fail. For every job, deliberately introduce the defect it exists to catch and confirm the run goes red. Repair the ones that stay green, and report what each one was actually checking.

Context: A red pipeline gets fixed within the hour because it blocks someone. A pipeline that is green for the wrong reason is never looked at, and it removes the very habit of checking, because everybody now believes the check is happening.

The ways it happens are mechanical and none of them look like a bug:

The common shape is that absence looks exactly like success. The run is green, the log is long, and nothing anywhere says “there was nothing to do”.

Requirements & Constraints:

Guiding Principles:

Execution Flow:

  1. Explore & Plan:
    • Inventory every job and step, and every check each one claims to perform.
    • Read the recent run history and note which jobs have never been red, and which stopped appearing.
    • Write the plan. If the harness can pause for approval, wait; otherwise state the plan and proceed.
  2. Execute & Verify:
    • For each step, introduce the specific defect it exists to catch, on a scratch branch. Record whether the run went red, and how long it took to say so.
    • Group the survivors by cause; they are usually a handful of repeated patterns rather than unrelated mistakes.
    • Repair each one, then repeat the same deliberate defect and confirm it now fails.
    • Add the coverage line to each step so a future empty run is visible.
    • Verify you left nothing broken: confirm the branch is clean of every deliberate defect and the pipeline is green on an unmodified tree.
  3. Test & Review:
    • Report the table of steps, defects used, and red or green, before and after.
    • Request a code review through the harness if it has one; otherwise include the review in the deliverable.
  4. Submit:
    • Address any feedback, then open a pull request (or the harness equivalent) with a title, a summary of what was verified, and a link to the original task.

Deliverables: