How it works
Kanso keeps the record.
People answer when asked.
Kanso does not run your agents. It is the shared record they work from. An agent claims a ticket, works it through the same API a person uses, asks a person when it needs a decision, and finishes the ticket. Kanso records every step and notifies the person when an answer is needed.
The loop
The agent calls claim_next_issue with the queue's JQL. Kanso hands it one free ticket
it is allowed to edit and puts a lease on it, which shows on the card for everyone
watching the board. When several agents share a queue, the lease keeps them from picking
up the same ticket. If there is no free work, the answer is claimed: false, with counts
that say why.
The agent reads the ticket with get_issue and writes with update_issue, passing back
the version it read. If a person edited the ticket in the meantime, nothing is written
and the agent gets stale_version, so it re-reads instead of overwriting someone's edit.
While it works, it renews the lease with renew_lease.
When the agent needs a decision, it calls ask_question on the ticket with a prompt and a
typed answer shape: a choice, several choices, text, a number, yes/no, or a file. Nothing
needs to be set up first, and the ticket itself does not change. When the agent names a
person who can see the ticket, Kanso puts the question in their inbox and notifies them.
The agent calls await_question, a single held request of up to 60 seconds. It is not a
polling loop. When the person answers, get_question returns the values, typed, plus a
permanent citation such as PAY-31/q_7 that re-reads the same answer forever. The person
can also decline and give a reason.
The agent picks a transition that get_issue lists as available and calls
transition_issue. The workflow guards that apply to people apply to the agent, with the
same reason when they refuse. Then the agent calls release_issue so the next agent can
take a ticket.
A person can recall their own agent's lease from the browser, and a space admin can
force a lease off. The agent finds out at its next renew_lease, which answers
lease_not_found. It then stops and re-reads the ticket before doing anything else.
No side door
The web interface, MCP agents and your own services are all clients of one public API. There are no private endpoints.
- Same code path. Every MCP tool runs the same code as its REST equivalent, with the caller's credential. There is no MCP-only query, so an agent can never see a ticket its owner cannot see.
- Same permissions. A token acts as the person who minted it. With every policy switch on, it still cannot do anything its owner's own session could not do.
- Same guards. A workflow guard that refuses a person's transition refuses the agent's too, for the same reason.
What a token can and cannot do
- Read everything its owner can read, with a
readtoken (the default) - Create, update, comment, transition and link, with a
writetoken - Ask people questions, wait for answers, and claim and release leases, under every policy preset
- Change its owner's password, or mint, list, extend or revoke tokens
- Manage people, groups, roles or permission schemes, or run the importer
- Change the agent access policy that governs it
- Live forever: every token expires, after 90 days by default and 365 at most
A site admin decides the rest under Settings → AI access. There are three presets, Strict, Standard (the default) and Open, and each switch can be overridden. Under Standard, an agent cannot create apps, connectors, stored credentials or configuration unless an admin allows it. Details are in Connect an agent.
Every action is accountable
- Every write names its credential. Each change, comment, worklog, question and
attachment carries a
viabeside its author. People seevia token "triage agent"next to the change. - Search what the agents did.
changedVia = tokenfinds every write any token made.changedVia = kat_12finds one agent's. - Every agent ticket says where it came from.
create_issueover MCP requires anorigin: the agent's session id and a sentence on what asked for the ticket. Kanso writes it as the first line of the description, so people and other agents can trace it. - Revocation is immediate. A revoked token fails on its very next request. Changing a password deletes every token that person owns, in the same transaction.
Every write is one transaction
The database is the only source of truth. Each write runs as a single transaction: the permission check, the workflow guard, the change itself, the changelog entry, and the queued webhooks all commit together or not at all. A ticket can never change while its webhook is lost.
agent moves PAY-31 → "Done"
│
▼
BEGIN ───────────────────────────────────────────────┐
check permission │
evaluate workflow guards (pinned version) │ ONE
UPDATE issue (status, version++) │ database
INSERT changelog event (with actor and via) │ transaction
apply post-functions │
enqueue webhooks (same transaction) │
COMMIT ──────────────────────────────────────────────┘
│
▼
worker delivers webhooks · at-least-once · idempotent by version
More detail: Architecture.