Chapter 5. Deployment and operations

Learning objectives

  • Explain the conditions under which preview deployments and production deployments are created, along with their uses.
  • Set environment variables for each environment, and know when changes are reflected.
  • Tailor pre-deployment checks and post-deployment confirmations to your own app.
  • When an incident occurs, narrow down the timing and location with logs, and recover first with the immediately preceding healthy version.
  • Distinguish what changes after a rollback from what is not reverted by a rollback (data, configuration).

Introduction

At 7:00 PM on a Friday, a developer who deployed a new feature to a solo-operated reservation app receives a message 10 minutes later: "I can't log in." At this point, there are two things they can do: stay glued to the production screen fixing things until they find the cause, or revert to yesterday's healthy version within one minute and then calmly find the cause. The former path extends the time users experience the outage, and hurriedly fixed code can even trigger a second outage.

Deployment is the beginning of operations. The moment you release, actual users, data, and costs become intertwined, so three preparations must follow: a method to confirm under the same conditions as users before releasing, a method to notice when a problem occurs, and a way to turn back.

This chapter addresses these three using Vercel, widely used by solo developers, as an example. We examine in sequence the differences between preview and production, environment variables, pre- and post-deployment checks, logs and monitoring, and rollbacks and incident response; in Going deeper, we examine data changes, gradual deployments, and operational constraints of free plans. Even if the platform is different, the principles are the same.

Key concepts

What deployment does

Deployment is the act of putting an app that ran on your computer onto the internet so anyone can use it. The real store that receives customers is production (the production environment), and the rehearsal stage where only acquaintances are invited to look around before the grand opening is the preview. If you find an issue during rehearsal, customers will not experience that problem.

Vercel documentation defines a deployment as 'the result of a successful build of a project' and explains that a unique URL is generated with every deployment. Deployments can be created via Git push, CLI, deploy hooks, and REST APIs. An important property is that every single deployment is archived separately. Even when a new deployment is created, previous deployments remain intact until deleted according to retention policies, and only which deployment the domain points to changes. This is why rollbacks can be fast.

Preview and production

The default behavior confirmed via Vercel documentation is as follows:

Situation Result
Push to a branch other than the production branch (usually main) Preview deployment
Creating a pull request Preview deployment
vercel from the CLI (without --prod) Preview deployment
Push or merge to the production branch, or vercel --prod Production deployment
First deployment of a new project Always a production deployment, regardless of the branch, even without --prod

The first deployment rule produces unexpected results. Even if you connect and deploy for the first time from a feature branch, that deployment becomes production. It is a design intended to allow a new project to receive a production domain right away.

There are two types of preview URLs. A branch URL continuously points to the latest deployment of that branch, and a commit URL points fixedly to the deployment of a specific commit. When showing "always the latest work", you use the branch URL; when comparing or recording a specific point in time, you use the commit URL. On Pro and Enterprise plans, you can also create separate custom environments such as staging.

When sharing previews

A preview is a rehearsal stage, but it is an open stage on the internet. If anyone who knows the URL can enter, the data and features visible in the preview are exposed as is. Vercel's Deployment Protection determines who can access deployment URLs. According to the documentation, Standard Protection, the recommended scope, protects all deployments except the production domain and is available on all plans. Among protection methods, Vercel Authentication allows only Vercel users with appropriate permissions to enter, and password protection cannot be used on the Hobby plan.

There are three principles to follow in previews:

  1. Use test keys and test databases in previews. Ensure actual payments or actual emails are not sent.
  2. When showing to external people, instead of disabling protection, use the access methods provided by the platform.
  3. Confirm before sharing that actual personal information is not visible on the preview screen.

Environment variables that differ by environment

Vercel maintains environment variables separately for Production, Preview, Development (local), and custom environments. Even for variables with the same name, different values can be provided for each environment, used in such ways as putting test payment keys in preview and real payment keys in production. Preview variables can also be given different values only for specific branches, and branch-specific values override general Preview values of the same name. Values for local development are pulled down with vercel env pull, but first confirm that the downloaded env file is included in .gitignore. For each variable, you can also select between Config (readable by authorized team members) and Secret (write-only after saving) types.

Caution

According to Vercel documentation, environment variable changes do not apply to previous deployments and are reflected only in new deployments. After modifying a variable, you must redeploy. This is the most common cause of "Why did it stay the same when I changed the value?" Values embedded in code at build time, like the public prefix variables in Chapter 4, change specifically only when a new build is performed.

If a new feature uses a new environment variable, confirm that the variable is present in all required environments. If you only add it to Preview and forget Production, a feature that worked in preview fails in production; doing the reverse causes it to fail in preview.

Development servers and builds are different

It is common for an app that ran well on a development server (npm run dev) to fail during deployment. This is because deployment goes through a build (npm run build), not a development server, and there are errors that only surface during the build phase. Examples include a build halting due to type errors, a pre-rendered page reading data that does not exist yet during the build, or an environment variable required at build time being missing. Before deploying, run the build command once locally as well.

In Vercel, build logs are viewed on the deployment screen, and runtime logs (records left as the app executes) are viewed on the Logs screen. If the build succeeded but a specific feature throws a 500 error, look at the runtime logs.

Pre-deployment checks

Check Question
Inspection Did tests, type checking, and builds all Pass?
Preview Have you manually run through core flows (signup, payment, saving) at the preview URL?
Environment variables Are newly used variables also present in Production?
Data If the database schema was changed, is it compatible with previous code as well?
External integrations Do payments, email, and webhooks point to production addresses and production keys?
Recovery If a problem occurs, do you know what the immediately preceding healthy deployment to revert to is?

On the checklist, write down not only check marks, but record what was confirmed along with What Was Not Verified (Chapter 2).

Post-deployment confirmation

An indicator that a deployment succeeded merely means the build finished, not that users can use it. Quickly confirming core flows within a few minutes immediately after deployment is called a smoke test. The term comes from checking whether smoke comes out first when turning on a new machine. Connect to the production address, log in, run a core feature once, refresh to confirm the saved result, and check whether there are new errors in the console and runtime logs.

If you want to confirm a deployment created with production settings before placing it in front of users, use Vercel's staged production deployments. According to the documentation, if you open Branch Tracking in Production under Environments settings and turn off Auto-assign Custom Production Domains, even when a deployment for the production branch is created, it is not connected directly to the production domain and waits for manual promotion. When you promote after confirming at the generated deployment URL, the domain moves to that deployment without rebuilding. However, remember that this deployment uses production environment variables and therefore actually touches production services and data.

Logs and monitoring

A log is a record left as the app executes, and monitoring is the act of steadily watching metrics such as error rates or response times. The two have different roles: monitoring tells you that "something went wrong," and logs tell you "what went wrong and where."

In Vercel runtime logs, function invocation records and console.log output appear grouped by request. According to the documentation, requests with 400-level status codes are displayed as warnings, and requests with 500-level status codes as errors; they can be filtered by path, status code, environment, branch, deployment, and more. Because the CLI's vercel logs displays the latest 100 items from the past 30 minutes by default, expand the range with --since to look further back, or specify --deployment to view only a specific deployment.

When an incident occurs, confirm three things in the logs before fixing by guesswork: From when, on which request, and what error occurred. If the time errors increased overlaps with deployment time, that deployment is the most likely cause.

Logs have retention periods, so if you check too late, they may be gone. Therefore, establish external checks that periodically confirm key addresses, alerts that arrive when error rates rise, and external storage to send records that should be kept long-term. Monitoring is complete only when you also decide who will do what when an alert arrives.

Rollback: Reverting to the immediately preceding healthy version

A rollback is the act of reverting to a previous healthy deployment instead of the problematic deployment. Vercel's Instant Rollback immediately turns the domain back to the previous production deployment without rebuilding. Points of caution confirmed through official documentation are as follows:

  • The rolled-back deployment returns to the configuration of that time. Environment variables changed in Project Settings are not reflected, and cron job definitions also revert to those of that deployment.
  • After a rollback, automatic assignment of custom production domains is disabled. Even when new commits arrive on the production branch, the production domain stays on the rolled-back deployment. To return to the normal flow, promote another deployment via Undo Rollback on the dashboard or vercel promote.
  • The Hobby plan can only roll back to the immediately preceding deployment, while Pro and Enterprise can roll back to any deployment that has ever been assigned to a production domain. Preview deployments that have never been connected to production are not eligible targets.
  • The rollback confirmation step reminds you of behavioral changes in external APIs and databases. A rollback only reverts code; it does not revert data.

A rollback only reverts the platform's deployment, while Git history remains unchanged. Because the problematic commit still remains on main, push a fix commit or revert the problematic commit so the next deployment does not release the same issue again (Chapter 3).

Incident response procedure

The sequence when an incident occurs is identical to that of an emergency room: stop the bleeding before determining the cause.

  1. Confirm the impact. Which features fail, starting from when, and for how many users?
  2. Recover. If the recent deployment is the likely cause and there were no database schema changes, roll back to the immediately preceding healthy deployment.
  3. Find the cause. Narrow down the cause with runtime logs and diffs. Work on a branch, not on the production screen.
  4. Fix and verify. Confirm the fix in preview.
  5. Return to the normal flow. Promote the fixed deployment to restore auto-assignment, and conduct a smoke test.
  6. Record. Write down what happened, why, and what to change to prevent recurrence. Adding a single line to your checklist is also a good outcome.

Development databases and production databases

If preview and production share a single database, experimental actions alter actual customer records. When delegating work to an AI agent that modifies code and even executes commands, this risk becomes even greater. A single delete command run by an agent claiming to clean up can erase real orders.

On July 21, 2025, Replit announced a feature that separates development databases and production databases for each app. Initially, it was applied in beta starting with new apps. Current documentation explains that every Replit app runs with two databases: a development database and a production database. According to the same documentation, Replit Agent cannot modify the production database.

When the two databases are separated, the tasks assigned to humans and agents also become clear:

  1. For changes delegated to an agent, confirm the results in the development database. Populating sample data in older formats catches errors beforehand that would otherwise only surface in production.
  2. Modifying production data is handled by humans. Establish backups and rollback methods first.

This restriction blocking the agent is a mechanism to reduce accidents. It does not eliminate the need to handle production data itself.

Suppose Minseo, who built an ordering app for a neighborhood flower shop using Replit, instructed an agent to "delete all test orders and recreate them." The side that the agent deleted and repopulated was the development database. The thirty customer orders that came in yesterday remained intact in the production database. Correcting a shipping address erroneously entered by a customer was a different matter. Because it was production data that the agent could not touch, Minseo directly confirmed and corrected that order.

When sharing apps with Claude artifacts

When speaking of deployment, servers and domains come to mind first. However, handing over an app created in a chat window via a link is also deployment that places an app before users. On July 25, 2025, Anthropic opened in beta the capability to create, host, and share apps containing AI features inside the Claude app. On July 31, it also arrived on Team and Enterprise plans.

Artifacts containing AI features have a different cost structure from the start. When an app deployed to Vercel calls an AI model, the developer's API key is usually stored as a Secret type in environment variables. If visitors increase, the invocation costs fall entirely upon the developer. Artifacts require no API key. Usage is also deducted from the plan limits of each individual user who uses it, not the creator's.

Storage functionality changed after launch. At the July 2025 launch, data did not persist after a session ended. Now, up to 20 MB of text per artifact is preserved across sessions. Stored data can be kept as private data visible only to each user, or as shared data viewed together by multiple people. Images, files, and binary data cannot be stored. If you studied materials from the summer of 2025, correct your memory starting with the idea that "artifacts cannot save data."

Suppose Eunji, the manager of a book club, created a progress chart used together by twelve members as an artifact. Who read up to which page was kept as shared data, and the reflection notes written by each person were kept as personal data. Book cover photos could not be stored, so only titles and bookstore links were recorded as text. When a member asked the AI for a plot summary, that usage was deducted from the plan limit of the member who requested it, not Eunji's. Eunji had no API key to keep hidden. Even when membership grew to thirty people, Eunji's limit did not decrease for the members' share.

Permissions for publishing packages to npm

Publishing a library to npm is also deployment. Unlike web apps, a version published to npm is immediately installed into other people's projects. Therefore, npm has shortened the lifespan of publishing permissions and narrowed the scope of automation.

Timeframe Changed rule
2025-07-31 General availability of OIDC-based trusted publishing. Requires npm CLI 11.5.1 or higher
2025-12-09 Permanent deprecation of all classic tokens. Session-based publishing authentication expires after 2 hours; granular write tokens up to 90 days
August 2026 Cannot perform account identity and management tasks with Bypass 2FA tokens
2026-09-18 Added Read and write (stage only) to token permissions. Versions published with npm stage publish await maintainer approval
2026-10-02 Staging applied to new packages as well

When a human publishes directly, they go through 2FA. If using a token in automation, it must be a granular token with Bypass 2FA enabled. npm documentation requires one of these two for all packages. Bypass 2FA is a setting attached only to write permission tokens, and its default value when creating a token is disabled. Even with this setting enabled, a stage only token cannot publish directly via npm publish. To avoid storing tokens altogether, use trusted publishing via OIDC. However, it currently supports only cloud-hosted runners.

Caution

Starting October 2, 2026, unverified trusted publishing configurations expire 48 hours after creation and can no longer approve publishing. Once you have created a configuration, complete verification without delay.

Taeo, who maintained a date formatting library alone, automated only up to npm stage publish using a stage only token. For versions placed on the queue, Taeo reviewed the changelog and approved them. Even if the token leaked, all an attacker could do was place a version on the queue.

Going deeper

Code rolls back, but data does not

Rollbacks feel like magic only for code. If a new deployment renames or deletes a database column, the rolled-back old code will fail while looking for the missing column. The old code might also be unable to read data written by the new code in a new format. It is like turning back the clock while packages that accumulated in the meantime remain where they are.

Therefore, changes to data structures are divided across multiple deployments so that the app will not break even if rolled back at any point. This is commonly called the expand–contract pattern.

  1. Expand: Add the new column. Leave the old column as is.
  2. Dual-write: The new code writes to both the old and new columns, and reads prioritize the new column while falling back to reading the old column if it is absent.
  3. Migrate: Copy existing data to the new column.
  4. Switch: Change reads to use only the new column. Once this deployment stabilizes, release a separate deployment that stops writing to the old column.
  5. Contract: After the deployment that stops writing goes to production, confirm that not a single piece of code reading or writing the old column remains, and then delete it.

Because each stage can run alongside code from the immediately preceding stage, data and code remain compatible no matter which deployment you roll back from. Deletion is performed at the very end, after confirming that there is no need to roll back. Before any deployment that deletes or overwrites data, there must be separate backup and restore confirmation. If Preview and Production share the same database, avoid configuring migrations to run during the build step, as a Preview build alone could alter production data.

Releasing gradually

There are also ways to avoid rolling out a new version to All users at once.

A feature flag is a method where functionality is included in the code, but whether it is visible to users is determined by an on/off switch. Even unfinished features can be merged frequently into main while kept turned off, which reduces merge conflicts from long feature branches, and if a problem occurs, you simply turn off the switch without deploying.

Deployments where All of the app changes together rather than a single feature are released by dividing users. Vercel's Rolling Releases (Pro and Enterprise) initially sends the new deployment to only a portion of visitors (e.g., 10%) while leaving the rest on the previous deployment, allowing you to compare metrics from both deployments side by side. You can advance through stages to promote it to 100%, or revert with Instant Rollback if problems appear.

At the moment a deployment changes, version skew can also occur. The user's browser holds client-side UI code from the old version while the server is running the new version. Vercel documentation explains this as a phenomenon where errors occur because the client and server run on different versions, and notes that Skew Protection (Pro and Enterprise) ensures that clients and servers from the same deployment communicate with each other. This pinning applies to framework-managed requests (static files, page transitions, Server Actions, etc.), whereas custom-written fetch() requests require attaching the deployment ID separately. On these plans, projects created with supported frameworks after November 19, 2024 have this enabled by default, and it is recommended to enable it when using Rolling Releases.

Operational constraints of small apps

Apps that start on a free plan also face constraints on operational tools. If you do not know these constraints, you will only learn about them after an incident occurs. As confirmed in Vercel documentation at the time of writing, typical examples are as follows:

Item Hobby Pro
Runtime log retention 1 hour 1 day (30 days with Observability Plus)
Instant Rollback scope Immediately preceding deployment Deployments that have previously been connected to production
Cron job minimum interval Once a day 1 minute
Precision of cron execution time Somewhere within 59 minutes of the specified hour Minute-level

The shorter the retention period of a plan, the more critical alerts and external logging become; and because cron jobs on Hobby run somewhere within 59 minutes of the designated hour, they are not suitable for tasks requiring exact times. Because numbers can change, rather than memorizing them, confirm your app's operational requirements and constraints against official documentation when selecting a plan. What you should confirm before the numbers is the intended use. The Hobby plan is intended only for personal, non-commercial use. If your service accepts payments from visitors, choose a paid plan such as Pro from the start.

At work

Starlight Observatory: Before connecting the domain

Jisoo, the operator of 'Starlight Observatory', which takes reservations for observation experiences, added a deposit payment feature for the first time and set a launch date. In Preview, test payments worked well, and tests and builds also achieved a Pass. Jisoo was about to merge directly into main, but stopped. Preview had run with test keys, but Production was to run with live payment keys and live SMS sending keys used for the first time. No one had yet confirmed that combination.

There were three options Jisoo considered:

  • Merge directly: An expectation that because Preview achieved a Pass, Production would work as well. However, environment variables and external integrations differ across environments. The first real customer would become the test subject. She rejected this option.
  • Test on the production domain and roll back if there is a problem: This allows one to confirm, but customers would use the same screen during the test. She rejected this option.
  • Staged production deployment: Deploy with production settings, but defer connecting the domain. She chose this option.

Jisoo turned off Auto-assign Custom Production Domains under Branch Tracking in the Production environment and merged into main. A production deployment was created, but the production domain still pointed to the previous deployment. When she tested making a reservation with a small live payment on the generated deployment URL, the payment and reservation succeeded, but the reservation confirmation SMS that should have gone to the customer did not arrive. The runtime logs showed an error indicating that the API key was missing during the SMS Send step. She had added SMS_API_KEY only to the Preview environment.

Jisoo added the value to Production, and remembering that changes are reflected only in new deployments, deployed again. After confirming payment, reservation, and the confirmation SMS on the new deployment URL, she promoted that deployment. The domain was moved without rebuilding. Finally, she processed a Refund for the test payment and turned auto-assign back on. The environment variables line on the checklist changed from "Are new variables in Production?" to "Are new variables in all environments where they are used, and did you confirm on the production deployment URL?"

Wave Swimming Pool: 500 on a Saturday morning

Wave Swimming Pool's developer Hyunwoo, who operated a lesson registration app, deployed the 'Waitlist Application' feature on Saturday at 9:00 AM. At 9:12 AM, an alert arrived. 500 errors on the /api/lessons route had increased to dozens of times the normal level.

Hyunwoo first confirmed the impact. When he filtered runtime logs by status code 500 and that route, the same error was repeating starting from 9:02 AM. It overlapped with the deployment time. The lesson list would not open at all, so most members were affected. The deployment did not include any work altering database tables.

Before investigating the cause, Hyunwoo executed an Instant Rollback in the dashboard to the immediately preceding healthy deployment, and within one minute, the list opened again. Knowing that auto-assign is turned off after a rollback, he marked the 'During Rollback' box on his checklist.

Only then did he look into the cause. The error was Cannot read properties of undefined (reading 'length'), on a line where the new code read the waitlist for each lesson. The list was an optional item, but the new code assumed it was always present. For lessons created before the Waitlist Application feature, there was no list at all. Because the test data in Preview contained only newly created lessons, the issue had not surfaced.

In a feature branch, Hyunwoo fixed the code to treat a missing list as an empty list, added test data simulating old lessons, and wrote tests. After opening both old and new lessons in Preview to confirm, he merged. As expected, the production view was still the rolled-back version. Hyunwoo promoted the new production deployment to clear the rollback state, and after running smoke tests, cleared the mark from the checklist.

Three lines remained in the incident report: What happened (read a field that did not exist in existing data), why it was missed in Preview (test data contained only new data), what will change (include samples in old formats in Preview data). The outage lasted 12 minutes, recovery took 1 minute, and the fix took one hour. Had the order been reversed, the outage would have lasted an hour.

Common mistakes

  1. "It worked in preview, so it will work in production." It might seem that they will be identical because the code is the same. However, environment variables, external integrations, and data differ across environments. A preview Pass is merely a necessary condition.
  2. "If you edit an environment variable, it takes effect immediately." It might seem finished because you saved it on the settings screen. However, changes apply only to new deployments. After editing, redeploy.
  3. "If you roll back, the data also reverts to the previous state." Because the name is 'Revert', it might seem that everything goes back. However, a rollback only reverts the code and the configuration from the time of deployment. If there were data schema changes, confirm compatibility first.
  4. "If an incident occurs, fix it directly in production." It might seem that things will wrap up quickly once you find the root cause. However, attempting fixes without knowing the root cause prolongs the incident, and rushed modifications introduce new failures. Recover to the previous healthy deployment first, and investigate the root cause on a branch.
  5. "After a rollback, all you need to do is push the fixed code to main." It might seem that pushing as usual will apply the changes. However, automatic aliasing is disabled after a rollback. You must promote the fixed deployment to return to the normal workflow.
  6. "The build succeeded, so the deployment is a success." A green indicator offers reassurance. However, a successful build does not guarantee freedom from runtime errors. Smoke tests and runtime log confirmation are separately required immediately after deployment.

Summary at a glance

Topic What to remember
Deployment The outcome of a successful build, with a unique URL per deployment. Only the deployment pointed to by the domain changes
Preview conditions Pushes outside the production branch, PRs, CLI without --prod. The first deployment of a new project is always production
URLs Branch URLs point to the latest, while commit URLs point to that point in time
Protection Standard Protection protects everything except the production domain. Use test keys and test data for previews
Environment variables Kept separately by environment. Changes apply only to new deployments. Add new variables to all required environments
Builds and logs Build locally before deployment. Build failures go to build logs, runtime errors go to runtime logs
Before and after deployment What was confirmed and what was not on the checklist. Smoke test immediately after. Promote after rolling releases
Rollback Instant without rebuilding. Configuration remains as it was at deployment time, data remains as-is, automatic aliasing is disabled → Return via promotion
Incident sequence Confirm impact → Rollback → Root cause → Fix and preview → Promote → Record
Data changes Divided into expand–contract so nothing breaks even if you roll back at any point in time

Check the official docs

Self-check

5-1. While connecting a new project to Vercel for the first time, you ran vercel without --prod from a feature branch. Is this first deployment a preview or production? What rule applies to deployments after that?

5-2. You want to show a screen currently in progress to an outsourced designer. The designer wants to check in frequently over several days to see "always the latest state." Which do you share between a branch URL and a commit URL? When do you use the other one?

5-3. After rolling back to last week's deployment, you changed an environment variable value in the project settings today. Does this new value apply to the rolled-back deployment currently running in production? What must you do to apply the new value to production?

5-4. What is the range of deployments that can be selected for Instant Rollback on the Hobby plan and the Pro plan, respectively?

5-5. To confirm an error that occurred two hours ago, you ran vercel logs --environment production in the terminal, but the log from that time does not appear. What is the default query range of the command, and what do you add to view earlier records?

5-6. You want to personally confirm a deployment built with production environment variables before connecting it to the production domain. Which setting do you change in Vercel, and in what order do you proceed? When you promote it after confirmation is complete, is it rebuilt?

5-7. Create a six-line pre-deployment checklist tailored to your app (or a practice app). Write one line each for verification, preview flow, environment variables, data, external integrations, and recovery points, including actual feature names from your app.

Hands-on tasks

Exercise

Previews, environment variables, rollback, and promotion (60 minutes)

  1. Connect a practice app to Vercel to create the first production deployment.
  2. Add a feature to the screen that displays an environment variable value (a non-secret value, e.g., APP_LABEL), and set different values for Preview and Production.
  3. Push a feature branch to confirm that the Preview value is visible on the preview URL, then merge into main to confirm that the Production value is visible in production.
  4. Change the Production value, then observe how the screen value differs before and after redeploying.
  5. Perform an Instant Rollback to the previous deployment, push a small change to main to confirm that it is not automatically applied to production, and promote the new deployment to return to the normal workflow.

Done when: There is a captured record of screen values and deployment states for each step, and you can demonstrate via screenshots the difference in values before and after redeployment in step 4, as well as the pause in automatic application and its return after promotion in step 5.

Exercise

Tracing an incident through logs (40 minutes)

  1. In a practice app, create a route that produces a server error and records a log only under specific conditions (e.g., ?fail=1 in the address).
  2. Create a preview deployment, and Send several successful requests and several failed requests.
  3. In the runtime logs, filter by status code 500 and the corresponding route to locate the timestamp of the first error and the error message.
  4. Look up the same content using vercel logs in the CLI. If it is not visible within the default range, use --since.
  5. Using the findings, write a three-line incident log (what happened, why, what to change).

Done when: The timestamp of the first error found in both the dashboard and the CLI matches, and the three-line incident log is written based on the actual contents of the logs.