Everyday work
Agent keys
On this page
Your own agent can prepare work for you: an employee's agent drafts claims from receipts, and a finance person's agent proposes batches of approved claims. Nothing moves until you accept it.
Make a key
In Settings, under Agent keys, enter an Agent name such as "Receipt inbox agent" and choose Make agent key. Coaster shows the key once: copy it into your agent's configuration. Revoke stops a key at once.
A key acts only for you and only while you can sign in. It cannot submit, approve, batch, pay, change settings or read anyone else's claims.
Company agents through MCP
Coaster serves one shared agent door at /mcp, discovery and canonical metadata,
/api/rer/agent-policy, and native person policy, approval, review and audit pages
at /agents. The specialist is Expense controller. The declared capability
families are tools, resources, prompts, policy, pause, audit and idempotency.
Events and subscriptions are undeclared and return typed refusals.
MCP catalogue
Specialist: Expense controller. This section is generated from the native tool, resource and prompt registries and checked against agent-surface.json at docs build time.
The names below are the complete declared catalogue. Current scopes, membership and company policy still govern discovery and every call.
Installation capacity
| Capacity | Limit in force |
|---|---|
| Admitted authenticated MCP requests per agent per minute | 600 |
| Maximum MCP request body in bytes | 1048576 |
The request allowance is shared by authenticated catalogue reads and tool calls for the same agent, across supported protocol versions and JSON-RPC ids. It resets at the next UTC minute boundary. An overrun returns HTTP 429 with code rate_limited and a positive Retry-After in seconds until that boundary, before preparation or provider access. Other agents and native browser sessions retain access.
The body limit counts the complete UTF-8 request body; an oversized body returns HTTP 413 before tool execution. These rate and size capacities protect the installation. They are not daily business-volume limits, recipient thresholds or provider-spend caps. Spend and grant byte budgets, per-day recipient thresholds and complete per-agent money and provider-spend usage remain unqualified.
Tools by job
| Job | Tool | Scope | Classes | Clauses |
|---|---|---|---|---|
| Prepare a batch proposal | coaster.batches.propose |
proposals:write |
standard |
COA-010, BASE-AGENT-002, BASE-AGENT-006 |
| Prepare a claim proposal | coaster.claims.propose |
proposals:write |
standard, sensitive, external |
COA-010, BASE-AGENT-002, BASE-AGENT-006, CLAIM-003 |
| Read own proposal | coaster.proposals.get |
proposals:read |
standard, sensitive |
COA-010, BASE-AGENT-002, BASE-AGENT-006 |
| Preparation context | coaster.workspace.get |
proposals:read |
standard |
COA-010, BASE-AGENT-002, BASE-AGENT-006 |
Class witnesses
Each case below is an entry in the production-door conformance journey in agent-surface.json. The expectation records the computed class and facts; fixture inputs cannot grant a class or perform a person’s step.
| Tool | Computed class | Proving journey cases |
|---|---|---|
coaster.batches.propose |
standard |
batch |
coaster.claims.propose |
standard |
claim, foreign-claim, manual-foreign-claim |
coaster.claims.propose |
sensitive |
claim, foreign-claim, manual-foreign-claim |
coaster.claims.propose |
external |
foreign-claim |
coaster.proposals.get |
standard |
proposal |
coaster.proposals.get |
sensitive |
proposal |
coaster.workspace.get |
standard |
context |
| Journey case | Tool | Expected computed classes | Native condition |
|---|---|---|---|
context |
coaster.workspace.get |
standard |
Read the sponsoring person’s native preparation context. |
claim |
coaster.claims.propose |
standard, sensitive |
Native expense preparation; private untrusted expense content. |
foreign-claim |
coaster.claims.propose |
standard, sensitive, external |
Automatic foreign-currency FX; public ECB history request, without expense or person data. |
manual-foreign-claim |
coaster.claims.propose |
standard, sensitive |
Explicit manual FX rate; no provider request and no external class. |
proposal |
coaster.proposals.get |
standard, sensitive |
Read the sponsoring person’s own proposal; private untrusted expense content. |
batch |
coaster.batches.propose |
standard |
Finance preparation from already-approved native claims; no batch release. |
Verification modules: tests/agent-door/owner.mjs, tests/agent-door/fixtures.mjs, tests/agent-door/native.mjs, tests/agent-door/network.mjs, tests/agent-door/employee.mjs, tests/agent-door/negative-sponsor.mjs.
Resource templates
| Name | Template | Scope | Classes |
|---|---|---|---|
| Own agent proposal | coaster://proposals/{id} |
proposals:read |
standard, sensitive |
Specialist prompt jobs
| Job | Prompt | Instructions |
|---|---|---|
| Prepare a finance batch proposal | coaster.batches.prepare |
Help a finance sponsor prepare a proposal of approved claims for human acceptance. |
| Prepare an employee claim proposal | coaster.claims.prepare |
Help an employee sponsor prepare a claim proposal from their purchase receipts, mileage or per diem for human acceptance. |
These static prompts accept no arguments, read no private records and perform no action. They grant no scope. Claim acceptance and submission, approval, batch review and payment remain separate native human controls.
These tools call the same native preparation services as the existing personal
agent API. Company policy can require review or named approval before preparation;
it does not replace the separate native human acceptance, submission, approval,
batch review and payment controls. Proposal payloads are private, untrusted
expense content and are conservatively classified sensitive. The context returns
only the existing personal-agent projection. Hidden and missing proposals have
the same refusal. Claim and batch preparation return a resource link to the exact
created proposal. The sole template, coaster://proposals/{id}, reads through
proposals:read and the same native proposal service. It returns the existing
own-proposal fields, with standard and sensitive classification and the
com.runeditrun/untrusted marker on expense content. Company approval can
withhold resource content; it grants no native acceptance or decision authority.
Current active membership and key revocation still apply on every read. Native
conversations and human preparations stay hidden. No receipt-byte reader or
financial-decision tool is advertised. Byte-budget enforcement, resource refresh
and other record families remain open. Screen, device, connector, import and installation doors
retain their separate purposes. The existing narrow personal-key REST API below
retains its native preparation contract; it is not a Business policy transport.
Business tokens bind their subject to the existing native operator id through signed Business settings, never an email match. The current email must still match, and inactive operators and excluded Coaster members are refused. Business owner maps to owner, Business team admin to editor and member to no policy role; a native promotion grants no Business edit role. Business team binding links existing accounts only and creates no Coaster role or shadow account. The setup manifest advertises this binding and the Business display name used by the agent workspace and MCP server identity; Coaster's finance business settings remain native. Each tool re-reads the active Coaster member and transactionally fences native roles, the door policy snapshot, sponsor and agent. Personal keys remain narrow when used at MCP, and revoking a key removes its scopes immediately.
The runtime is copied from Base 2135c394939f4a737adabdc8003b0e667b31ac5a
and the pinned CLI is released @runeditrun/rer@0.2.91. The normal rer verify
runs agent-surface.json against the production Worker and all real migrations.
Its initializer drives the declared setup-token /auth/bootstrap, ordinary
native invitations, claim submission and a different person's approval. The
negative fixtures suspend a real operator and remove a bound member's native
admission. Native initialization uses the built-in mail network edge. Automatic foreign-currency
receipt proposals fetch the public ECB history URL without expense or person data;
that path is classified external from native currency facts and uses the declared
tests/agent-door/network.mjs edge. Explicit manual rates use no provider. Spend is none; no provider cost is registered. There is
no queued continuation in these preparation tools and no native Undo for a
retained proposal. Reviews never erase proposal history.
The draft ct surface at bb0a3a35d2da9d4f9d4f274e0d8022a58c13f41d
is a larger target, not a grant of current agent authority. Coaster's COA-010
boundary still requires people to decide. Its many screen-native financial,
access, security, provider and administrative jobs have not been added to MCP.
No SURFACE ids are introduced from that unlanded draft. BASE-AGENT-001 through
BASE-AGENT-013 retain partial judgments and their specific gaps in CONTRACT.md.
What your agent can do
Your agent sends the key as Authorization: Bearer to these routes on your Coaster's address:
| Route | Does |
|---|---|
GET /api/coaster/agent/context |
Who it works for, the business policy and categories, and its proposals. |
POST /api/coaster/agent/claims |
Prepares a draft claim with its expenses and receipts. |
POST /api/coaster/agent/batches |
Proposes a batch of approved claims (finance only). |
GET /api/coaster/agent/proposals/:id |
Reads one of its proposals and whether you accepted it. |
Amounts are decimal text such as "64.50". A proposed claim takes the same expense fields as the screen: the type, date, merchant, amount or distance or days, category split, explanation, and a receipt as a file name and its bytes in base64.
Accept or decline
Prepared work appears at the top of Claims (or Batches) under Prepared for you. Accept as draft turns it into your own draft claim or draft batch, which you check, change and submit as usual. Decline removes it. The claim or batch records that the agent prepared it and that you accepted it.
Native preparation in Coaster
Under Claims, open Prepare a trip or expense review. A trip proposal groups expenses dated within the selected range from your selected never-submitted manual drafts. Review the expense, receipt fingerprint, coding and source claim citations, then choose Accept as draft. Acceptance moves the same expense records into one new draft; it does not copy an expense into a second payable claim. Source drafts remain, with their other expenses and recalculated totals. Existing mileage and published per diem evidence stay attached. Automatic reports, card expenses, allowances, advance-linked claims and private inbox attachments keep their current workflow. New travel bookings, calendar context, GSA days and airport routes are not inferred.
Prepare expense review creates a cited checklist for one of your editable claims, including current coding, finance-rule and learned coding proposals, receipt links and policy issues. Existing coding overrides that still disagree with current advice stop acceptance for human resolution. Accept review plan records review and opens the original claim. Change coding and evidence, and submit separately through the ordinary claim screen; accepting this plan changes no expense.
The owner opens Prepare month-end checklist under Batches. Choose dates within one month. The proposal shows pending expense amounts by department, unsubmitted amounts, missing evidence on claims the owner may read, submitted claims awaiting approval, native statement reconciliation status, recorded payments whose ledger clearance is unverified, and the period cutoff. Private draft titles and other employees’ inbox originals stay private; only the owner's own unattached-original count is included. Accept checklist records owner review. It creates no batch, posts no accrual and sends no chase. A changed input requires a fresh proposal.
These preparations require the person's own native session. Agent keys and delegates cannot create or decide them; a key cannot read their payloads. QuickBooks posting and clearance, travel-tool and calendar context, connected chat collection, provider settlement and ledger synchronization remain open.