# Quickstart

This page walks one small task through the whole model. The task is a bug fix in a fictional web app. By the end you will have a work brief, an evidence record, and a closed task. Each one is short enough to copy.

## 1. Write the brief

A customer reports that saving a profile with an emoji in the name fails. Before anyone touches code, the work owner opens a work record with a brief.

```text
Outcome: Users can save a profile name that contains emoji.
Reported: "Save" shows an error when the name contains an emoji.
Owners: support-agent-2 (work owner), Dana (product decision owner),
  Sam (data owner).
Exit: Observed working in production for the affected users.
Protected: Existing names must not change. No schema change without review.
Authority: Reproduce, fix, and test locally. Open a pull request.
  Integrate after an approving review.
  Deploying and messaging the customer need approval.
Stop and ask if: The fix needs a database migration.
```

The brief names what must become true, not what to edit. It sets the exit, so everyone knows what "done" will mean. It grants authority for some actions and keeps the rest.

## 2. Reproduce before you fix

The agent starts the app locally, creates a test user, and saves the name "Ana 🌱". The save fails with a 500 error. The server log shows the column uses a character set that cannot store four-byte characters.

The failure is now proven, and the record says how to trigger it. If the agent could not reproduce it, the record would say that too, and the fix would be a guess.

## 3. Fix and verify the exact candidate

The agent changes the column's character set in a migration. That is a database migration, so the brief says to stop and ask. The agent writes up the change, the risk, and the rollback plan, and asks Sam, the data owner. Sam approves a reviewed migration. Dana confirms the user-facing behavior.

The agent finishes the change and writes the evidence record.

```text
Claim: Verified. Profile names with emoji save and display correctly.
Candidate: commit 4f2a91c on branch fix/emoji-names.
Environment: local, fresh database from the seed script.
Checks:
  - Reproduced the 500 error on main (before the fix).
  - Saved "Ana 🌱" and three other four-byte names. All display correctly.
  - Existing names are unchanged (compared 1,000 seed rows).
  - New test fails on main and passes on the candidate.
Not checked: The migration time on production data size.
```

## 4. Review, integrate, deploy

A reviewer who did not write the change reads the diff and the evidence. They ask for a timing test of the migration on a synthetic database the size of production. The agent runs it. It takes 40 seconds and does not lock reads. The reviewer approves.

The agent integrates the pull request. The release owner deploys it. The agent confirms that the running version matches commit 4f2a91c. There is no flag, so the deployment enables the fix for every user, and the agent records that as the evidence for enabled. Each of those is a separate state with its own evidence.

## 5. Observe, tell the customer, close

The agent watches profile saves for a day. Errors on that endpoint fall from 12 a day to zero, and saves with emoji appear in the logs. That is the evidence for "observed working".

The agent drafts a reply to the customer. The communication owner approves it, and it is sent. The work record now shows every state, its evidence, and no open obligations. The task is closed.

## What to read next

- [Concepts](https://handbook.askre.page/concepts.md) explains each part you just used.
- [Fix a bug](https://handbook.askre.page/playbooks/fix-a-bug.md) is the full procedure for this kind of task.
- [Templates](https://handbook.askre.page/reference/templates.md) has the brief and the evidence record ready to copy.
