Skip to content
Visual explainer 5h to learn 5 steps

Vibe coding capstone: release with evidence and rollback

Run tests and accessibility checks, open a pull request with evidence, validate a local or preview release and demonstrate a rollback.

By Invicly Tech, , in Prompt Engineering and Vibe Coding. About 8 minutes to read.

Topic 29 of 29

In short

The last step is the release. You run tests and accessibility checks, open a pull request that carries the evidence, validate a preview or local release, demonstrate a rollback and tick the release checklist.

Think of it like this: It is the final inspection before handing over the keys, with proof attached and a spare key you have already tested.

Explained simply

You have built the feature. Now you prove it is ready. That means running every test, checking accessibility, and putting the results where a reviewer can see them. Proof is the product of this last step.

Accessibility means people can use the feature with a keyboard, a screen reader and different eyesight. A scan tool finds some problems, such as a missing label. It cannot find all of them, so you also tab through the screen yourself.

You then open a pull request, which is a request to merge your branch. You attach the test output, the filled acceptance matrix, your decision log and the diff notes. A reviewer should be able to trust the change without asking for more.

Last, you rehearse a rollback. You release to a preview or run a local production build, then revert and show the old behaviour is back. Free options are enough: a local build and git revert. No paid service is required.

Press Play on a diagram to walk through it one step at a time.

FlowFrom finished code to a proven release
  1. 1
    Run tests

    Unit, integration and end-to-end.

  2. 2
    Check accessibility

    Automated scan plus keyboard check.

  3. 3
    Open pull request

    Attach outputs and the matrix.

  4. 4
    Validate release

    Local build or preview URL.

  5. 5
    Demonstrate rollback

    Revert and confirm the old behaviour.

LayersWhat the pull request holds
  1. 1
    Summary

    What changed and why, linked to the brief.

  2. 2
    Acceptance matrix

    Every row marked with its check result.

  3. 3
    Test and accessibility output

    Pasted or linked.

  4. 4
    Decision log and diff notes

    Accepted and revised suggestions.

  5. 5
    Release and rollback checklist

    Ticked with evidence.

MapCapstone evidence folder
Evidence
  • Planning
    • Feature brief
    • Acceptance matrix
    • Prompt pack
  • Build
    • Prompt log with one failure
    • Decision log
    • Diff review notes
  • Release
    • Test output
    • Accessibility results
    • Rollback proof
    • Checklist

In depth

Run tests and accessibility checks

Run the type check, unit tests and end-to-end tests, and save the output. For accessibility, Playwright documents using the axe-core engine, through the @axe-core/playwright package, to scan pages in tests. Add a scan of the notes page, fail the test on serious violations and fix them. Then do a manual pass: tab through the page, check the focus is visible, labels are read, errors are announced and the page works at a narrow width. Automated tools catch only a part of the issues.

  • Save command output to a file.
  • Scan the new pages with axe.
  • Keyboard-only walkthrough.
  • Check at phone width and zoomed in.

Pull request with evidence

On GitHub, push your branch and open a pull request. Write a summary that links the brief, what changed and what you did not do. Paste or link test output, the acceptance matrix with each row ticked, accessibility results, the decision log and the diff notes. Use screenshots where they help. If someone reviews it, answer comments with evidence, not opinions.

SequencePull request review
Author
GitHub
Reviewer
  1. 1Push branch and open pull request
    Author to GitHub: Push branch and open pull request
  2. 2Notify reviewer with evidence
    GitHub to Reviewer: Notify reviewer with evidence
  3. 3Comment on a risk
    Reviewer to GitHub: Comment on a risk
  4. 4Reply with test output and fix
    Author to GitHub: Reply with test output and fix
  5. 5Approve
    Reviewer to GitHub: Approve

Validate a preview or local release

Run a production build locally with npm run build then npm start, or open the preview deployment your host created for the branch. Walk through the main flow: sign in, add a note, edit it, delete it. Check that the environment variables are set and the logs show no errors. Compare the behaviour with the matrix. A dev server hides some issues that appear only in a production build.

Demonstrate rollback and finish the checklist

Prerequisite: your change is committed on a branch. Steps: merge into a test branch or main of a practice copy, run the build and confirm the feature works. Then git revert the merge or the commits, rebuild and confirm the feature is gone and the old pages work. Evidence: screenshots or curl output before and after. Cleanup: delete the practice branch. Then tick the release checklist: tests, accessibility, matrix, evidence, rollback shown, owner named. Add a closing note with lessons learned.

  • Revert with a new commit, never by rewriting shared history.
  • Record the before and after evidence.
  • Reopen the checklist and tick with links.

Learn it in 5 short steps

About 1h each. Track them with a timer in your plan.

  1. 1
    Run tests and accessibility checks~1h
  2. 2
    Attach test output to the pull request~1h
  3. 3
    Validate a preview or local release~1h
  4. 4
    Demonstrate the rollback~1h
  5. 5
    Finish the release checklist~1h

Key points

  • Run the full test suite and an accessibility check, for example Playwright with an axe scan, and add a quick keyboard-only pass because automation misses a lot.
  • Put evidence in the pull request: test output, the filled acceptance matrix and screenshots where useful.
  • Validate the release in a preview deployment or a local production build, not only in the dev server.
  • Demonstrate the rollback with git revert and show the feature gone and the old behaviour back.
  • Finish the checklist and add a closing note on what you would change next time.

Key terms

Tap a card to flip it. 0/5 known

Examples

An accessibility test with axe

This Playwright test opens the notes page and fails if axe finds violations. It follows the pattern described in the Playwright docs. Check the current docs for the latest API.

ts
import { test, expect } from "@playwright/test";
import AxeBuilder from "@axe-core/playwright";

test("notes page has no detectable a11y violations", async ({ page }) => {
  await page.goto("http://localhost:3000/notes");
  const results = await new AxeBuilder({ page }).analyze();
  expect(results.violations).toEqual([]);
});

A rollback demonstration

On a practice branch, you merge the feature, prove it works, revert, and prove it is gone. Each step produces evidence for the pull request.

bash
git switch -c release-rehearsal
git merge --no-ff feature/notes
npm run build && npm start   # notes page works: 200
git revert -m 1 HEAD --no-edit
npm run build && npm start   # notes page: 404
git log --oneline -3

Quick reference

  • Run type check, unit, end-to-end and save the output.
  • Axe scans find some accessibility issues. Always add a keyboard pass.
  • Pull request: summary, matrix, test output, decision log, diff notes.
  • Validate a production build or preview, not only the dev server.
  • Rollback: git revert, rebuild, show the old behaviour.
  • git revert -m 1 reverts a merge commit.
  • Finish the checklist with links to evidence.

Common mistakes

  • Treating an automated accessibility scan as full proof. It finds only some problems, so test with the keyboard too.
  • Pasting 'tests pass' without output. Evidence means the command and its result.
  • Describing the rollback instead of running it.

Quick quiz

Pick an answer to see if you're right and why.

Question 1

1Why not rely on an automated scan alone for accessibility?

Question 2

2What does a good pull request carry?

Question 3

3Why validate a production build instead of the dev server?

Question 4

4Which command reverses a merge commit safely?

0/4 answered

Practice exercises

Try each one yourself first. Use the hint if you get stuck, then compare with the solution.

  1. Exercise 1easy

    Run your tests and build, and save both outputs to files named in the checklist.

  2. Exercise 2medium

    Add an axe test for your notes page and do a keyboard-only walkthrough, writing three observations.

  3. Exercise 3hard

    Open a pull request with the full evidence set and demonstrate a rollback on a practice branch.

Check yourself

Answer in your head, reveal, then be honest with yourself.

Feel confident about this topic?

Frequently asked questions

Do I need a paid hosting plan for a preview?
No. A local production build with npm run build and npm start is enough. A hosting preview is a nice extra.
What if axe reports no violations?
That is good, but it does not prove the page is accessible. Do the keyboard and zoom checks too.
Should I merge to main for the rollback demo?
Use a practice branch or a copy so the real history stays clean.

Go deeper

ShareXLinkedInWhatsApp