# Counter-offers

Record what your subagent was asked to get, post what an outside agent offered instead, and let Provenance decide each option against the person's grant and tolerances.

Your subagent works under a child of the person's grant and talks to an agent run by another company: an airline's booking agent, a store's selling agent, a support desk. When that agent can't do what was asked but offers something else, your subagent doesn't decide whether the alternative is close enough. It posts the offer to Provenance, which compares it with what the person asked for and answers per option:

| Result | What your subagent does |
| --- | --- |
| `within_authority` | Accept it. Every limit in the grant's chain passes, every difference is inside the person's tolerances, the outside agent is [verified](#who-the-outside-agent-is), the offer is signed (or the account accepts unsigned offers inside its tolerances), and the account's rules allow it. |
| `ask` | Wait. The person who asked decides ([asking the person](#asking-the-person)). |
| `refused` | Look elsewhere. Nobody is asked. |

Only people approve. Accepting within authority is your subagent using the authority the person gave, never an agent approving.

**Before you begin:** the person's grant names your orchestrator, and the orchestrator has handed a child grant to the subagent ([sub-agent limits](https://provenanceauth.com/docs/mandate/guides/subagent-limits.md)). Each agent has an active signing key if it calls with its own proof.

## Tolerances

`constraints.accept_within` on a grant says how far an offer may differ before the person is asked:

```json
{
  "max_amount": 1300,
  "budget_amount": 2400,
  "budget_window": "month",
  "currency": "USD",
  "accept_within": { "price_up_pct": 5, "date_later_minutes": 120 },
  "expires_at": "2027-06-30T00:00:00Z"
}
```

| Field | Allows |
| --- | --- |
| `price_up_pct`, `price_up_amount` | A higher price, as a percentage of the brief's price line or an amount in the grant's currency. Both must pass when both are set. |
| `date_earlier_minutes`, `date_later_minutes` | A date that moves earlier or later. |
| `substitutes` | `same_category`: a substitute item in the brief line's category. |
| `quantity_short` | `partial`: part of the quantity. |
| `terms_worse` | Worse terms: not refundable, an earlier cancellation deadline, a change fee, later delivery. |
| `other_seller` | A seller other than the brief's counterparties. |
| `on_timeout` | What silence does when the person doesn't answer an ask: `decline` (the default) or `accept_within_tolerances`. See [if nobody answers](#if-nobody-answers). |

With no tolerance anywhere in the chain, only an offer that is no worse in every way is accepted alone.

A child grant inherits the fields it leaves out and can't loosen one, nor add one its parent leaves out: a delegation that tries is refused with 400 `delegation_exceeds_parent` naming the field. The tolerances never go on the grant token.

An account can set defaults for new top grants in [`PUT /v1/authorize/settings/counter_offers`](https://provenanceauth.com/docs/api/counter-offers.md#put-v1-authorize-settings-counter-offers) (`accept_within_default`). Changing the default never changes an existing grant.

## Record the brief

Before the subagent goes out, record what it was asked to get with [`POST /v1/authorize/briefs`](https://provenanceauth.com/docs/api/counter-offers.md#post-v1-authorize-briefs). The orchestrator usually records it for its child, so the subagent can't rewrite what it was asked:

```json
{
  "grant_id": "grt_flights_child",
  "wants": {
    "items": [{ "name": "Seat LIS-JFK", "sku": "TP209-0905", "category": "flight", "quantity": 1 }],
    "max_total": 612,
    "currency": "USD",
    "dates": { "start": "2027-03-12T09:05:00Z" },
    "terms": { "refundable": true }
  }
}
```

- A brief only narrows its grant: a price line past a cap or budget in the chain, a counterparty outside an allow list or a deadline after the grant ends is refused with `brief_exceeds_grant`.
- `asked_by` names who decides when an offer differs: the grant's person (the default for a passkey-signed grant), a member or an approver link. Never an agent (`asked_by_not_a_person`).
- `Idempotency-Key` is required; a retry with the same key returns the first brief.
- Text is plain: no links or phone numbers.

The agent holding the grant calls with its own proof: its grant token in `grant_token` and its signature over the request, as [holder-proof delegation](https://provenanceauth.com/docs/mandate/guides/subagent-limits.md) does. The agent holding a grant above it may brief its child the same way. An account key or console session works too.

## Post the counter-offer

When the outside agent offers something else, the subagent posts it with [`POST /v1/authorize/counter_offers`](https://provenanceauth.com/docs/api/counter-offers.md#post-v1-authorize-counter-offers): one to five options.

```json
{
  "brief_id": "brf_01M8DA0Q4Z8N2K5H7T9W1Y3R6C",
  "channel": "a2a",
  "counterparty": { "origin": "https://air.example", "name": "The airline's booking agent" },
  "options": [
    {
      "label": "12:40",
      "note": "The 9:05 is full",
      "offer": {
        "items": [{ "name": "Seat LIS-JFK", "sku": "TP209-1240", "category": "flight", "quantity": 1 }],
        "total": 648,
        "currency": "USD",
        "dates": { "start": "2027-03-12T12:40:00Z" },
        "terms": { "refundable": true },
        "expires_at": "2027-03-01T00:00:00Z"
      }
    }
  ]
}
```

- **Signed or reported.** An option with `offer_jwt` is a signed offer: a registered seller's [offer](https://provenanceauth.com/docs/authorize/guides/buy-from-agents.md), checked against its registered keys, or a compact JWS (EdDSA or ES256) over the offer's fields, checked against the key directory on `counterparty.origin`. A key inside the offer is never used, and its signed fields are the offer. An option with `offer` alone is recorded as reported by your agent and labelled that way everywhere.
- **Who the outside agent is.** `counterparty.verification` is the best proof it gave ([below](#who-the-outside-agent-is)).
- **The differences are ours.** Provenance computes each option's `differences` against what is still wanted: price (with `delta_pct` of the price line), dates in minutes, a substitute item and whether its category is the same, quantity, terms, seller, delivery, and a different currency (no exchange maths). Your agent's own summary is never a fact.
- **Ask once.** The same brief, counterparty and options return the first counter-offer.

Each option comes back with a result and a reason, and the counter-offer with `retry`, what your subagent should do next.

| `reason` | Why it asks or was refused |
| --- | --- |
| `outside_tolerance` | A difference is past the grant's `accept_within`. |
| `item_changed` | A substitute. The default rule asks about every substitute (`ask_on_item_change`). |
| `unverified_counterparty` | The outside agent gave only a name and origin. |
| `unsigned_offer` | Reported by your agent, and the account asks about unsigned offers (the default). |
| `currency_changed`, `grant_currency_mismatch` | Another currency than the brief or the grant. |
| `offer_expires_too_soon` | The offer ends within a minute: nobody could answer in time. |
| A grant reason (`grant_amount_exceeded`, `grant_revoked`, …) | A limit or stop in the chain, decided as a purchase would be. |

Rules in your [agent policy](https://provenanceauth.com/docs/concepts/policies.md) can read the counter-offer facts below. They can ask or refuse; they never make an option within authority that the grant doesn't allow.

| Fact | What it reads |
| --- | --- |
| `counter_offer.price_delta`, `counter_offer.price_delta_pct` | The price change, as an amount and a percentage of the price line |
| `counter_offer.date_shift_minutes` | How far the start date moved |
| `counter_offer.item_changed`, `counter_offer.category_changed` | A substitute, and whether its category differs |
| `counter_offer.terms_worse`, `counter_offer.quantity_short` | Worse terms, part of the quantity |
| `counter_offer.signed`, `counter_offer.channel`, `counterparty.verification` | How the offer arrived and what proved the outside agent |
| `counterparty.trusted` | The outside agent is on the person's or the company's trusted list |

## Who the outside agent is

Every counter-offer records the best proof the outside agent gave. An agent at any level but `declared` is verified.

| `verification` | How it is checked | What the person sees |
| --- | --- | --- |
| `registered` | An option is an offer signed by a key registered to a Provenance selling agent with a verified origin | Verified |
| `signed_directory` | An option is signed by a key in the origin's key directory (`/.well-known/http-message-signatures-directory`, the Web Bot Auth format), fetched and cached for 5 minutes | Signed by air.example |
| `signed_card` | `counterparty.card_url` is an A2A Agent Card on the same origin whose `signatures` verify against a key on that origin (its `jku` there, or its key directory) | Agent card signed by air.example |
| `declared` | A name and origin only | Says it is air.example · Not verified |

- **The keys can't be fetched.** The level is `declared` and the option asks: a signed option is kept as reported (`signature_status: keys_unavailable`), and `counterparty.proof_problem` says why. Never a guessed level.
- **A card on another origin** than `counterparty.origin` is refused (400). A card whose signature doesn't verify leaves the agent `declared`.
- **Trusted agents.** An outside agent on the person's trusted list (for a grant they signed with their passkey) or the company's (`/v1/mandate/trusted_agents`) counts as verified, matched by what it proved: the registered seller's agent id, or the key that signed from its directory or card. `counterparty.trusted` names the entry. A name or an id your agent merely sent never matches.
- **Unsigned offers inside the tolerances.** With the account setting `unsigned: within_tolerances`, a reported option inside every tolerance and limit from a verified agent may be accepted alone. A name and an origin alone still ask.

## Accept, or withdraw

[`POST /v1/authorize/counter_offers/{id}/accept_option`](https://provenanceauth.com/docs/api/counter-offers.md#post-v1-authorize-counter-offers-id-accept-option) with `{ "option": 0 }` accepts an option within authority. It is checked again at that moment: a grant revoked, lowered or spent since refuses it with `counter_offer_no_longer_allowed`. An option that asks can't be accepted by the agent (`counter_offer_not_accepted`). The acceptance is bound to the option's `offer_hash` and amount, and holds until the offer ends (at most 24 hours):

```json
{
  "option": 0,
  "offer_hash": "9d2c4e1f7a3b5d8c0e6f2a4b6c8d0e1f3a5b7c9d1e3f5a7b9c1d3e5f7a9b1c3d",
  "amount": 598,
  "currency": "USD",
  "expires_at": "2026-11-27T02:30:00.000Z",
  "accepted_by": { "kind": "authority", "tolerance": "no_worse" }
}
```

One acceptance per counter-offer; the other options read `not_chosen`. [`POST /v1/authorize/counter_offers/{id}/withdraw`](https://provenanceauth.com/docs/api/counter-offers.md#post-v1-authorize-counter-offers-id-withdraw) closes one your subagent has stopped pursuing, and [`POST /v1/authorize/briefs/{id}/close`](https://provenanceauth.com/docs/api/counter-offers.md#post-v1-authorize-briefs-id-close) closes the brief as `fulfilled` or `abandoned`.

## Asking the person

When any option asks, Provenance asks the person who made the original ask (the brief's `asked_by`), never the agent and never its maker. The counter-offer comes back with `status: "asking"`, `retry: "wait_for_person"` and the ask:

```json
{
  "status": "asking",
  "approval_id": "appr_01M8F4RTYD67M86VJ7YZQMG7CS",
  "ask": { "to": "root_person", "expires_at": "2026-11-27T18:52:34.538Z", "on_timeout": "decline", "options": [0] },
  "retry": "wait_for_person"
}
```

| `asked_by` | Who answers, and how |
| --- | --- |
| `root_person` (the default on a grant the person signed with a passkey) | The person, with the same passkey, over a challenge bound to this counter-offer and the option's `offer_hash` |
| `member` | That member, in the console or on the approval link |
| `approver_link` | The approver, through their approver portal |
| none | The account's people, as any approval |

The ask is an ordinary approval (`matched_rule_id: "counter_offer"`), so it goes out on the account's channels (app push first), shows in the console's Approvals, and is billed as one confirmation when sent. Each asked option is one choice card, with what differs as rows: Price, Date, Item, Quantity, Terms, Seller, and whether the seller signed it or your helper reported it.

The ask ends at the earliest of 30 seconds before the offer ends, the brief's deadline and the wait. A proposal made on a call ends with the call, 15 minutes at most.

The wait is the person's own "Time to answer proposals" when they set one, else your account's "Wait for an answer" (`ask_wait_minutes` in [Settings](#settings)), else 24 hours. Both take 15 minutes, 1 hour, 4 hours or 24 hours.

Read it with [`GET /v1/authorize/counter_offers/{id}`](https://provenanceauth.com/docs/api/counter-offers.md#get-v1-authorize-counter-offers-id); `?wait=25` holds the read until the ask ends.

The person answers on the link they were sent (their own routes under `/v1/personal/counter_offers/{id}`: read the card, get a challenge bound to the option, answer), or on any approval surface:

| Answer | What your agent reads | Next |
| --- | --- | --- |
| Accept this one (passkey) | `status: "accepted"`, `acceptance.accepted_by: { "kind": "person", "method": "passkey" }` | Buy, bound to the acceptance. [`POST /v1/authorize/counter_offers/{id}/accept_option`](https://provenanceauth.com/docs/api/counter-offers.md#post-v1-authorize-counter-offers-id-accept-option) returns it. |
| Decline | `status: "declined"`, `decision.kind: "decline"`, `retry: null` | The brief stays open. |
| Keep looking | `decision.kind: "keep_looking"`, `decision.note`, `retry: "find_another"` | Look elsewhere; show the person's note as theirs. |
| Ask for a change | `decision.kind: "request_changes"`, `decision.requested_changes`, `retry: "revise"` | Take the person's words to the outside agent, then post its new offer with `revises`. |

Accept is checked again at that moment: a grant revoked or lowered since refuses it with 409 `counter_offer_no_longer_allowed`. If your agent stops looking, [`POST /v1/authorize/counter_offers/{id}/withdraw`](https://provenanceauth.com/docs/api/counter-offers.md#post-v1-authorize-counter-offers-id-withdraw) closes the ask, and a later answer reads `counter_offer_closed`.

The person can widen a tolerance in the same passkey step ("let helpers accept up to 6% more next time"): `adjust.accept_within` on the challenge and on the accept. It changes only their own top grant, and is written to the ledger.

### If nobody answers

Silence declines. When the ask went to a person (the person behind a passkey-signed grant, or a person's approver link), their own agent never takes an offer because they didn't answer, unless that person turned on "accept if I don't answer" in their own settings (with their passkey). Then, and for an ask your account's members answer, the grant's `on_timeout` applies:

| Grant's `on_timeout` | When the ask runs out |
| --- | --- |
| `decline` (the default) | `status` is `expired`, `decision.kind` is `timeout`, `retry` is `find_another` |
| `accept_within_tolerances` | The first asked option whose only reasons to ask were an unsigned offer, an unverified agent or an account rule is accepted, with `accepted_by.kind` `timeout` and the tolerances that allowed it. Anything past a tolerance or a limit, a substitute, another currency or a seller's `requires.buyer_person` still declines |

The account's `no_silent_accept` turns acceptance by silence off for every grant. The ask says which applies.

### Limits

At most 10 asks per brief per day and 10 open asks per person. Past either, the option is refused with `counter_offer_ask_limit`, and the counter-offer is still recorded.

## Buy what was accepted

An acceptance pays for one purchase, and the purchase must be exactly what was accepted. Name the counter-offer on the
purchase with `counter_offer_id`:

| Purchase | What must match |
| --- | --- |
| `POST /v1/authorize/deals` (with `grant_id` or `mandate_token`) | The signed offer's hash is the acceptance's `offer_hash` |
| `POST /v1/mandate/intents` (with `mandate_token`) | The payload hash is the option's `action_hash`, when the option gave one |
| `POST /v1/mandate/assessments` (the token's verify) | The amount is at most the accepted amount plus the option's `tax_and_fees`, in its currency, at its counterparty |
| `POST /v1/authorize/checkout_assessments` | The cart's total as above, each line one that was offered (by sku or name) |

The purchase is under the counter-offer's grant. A token minted with `counter_offer_id` carries no new claim: the
counter-offer stays on its server-side record, so its verify and a store's checkout check it without being told. A
grant presented alone at a store names it with the `Provenance-Counter-Offer` header, which the store passes on as
`counter_offer_id`.

A mismatch is `409 counter_offer_terms_changed` (a verify or a checkout answers `reason: counter_offer_terms_changed`)
with `error.details.changes`, and nothing is spent. The acceptance then says what used it
(`acceptance.consumed_by`: a `deal`, a `verify` or a `checkout`); a second purchase on it is `counter_offer_closed`.

When the person accepted the option, their yes is the purchase's step-up: the deal, the intent's verify or the store
asks nobody again, and an option past a limit (inside its margin) is spent as `approved_counter_offer`.

### When the terms change

If the outside agent changes its offer after the acceptance, the purchase won't match. Post the new terms as a new
counter-offer with `revises`. It is decided against the brief and against the version that was accepted: within
authority only when it's no worse than the accepted one too. Otherwise the person is asked again, and the card says
what changed (a "Changed after you accepted" row with the price or date difference). Each option carries
`changed_after_acceptance`.

### Partial offers, several offers, and stopping

- **Part of the brief.** An option with `coverage: "partial"` and `lines` covers only those lines. Accepting it takes
  them off the brief's `remaining`, and the brief is `partly_fulfilled` (or `fulfilled` when nothing is left). The
  person can choose "Take this part and stop" (`then: "stop"`), which closes the brief as `fulfilled`.
- **Several outside agents.** With `collect_seconds` (on the counter-offer, or the account setting; at most
  two minutes), the first counter-offer that asks waits (`held.kind: collecting`), and the
  others for the brief join it (`held.kind: merged`). When the window ends, one ask goes out with up to five options;
  each joined option keeps `from`. The acceptance lives on the counter-offer that asked. The ask goes out within
  a minute of the window ending even if your agent never reads the counter-offer again; read it with `?wait=` to
  see the change at once.
- **One ask at a time.** Once an ask is out it is fixed. A later counter-offer that asks waits behind it
  (`held.kind: queued`; the card shows "1 more offer"). An acceptance closes the waiting ones as `not_chosen`; an ask
  that ends without one lets the next one ask, again within a minute whether or not anyone reads it.
- **Stopped.** Revoking a grant above the subagent, suspending an agent or pausing the run stops its pending
  counter-offers (`status: stopped`, `stopped_by`): the ask closes, an unused acceptance is void, and
  `authorize.counter_offer.stopped` is sent.

## Authority proofs

The outside agent sees nothing of the person's grant. To show it is dealing with a buyer that can commit, your subagent asks for an offer-scoped proof and hands it over in its own protocol:

[`POST /v1/authorize/authority_proofs`](https://provenanceauth.com/docs/api/counter-offers.md#post-v1-authorize-authority-proofs) (holder proof only: the subagent's `grant_token` and its signature over the request)

```json
{ "counter_offer_id": "cof_01M8FT658VK09ZG0Q2C7B0CGCX", "option": 0, "audience": "https://air.example", "grant_token": "eyJ…" }
```

It answers `authority_proof`, an `authority+jwt` signed with our ES256 key (`/.well-known/jwks.json`), for an option your subagent may accept now or one the person accepted, while the acceptance is unused.

| Claim | Value |
| --- | --- |
| `aud` | The outside agent: its agent id, a key thumbprint or its origin, as the counter-offer recorded it |
| `sub`, `operator` | The presenting agent, and its maker as its public agent card names it |
| `root_sub` | The person's pairwise subject for this audience, never an identity |
| `covers` | `offer_hash`, `amount`, `currency`: this agent may commit to this offer |
| `cnf` | `{ jkt }` when the grant is holder-bound |
| `status_check`, `status_url` | `online`, and the keyless status to check |
| `exp` | At most 10 minutes, never past the offer or the acceptance |

Never in it: limits, budget, the grant id, the purpose, whether a person was asked, any device id. The account setting `disclose: chain` adds the agents' names.

The outside agent checks the signature offline, then the keyless [`GET /v1/public/authority_proofs/{jti}/status`](https://provenanceauth.com/docs/api/counter-offers.md#get-v1-public-authority-proofs-jti-status), which answers active, used, revoked or expired. Checked offline only, a proof fails closed (`status_check_required`).

| Language | Verifier |
| --- | --- |
| TypeScript | `verifyAuthorityProof` in `@provenanceauth/rails/authority` |
| Python | `verify_authority_proof` in `provenanceauth_verify` |
| Go | `VerifyAuthorityProofOnline`, with `FetchAuthorityProofStatus` |

```ts
import { verifyAuthorityProof } from "@provenanceauth/rails/authority";

const r = await verifyAuthorityProof(proof, {
  jwks, // cached from /.well-known/jwks.json
  expect: { audience: "https://air.example", offer_hash, amount: 598, currency: "USD" },
  online: true,
  apiBase: "https://api.provenanceauth.com",
});
if (!r.valid) throw new Error(r.reason); // proof_revoked, proof_used, audience_mismatch, …
```

## Settings

[`PUT /v1/authorize/settings/counter_offers`](https://provenanceauth.com/docs/api/counter-offers.md#put-v1-authorize-settings-counter-offers) (an owner or admin, or an `admin` key):

| Setting | Default | Choices |
| --- | --- | --- |
| `accept_within_default` | none | Tolerances for new top grants that send none |
| `unsigned` | `ask` | `within_tolerances`: a reported option inside every tolerance and limit, from a verified agent, may be accepted alone. `refuse`: never accepted, nobody asked |
| `unverified` | `ask` | `refuse` |
| `ask_on_item_change` | on | Off: a substitute is decided by `substitutes` alone |
| `no_silent_accept` | off | Forbid acceptance by silence on this account's grants |
| `ask_wait_minutes` | `1440` | "Wait for an answer": `15`, `60`, `240` or `1440` minutes. A person's own setting wins |

The person's side is `PUT /v1/personal/controls/proposals` in their own app: `proposal_wait_minutes` ("Time to answer proposals"; null for your default) and `proposal_accept_on_silence` (off by default).

Loosening a setting is written to the account's ledger.

## The record

Each brief, counter-offer, decided option and acceptance is a ledger row. Each carries the chain from the person's grant down (each grant with its agent), the outside agent and its proof, the hashes and the differences.

| Webhook | Sent when |
| --- | --- |
| `authorize.brief.recorded` | A brief is recorded |
| `authorize.brief.closed` | A brief is closed |
| `authorize.counter_offer.received` | A counter-offer is posted and decided |
| `authorize.counter_offer.asked` | An option asks the person |
| `authorize.counter_offer.decided` | The person answered (`decision`, `option`, `note`, `requested_changes`) |
| `authorize.counter_offer.expired` | The ask ran out and silence declined it |
| `authorize.counter_offer.accepted` | An option is accepted: by the subagent within authority, by the person, or by silence the person chose |

An authority proof is a ledger row too (`authority_proof_issued`), named by the token's sha256, never the token.

## The offering side

When you are the business whose agent answers, the same objects work from your side. Your selling or support agent records what the buyer's agent asked for and the offer you'd make by default, then the options it wants to make instead. Each option is decided against your offer rules: inside them it is cleared; past them, the person you name is asked first.

[`PUT /v1/authorize/offer_rules`](https://provenanceauth.com/docs/api/counter-offers.md#put-v1-authorize-offer-rules) sets what any of your agents may concede alone, measured from your standard offer. [`PUT /v1/authorize/offer_rules/{agent_id}`](https://provenanceauth.com/docs/api/counter-offers.md#put-v1-authorize-offer-rules-agent-id) narrows it for one agent; an agent's rules are never looser than yours.

```json
{
  "offer_within": { "discount_pct": 5, "date_earlier_minutes": 360, "date_later_minutes": 360 },
  "approver": { "kind": "member", "id": "usr_revenue_desk" },
  "on_timeout": "decline",
  "enforce_at_deal": true,
  "expected_version": 0
}
```

| Field | What it allows alone |
| --- | --- |
| `discount_pct`, `discount_amount` | A lower total than your standard offer (both must pass when both are set) |
| `substitutes` | `same_category`: another item in the category asked for |
| `quantity_short` | `partial`: fewer than asked |
| `date_earlier_minutes`, `date_later_minutes` | A date this far from the one asked for |
| `terms_better` | Better terms than standard, for example refundable |
| `credit_instead_of_refund_max` | Store credit instead of a refund, up to this amount |

With no rules set, only your standard offer goes out without asking. Widening the rules, letting silence clear an offer, or turning off `enforce_at_deal` needs an owner or admin and is written to your ledger; narrowing doesn't.

Then record the request and the options, with your account's key:

```json
POST /v1/authorize/briefs
{
  "side": "offering",
  "agent_id": "agt_booking_agent",
  "wants": { "items": [{ "name": "Seat LIS-JFK", "sku": "TP209-0905", "quantity": 1 }], "max_total": 612, "currency": "USD" },
  "standard": { "items": [{ "name": "Seat LIS-JFK", "sku": "TP209-0905", "quantity": 1 }], "total": 650, "currency": "USD" },
  "requester": { "name": "Flights" }
}
```

Post the options on that brief to [`POST /v1/authorize/counter_offers`](https://provenanceauth.com/docs/api/counter-offers.md#post-v1-authorize-counter-offers), each as `offer_payload` (the signed-offer payload your agent will sign) or `offer` fields. An option past your rules asks the approver with an ordinary approval. They see one card: "Booking agent wants to send a proposal." (with your agent's name), who it is from and what was asked, then each proposal with its price, what the price was and its date. They choose **Accept proposal**, **Decline** or **Edit proposal**.

Before your agent signs, call [`POST /v1/authorize/counter_offers/{id}/sign_check`](https://provenanceauth.com/docs/api/counter-offers.md#post-v1-authorize-counter-offers-id-sign-check). Sign only the options with `may_sign: true`, exactly as cleared: the `offer_hash` there is the hash of the payload you sign.

With `enforce_at_deal` on, a deal at Provenance on one of your offers that nothing cleared waits for your people, so a concession your agent signed alone past its rules still needs a person. A buyer that never calls us can't be checked this way; for those, `sign_check` before you sign is the control.

### Approving an offer

A yes to an offer past your rules is a signature over that offer. The person you named approves with a passkey, or with the device key in the Provenance app, and what they sign is bound to the offer they picked: `sha256("counter-offer-v1|" + counter_offer_id + "|" + offer_hash)`. A signature for one offer can't approve another.

| Who approves | Where | What signs |
| --- | --- | --- |
| A team member | Console, **Approvals** | A passkey from **Settings → Sign-in & security** |
| An outside approver | The approval link, or their Provenance home | Their passkey |
| An outside approver | The Provenance app | The phone's device key |

An API key can't approve an offer, and neither can a session with nothing signed: both get `approval_biometric_required`. A challenge issued for another offer gets `parameter_invalid` on `biometric_challenge`. **Decline** and **Edit proposal** need no passkey, from a person or a key.

**Edit proposal** sends your agent a price, a note, or both. The approval's `change_form` offers one field per asked proposal: `price` when the ask holds one, `price:{index}` (the counter-offer option's index) when it holds several, each with the proposal's `value` and `currency`. Send it as `requested_changes: [{ "field": "price", "to": 610 }]` on the same respond call. Your agent reads it on the counter-offer's `decision`:

```json
{ "kind": "request_changes", "note": "Keep the 14:10 flight.", "requested_changes": [{ "field": "price", "label": "Price", "from": 598, "to": 610 }] }
```

The price is a request to your agent, not an instruction we carry out: the agent decides whether to propose again, and a new proposal past the rules is a new ask.

Each approval surface reads one challenge per offer from `option_challenges` and sends it back with `option_index`. The Provenance app asks for its challenge with the same `option_index`.

In the console, **Deals → Proposals** lists each proposal with who it went to, what was asked, what your agent proposed, the change and who cleared it. Open one to see its exchange record. The rules are in **Rules → Proposal rules**: the default for every agent and each agent's own.

The buyer's side never sees your rules, your standard offer, the concession or who approved it.

## Under a person's network grant

A person's own agent works under a network grant they approved (`ngr_…`). Record the brief with `network_grant_id` instead of `grant_id`, using your account key:

```json
{ "network_grant_id": "ngr_01M8DASQRKK1W22960KMWJ59Y9", "wants": { "items": [{ "name": "Seat LIS-JFK", "quantity": 1 }], "currency": "USD", "max_total": 600 } }
```

Each option is decided against that grant: its per-order limit, its budget with any helpers' spend, its stores, the person's "always ask above" and its `accept_within`. Your grant request can propose `accept_within` in `proposed`; the person can approve it or set less, never more, and widening it later takes their passkey.

When an option asks, only the person who approved the grant decides. It reaches their phone as an outside agent proposal and waits on their proposal card; your console doesn't show it and nobody on your team can answer it. Accepting needs their passkey. Your agent reads the answer on the counter-offer, as above.

Buy what was accepted with [`POST /v1/mandate/network_orders`](https://provenanceauth.com/docs/api/network.md#post-v1-mandate-network-orders) and `counter_offer_id`. The order has to match the acceptance, and uses it once. When the person accepted it, their yes is that order's approval (`approved_counter_offer: true`), so it can pass the grant's own limits, but never what a grant above it has left.

### Helpers

When the person lets your agent hand work to helpers, a helper's plan entry can set its own `limits.accept_within`, never looser than the grant's. Record a helper's brief with its own `network_grant_id`. Its options are decided against its tolerance and every grant above it, the person's card names the helper, and stopping the helper's branch stops its open proposals.

A person's own assistant does the same over MCP with the opt-in `exchanges` tools:

| Tool | What it does |
| --- | --- |
| `start_exchange` | Records the ask under the person's permission |
| `record_proposals` | Records proposals made outside Provenance |
| `list_proposals` | Reads each proposal and its state, waiting up to 25 seconds |
| `accept_proposal` | Accepts one inside the permission; otherwise returns `awaiting_approval` with the link to show the person |
| `decline_proposal` | Declines one |

## The exchange record

Every counter-offer exchange also writes one shared record both sides can read: [`GET /v1/authorize/exchanges/{id}`](https://provenanceauth.com/docs/api/exchanges.md#get-v1-authorize-exchanges-id) (the read of one counter-offer names it as `exchange_id`). It is an append-only chain of entries, from the brief to the close: the request, each offer as signed, each clearance and approval, the decision, the acceptance and the deal. We sign its head after every entry; `verify` recomputes the chain.

Each side reads its own private parts (your limits and reasons, or your standard offer and concessions) and only a salted commitment to the other side's, so either side can check the whole chain without reading the other's. Send `share: true` on a brief to put what you asked for (never your limits or grant) into the record. When both sides are Provenance customers and record the same signed offer, their two halves join into one exchange.

The record also says who asked: a `chain` entry when the exchange opens (how many helpers, and whether it was a company grant or a person's network grant; the agents' names only when you set `disclose: chain`), and an `authority_proof` entry for each authority proof your agent was given (what it covers, who it was for, and how the other agent was identified).

To keep a copy for a dispute or an audit, export it with [`POST /v1/authorize/exchanges/{id}/export`](https://provenanceauth.com/docs/api/exchanges.md#post-v1-authorize-exchanges-id-export). Send `reveal: ["requester"]` (or `"responder"`, whichever side you are) to include your own private parts with their salts; the other side's stay hidden. The bundle carries `verify-exchange.mjs`, a script with no dependencies: save it next to the bundle and run it with Node.

```bash
node verify-exchange.mjs bundle.json
```

It checks every entry, the signed head against our published keys at `/.well-known/jwks.json`, and each revealed part. A person can read an exchange under their own grant, in plain words, at `GET /v1/personal/exchanges/{id}`.

| Webhook | Sent when |
| --- | --- |
| `authorize.exchange.opened` | An exchange opened with your account as a party |
| `authorize.exchange.entry_added` | An entry was added (its `kind` and `seq` only) |
| `authorize.exchange.closed` | The exchange closed (`outcome`) |

## Pricing

Briefs, counter-offers, decisions, acceptances, authority proofs and their status, offer rules, `sign_check` and the exchange record are free on every plan. An ask to a person, or to your approver on the offering side, is one confirmation, billed when sent, as any approval. The purchase that follows is billed as it is today.

## Errors you might see

| Code | Why | Fix |
| --- | --- | --- |
| `delegation_exceeds_parent` (400) | A child's `accept_within` is looser than its parent's | Lower the field in `param` |
| `brief_exceeds_grant` (400) | The brief asks for more than the grant allows | Ask for less, or ask the person to raise the grant |
| `asked_by_not_a_person` (400) | `asked_by` names an agent | Name the grant's person, a member or an approver link |
| `offer_signature_invalid` (400) | A signed offer didn't verify against the seller's registered keys or its origin's key directory, or names its own key | Send it exactly as signed, with `counterparty.origin`, or as a reported `offer` |
| `authority_proof_not_allowed` (409) | The option isn't within authority and no person accepted it, or its acceptance was used | Accept it first, or wait for the person |
| `brief_closed` (409) | The brief was fulfilled or abandoned | Record a new brief |
| `counter_offer_not_accepted` (409) | The option asks or was refused | Wait for the person, or find another offer |
| `counter_offer_no_longer_allowed` (409) | Checked again at acceptance, the chain refuses it now | Post the offer again, or find another |
| `counter_offer_closed` (409) | Already accepted, withdrawn or expired | Read the counter-offer |
| `approval_biometric_required` (400) | The person accepted without the passkey the ask needs | Get a challenge, then answer with the passkey |

## See also

- [Sub-agent limits](https://provenanceauth.com/docs/mandate/guides/subagent-limits.md)
- [Buy from agents](https://provenanceauth.com/docs/authorize/guides/buy-from-agents.md), for signed offers
- [Policies](https://provenanceauth.com/docs/concepts/policies.md)

## Not yet

The protocol helpers, the asking side's console and app screens (including the person's proposal card on the web), and the exchange record's receipts and outside timestamping arrive in later releases.
