Upgrading from 1.x to 2.0

2.0 makes agents first-class: they have identities of their own, every change is written to a log with who made it and why, problems have owners and can be handed over, an agent can answer first, and a change can be rehearsed or put to the person for approval. agents-and-the-person.md is the whole model.

For the person, nothing is taken away: the dashboard does everything it did, notifications behave exactly as before until you let an agent answer first, and every link in an old message still lands where it did.

Before you start

The database moves to schema version 2 the first time 2.0 starts, and 1.x cannot read it afterwards. Keep a way back:

docker compose exec quotapulse /quotapulse export --secrets > before-2.0.json
# or stop the container and copy the whole data directory, key file included

A compose file from 1.x follows the 1.x line (:1), so docker compose pull alone never moves you to 2.0. Choose it: fetch the compose file again — it follows the 2.x line now — or set QUOTAPULSE_VERSION=2 in .env, then

docker compose pull && docker compose up -d

What happens on the first start

What changes for agents and scripts

The dashboard's HTTP routes are unchanged, and /api/v1/tokens still lists, creates and deletes — now agents, in the 1.x shape. New:

MCP tools are now generated from the operation catalog. Most keep their names and inputs. These changed:

1.x 2.0
list_activity — the incident history list_incidents. list_activity is now the log: who did what, and why
acknowledge, unacknowledge with incident_id with incident; they answer with the incident, owner included, and take a reason
list_tokens, create_token, revoke_token list_agents (with read), add_agent, remove_agent — and update_agent, rotate_agent_key

And every change now takes reason, which goes to the log, and — when it only touches QuotaPulse's data — dry_run. New tools: whoami, inbox, changes, get_incident, take_incident, assign_incident, hand_over, note_incident, list_proposals, get_proposal, propose, withdraw_proposal. The skill the server serves describes all of it, so an agent that loads it learns the new names by itself.

Going back

Stop 2.0, put the copy you made back — the data directory, or an empty one with QUOTAPULSE_BOOTSTRAP pointing at before-2.0.json — and start 1.x. What happened in between stays in 2.0's database: export it first if you want to keep it.