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
- Tokens become agents. Each 1.x API token becomes an agent of its own,
under the same name, with the same scopes, and keeps its key: nothing
that uses one has to change. A token that could only report readings becomes
an integration; any other becomes an agent. Their IDs now start
agt_. - The log starts with your history. Every incident opened and resolved so far is written to it, so History → Log is not empty. An agent's feed starts at the present: the history is not news to it.
- Nothing else is changed: accounts, meters, readings, dates, channels and settings are as they were. No agent answers first until you choose one.
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:
POST /api/v1/ops/{name}calls any operation with the same input as its MCP tool;GET /api/v1/opslists them. See operations.md.- A refusal can carry
hint,scopeandmatchesbesidecodeandmessage. New codes:ambiguous,unknown_operation,not_rehearsable,already_decided,not_yours. - An incident carries
assignee,assigned_atandacked_by; settings carryresponder; a channel carriesagent_id; a delivery carriesheld_for. - The webhook payload adds the events
handoffandassigned, andsubject.assigneeandsubject.note. Nothing was renamed or removed. - Bundles are version 2: they carry
agents(andresponder, by name) where version 1 carriedtokens. A version 1 bundle still imports, its tokens as agents.
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.