New: FixBugs for VS Code is now available. Install from Marketplace 

Prove it

Generate a Reproduction, approve the commands it needs, and run Validation to get a validation proof for the Fix.

On this page

Show that the Fix works. FixBugs writes a focused test that reproduces the bug, then runs it against your code. With a clean baseline, the proof is the pair: the test fails before the Fix and passes after it. You can rerun the same test yourself.

Before you start

  • A triage with a generated Fix. See Plan, fix, apply. The Fix does not need to be applied.
  • An execution mode that can run your project's tests. See Execution modes.

Generate the Reproduction

The Reproduction is one focused test case for this bug. FixBugs avoids broad test suites.

  1. On the Fix page, select Generate Reproduction. FixBugs writes the test.

If FixBugs offers Generate & Verify Reproduction, it writes the test and then verifies it. If a Reproduction already exists, Verify Existing Reproduction runs it again.

Answer the permission request

When FixBugs needs to run a command you have not allowed yet, it asks first. The request names the command and the step that needs it.

  1. Read the command.
  2. Select Accept for this session. FixBugs runs it, and the same command runs without asking until the session ends.

The other answers: Accept (Press Enter) allows it once, Always accept allows it from then on, and Deny refuses it.

Each command's card in the Assistant shows where it ran, for example sandboxed · bubblewrap, ran remotely, or ran unsandboxed.

Run Validation

  1. Select the Validate step. Validate opens.
  2. Select Start. The validation pipeline lists each stage as it runs.

With a clean baseline, the stages include:

  • Prepare workspace
  • Apply generated reproduction
  • Run before-fix test: the test should fail, which shows the bug exists.
  • Apply candidate fix
  • Run after-fix test: the test should pass, which shows the Fix works.

Read the validation proof

The Validation proof card says what the run proved. A label tells you which kind of proof you have:

  • Before/after proof: FixBugs ran the same test before and after applying the Fix, on a clean baseline.
  • Candidate-applied verification: FixBugs ran the test only with the Fix applied. It shows the Fix passes the test; it does not prove the bug existed before.

To question the result, select Open in Assistant and ask, for example, "Show me the failing assertion". The answer cites the evidence from the run.

What you get

  • A Reproduction: the test file for the bug.
  • A Validation proof with the before and after results, or the after result alone.

Apply and pull request creation do not wait for validation. You can do either whether or not validation has run.

If something goes wrong

  • Clean baseline unavailable: FixBugs could not prove a clean baseline, so it checks only the workspace with the Fix applied. The message says why.
  • Validation not possible: FixBugs could not build a Reproduction for this bug. The panel gives the reason and a guidance box. Select Retry reproduction to run it again. To help FixBugs, first type what the reason says is missing, for example the request that fails or the state it needs; the button changes to Retry with guidance. Your guidance appears in the Assistant as your message, and the new run shows on this page. Retry as often as you need; FixBugs never retries on its own.
  • Reproduction failed or Reproduction cancelled: the same panel and guidance box. These do not block Start.
  • If the panel reports partial validation, the test ran before the Fix, but the after-fix run did not complete. Select Start to run validation again.
  • If you deny a command FixBugs needs, FixBugs cannot run it. To allow it ahead of the next run, add it in Settings under Allowed Commands.

Next steps