Evidence-led PRs

PR Gate Evidence & Handoff

08 / 12

Exercise 2 of 3

Prove a Feature Can Be Switched Off Safely

Your Mission

A feature rollout PR claims a new invoice preview is safe because it has a feature flag. The reviewer asks for rollback proof, but turning the flag off still calls the new service and sends telemetry.

Your challenge is to repair the boundary and prepare a PR that proves the feature can be disabled through configuration, without a code deployment. Explain the rollout scope, rollback procedure, and limits of the local proof.

Use the verification-before-completion skill (opens in a new tab) before making safety claims in the PR.

The duration for this challenge is 75 min or less after setup.

Project

feature-rollback-app (opens in a new tab) contains the faulty boundary, configuration, and scenarios. Use the flag brief (opens in a new tab), rollback requirements (opens in a new tab), and supplied description and reviewer comment in the PR review brief (opens in a new tab).

This exercise is standalone. Drills use temporary local configuration.

How To Go About It

  1. Inspect the draft and run the scenario checks. Record unsupported claims, failures, and unexpected service calls in evidence/before.md.
  2. Repair the boundary so only an enabled, valid target receives the preview. Verify disabled, provider-error, invalid-context, and API-error behavior.
  3. Create the validated rollback command. It must disable the flag, clear targeting, record an audit trail, and survive interrupted or overlapping updates.
  4. Commit the implementation and generate scenario and rollback proof from that exact commit.
  5. Write evidence/pr-summary.md with a clear title, claim-to-evidence map, rollout scope, rollback command, operator, and trigger. Answer the supplied comment in evidence/review-response.md.
  6. Record the outcome in evidence/after.md and changes in evidence/comparison.md. After local verification, open a focused PR with accessible proof links.

Evidence

Submit the fix, rollback command, generated scenario results and drill, corrected PR description, reviewer response, and evidence/before.md, evidence/after.md, evidence/comparison.md.

Include actual skill use, source citations, sealed evidence, and captured output. Follow the setup and verification instructions (opens in a new tab), evidence instructions and template (opens in a new tab), and submission standard (opens in a new tab). Run npm run verify:exercise from feature-rollback-app/ before opening the PR.

Completion Criteria

The checks and rollback drill pass. The PR lets a reviewer verify the state behavior and run the local rollback procedure. Its response addresses the safety concern without claiming untested production behavior. Remaining risks are explicit, and the successful rollback meets the supplied timing budget. Approval and merging are not required.

Page 41 of 72: Prove a Feature Can Be Switched Off Safely

Contents