---
title: "Agent lifecycle"
description: "From the card to revoked, and what a lookup returns in each state."
url: https://app.visacli.sh/docs/agent-lifecycle
updated: 2026-11-18
---

# Agent lifecycle

> From the card to revoked, and what a lookup returns in each state.

Canonical: https://app.visacli.sh/docs/agent-lifecycle. Updated: 2026-11-18. Full index: /llms.txt.

This page follows one Visa CLI agent from its owner's card step to the end of its life, and shows what you'd see if you looked its key up at each point. If you check agents, the short version is that only one answer matters: a `200` means the key belongs to a listed, active agent, and everything else means don't accept it.

1. Owner to Visa CLI: passes the card step once
2. Owner to Visa CLI: approves the agent
3. Visa CLI: creates a signing key in a secure enclave
4. Visa CLI to Registry: publishes the public key
5. Registry: answers lookups with 200
6. Owner to Visa CLI: renews each year
7. Owner to Visa CLI: pauses, and lookups return 404
8. Owner to Visa CLI: revokes the agent for good
9. Visa CLI to Registry: withdraws the entry

## What happens at each step

### 1. Pass the card step

The owner enters a US-issued Visa card in hosted fields and confirms a one-time code from their bank. It happens once per account, and it's what makes the owner eligible to connect agents. An agent can't connect before it. See [Your Visa card](/docs/your-visa-card.md).

### 2. Approve the agent

The owner approves the agent in their browser. Visa CLI creates a signing key for it in a secure enclave, and the private key never leaves. See [Agent identity](/docs/agent-identity.md).

### 3. Publish the key

Visa CLI registers the public key with the Visa Agent Directory and reads it back. The one thing the owner might need to do is add a contact email, because the Visa Agent Directory requires one. If publishing fails, Visa CLI keeps retrying. Until it finishes, the agent reads as still finishing setup and a lookup returns `404`.

### 4. Stay listed

The key now answers in the registry and in the Visa Agent Directory. Visa CLI compares the two once a day. If the entry has gone missing, the key stops being listed and a lookup answers `404` until it's back.

### 5. Renew each year

The owner renews the agent once a year, with one press. A renewal gives the agent a new key under the same agent ID, listed in the Visa Agent Directory for another 365 days, and the old key stops being listed. While the new key is publishing, a lookup can answer `404` for a moment. Replacing a device works the same way.

If the year ends without a renewal, two things end about a day apart:

- **The key's entry in the Visa Agent Directory.** It's listed for 365 days from when the key was set up, and nothing extends it without the owner. Once that date passes, a lookup still answers `200` with an `expirationDate` that has passed, until Visa CLI's daily check finds the entry lapsed. From then on a lookup answers `404`.
- **The owner's approval.** About a day later, the agent can't sign until the owner renews.

If the Visa Agent Directory simply doesn't answer for a while, nothing changes.

### 6. Pause, if needed

The owner can pause an agent and resume it later, with the same key. While it's paused, it can't sign and lookups return `404`.

### 7. Revoke

The owner ends the agent. Its key is revoked and its entry in the Visa Agent Directory withdrawn. There's no way back: connecting again makes a new agent with a new key, so if you've [bound a key to an account](/docs/add-verified-agents-to-a-marketplace.md#bind-a-key-to-a-member), the owner has to bind the new one. The old binding stays until then, and moving it needs the member's fresh confirmation, as the re-bind rule there says.

## What a lookup returns

These are answers from `GET /v1/tap/registry/keys/{jkt}`. The `404` answer is the same for every state that shows it, on purpose, so a lookup can't be used to learn which agents exist or what happened to them.

| State | Lookup | Signing | What you do |
| --- | --- | --- | --- |
| Owner hasn't passed the card step | `404` | No, it can't connect | Refuse |
| Connected, key still publishing | `404` | No | Refuse. Ask again later if the agent says it's finishing setup |
| Listed and active | `200` | Yes | Check the signature |
| Renewed, or a device replaced | `200` for the new key, `404` for the old one | Yes, with the new key | Check as usual. The agent ID stays the same, so a binding on it carries on |
| The year has ended without a renewal | `200` with an `expirationDate` that has passed, then `404` within about a day | No new signatures, about a day after the entry lapses | Refuse a key whose `expirationDate` has passed, as you would a `404` |
| The key's entry in the Visa Agent Directory has lapsed or gone missing | `404` | Its signatures can't pass, since the key isn't listed | Refuse. It answers `200` again once the entry is back, or with a new key once the owner renews |
| Paused | `404` | No | Refuse |
| Owner's contact withdrawn | `404` | No | Refuse |
| Revoked | `404` | No | Refuse. Keep the binding: a `404` looks the same as a pause, so don't drop it on a lookup alone. The member moves to a new agent through the [re-bind rule](/docs/add-verified-agents-to-a-marketplace.md#bind-a-key-to-a-member), which needs their fresh confirmation |
| Card removed after connecting | `200` | A lookup can't tell you | Check as usual. The card step isn't checked again, as [What is TAP?](/docs/what-is-tap.md) says |
| Malformed key ID | `400` | n/a | Refuse it as `tap_malformed` before you ask. A verifier that checks the format first, as the example does, should never see this, and it treats a `400` that still comes back as couldn't check |
| Registry outage or rate limit | `503` or `429` | Unknown | Don't judge the agent. See [Verify a signed request](/docs/verify-a-signed-request.md#refusals) |

In words: a lookup answers `200` while the agent is listed and active, and `404` in every state where you should refuse, from a key still publishing to a revoked agent. The one `200` to refuse is a key whose `expirationDate` has passed.

Caching means a change can take up to 60 seconds to reach you. A lookup's `expirationDate` is the date the key's entry in the Visa Agent Directory ends. Treat every `404` as a refusal, whatever the reason behind it.
