# PIP-0025 · Profile of the routed rail path-flash-1.0

What an operator of the routed rail owes the payer's member and the payee's member. The capability form, a signed quote between operators, rail references, a delivery attestation carried in the receipt, and the obligations on assessment, return, delay and disputes. The rail stays reserved until this PIP is implemented.

## Why

[PIP-0020](/pips/0020) lists `path-flash-1.0` on every network and reserves it: a capability naming it is refused, and its profile is left to a later PIP. This PIP is that profile.

A payer's member on one network pays a payee whose member is on another, through an operator that offers the rail on the payee's network. Both members need the same terms from that operator, whoever it is: a firm price before the payment, a signed statement after delivery, and rules for a return, a delay and a dispute. Once implemented, this PIP moves the rail from `reserved` to `profiled`.

PATH admits no members and holds no balances ([PIP-0004](/pips/0004)). The value moves on rails.

## Terms

| Term | Meaning |
|---|---|
| **Routing operator** | The operator that offers `path-flash-1.0` on the payee's network and delivers on the native rail |
| **Payer's member** | The member that asks the routing operator to deliver a payment |
| **Payee's member** | The member that holds the payee's address and issues its instructions and receipts |
| **Native rail** | The rail native to the payee's network, named by the payee in `accepts` |

## Capability form

- The payee names its native rail in `accepts`. A standing intent, a request or an instruction never names `path-flash-1.0`.
- The payer's member names `path-flash-1.0` only toward a routing operator, when it asks that operator to deliver. The native capability travels in the quote's `via`.
- A capability naming the rail is `{ "rail": "path-flash-1.0", "asset_type", "asset_code" }` and states the asset the payer's member sends to the routing operator.
- The rail's beneficiary format is `path_address`. The routing operator obtains the native destination from the payee's member by a payment instruction on the native rail ([PIP-0009](/pips/0009)). The native destination is not in the quote, the attestation, or anything the payer's member receives.

## The route quote

The routing operator answers a quote request with a signed `path.route_quote`. It is firm until `expires_at`.

```json
{
  "type": "path.route_quote",
  "reference": "rq4m8x2kd7p1zt6v9b3n5c",
  "issuer": "example-router",
  "requester": "member-b",
  "payee": { "network": "pix", "address": "path:4a91c2f7e8d3" },
  "via": { "rail": "pix", "asset_type": "fiat", "asset_code": "BRL" },
  "sent": { "value": "1002", "asset_type": "fiat", "asset_code": "EUR" },
  "received": { "value": "5980", "asset_type": "fiat", "asset_code": "BRL" },
  "fx": { "rate": "5.98", "source": "operator_quote" },
  "fees": [
    { "kind": "fx", "amount": { "value": "5", "asset_type": "fiat", "asset_code": "EUR" }, "paid_by": "payer" },
    { "kind": "operator", "amount": { "value": "2", "asset_type": "fiat", "asset_code": "EUR" }, "paid_by": "payer" }
  ],
  "expires_at": "2026-11-20T10:05:00Z",
  "eta_seconds": 60,
  "nonce": "b0b5c4e2a9d14f6e",
  "grammar": 2,
  "protocol_version": "0.2.0",
  "signed_at": "2026-11-20T10:00:00Z",
  "kid": "example-router-2026-01",
  "signature": "…"
}
```

| Field | Rule |
|---|---|
| `issuer` | The routing operator. Its key is in its own `/.well-known/path-keys` |
| `requester` | The payer's member the quote is for. A quote is not transferable |
| `payee` | The payee's network and PATH address |
| `via` | The native capability, copied unchanged from the `accepts` in force for the payee |
| `sent` | What the payer's member sends to the routing operator, fees paid by the payer included |
| `received` | What the payee is credited on the native rail |
| `fx` | Required when `sent` and `received` differ in asset ([PIP-0011](/pips/0011)) |
| `fees` | Every fee, as Fee objects ([PIP-0006](/pips/0006)). The exchange margin is a fee of `kind: "fx"` |
| `expires_at` | RFC 3339. After it, the quote is not accepted |
| `eta_seconds` | Expected time from acceptance to the credit on the native rail |
| `nonce` | Echoed from the quote request |

The quote completes the gateway answer of the finder ([Finder](/docs/finder)): a routing operator that answers the resolver for a destination it reaches and does not hold answers with `standing: "gateway"` and `commitment: null`, and its firm terms for one payment are the `path.route_quote`.

## Rail references

`rail_reference_types` of `path-flash-1.0` is `route_reference`, plus the types of the native rail. A receipt whose `via` names `path-flash-1.0` carries the `route_reference` the routing operator assigned to the delivery, and from `settled` on, at least one reference of the native rail.

## Delivery attestation

For each delivery, the routing operator signs an attestation and hands it to the payer's member and the payee's member. A receipt about the payment carries it in `attestations[]` ([PIP-0011](/pips/0011)).

```json
{
  "type": "route_delivery",
  "issuer": "example-router",
  "quote": "rq4m8x2kd7p1zt6v9b3n5c",
  "instruction": "k3v9n2x8p4q7r1s6t0w5yz",
  "via": { "rail": "pix", "asset_type": "fiat", "asset_code": "BRL" },
  "rail_references": [
    { "type": "route_reference", "value": "rd7p1zt6v9b3" },
    { "type": "scheme_reference", "value": "pix-7f3k2m9q" }
  ],
  "route": {
    "legs": [
      {
        "via": { "rail": "pix", "asset_type": "fiat", "asset_code": "BRL" },
        "provider": "example-router",
        "asset_in": { "asset_type": "fiat", "asset_code": "EUR" },
        "asset_out": { "asset_type": "fiat", "asset_code": "BRL" },
        "eta_seconds": 60
      }
    ],
    "providers": ["example-router"],
    "eta_seconds": 60
  },
  "grammar": 2,
  "protocol_version": "0.2.0",
  "signed_at": "2026-11-20T10:01:00Z",
  "kid": "example-router-2026-01",
  "signature": "…"
}
```

| Field | Rule |
|---|---|
| `issuer` | The routing operator |
| `quote` | The reference of the `path.route_quote` delivered |
| `instruction` | The reference of the payee's member's instruction the delivery used |
| `via` | The native capability delivered on |
| `rail_references` | `route_reference`, and the references of the native rail |
| `route` | The shape of [PIP-0005](/pips/0005) |

- The routing operator is the only party that may fill `route`, and only in its own `route_delivery` attestation. This names the party [PIP-0005](/pips/0005) waits for.
- The `path.receipt` itself keeps `route: null`, whoever issues it.
- The attestation verifies against the routing operator's own keys. A reader never takes those keys from the receipt's issuer.

## Obligations of the routing operator

**Assessment before delivery.** Before delivering, the routing operator holds a valid assessment of the payee from the payee's network ([PIP-0021](/pips/0021)) and applies the treatment of its level. An assessment is valid when its signature verifies against the network's keys, its `nonce` is the one the routing operator sent, and `expires_at` has not passed. Without a valid assessment (absent, unverifiable or expired), the route is not delivered.

**Delay.** An acceptance received before `expires_at` is delivered on the quoted terms. Past `eta_seconds`, the routing operator states the delivery's status to the payer's member on request.

**Return.** When the native rail rejects or returns the payment, or the route is not delivered, the routing operator returns to the payer's member what it received, in the asset it received. A fee on a return is charged only when the quote disclosed it in `fees`.

**Disputes.** A dispute about a delivery is raised by the payer's member with the routing operator, citing the quote and the attestation. A dispute about the credit on the native rail is answered by the payee's member. The rulebook of the payee's network applies to its members (`PATH-NETWORK.Disputes`).

**Failure.** A route that is not delivered gives the payer's member a reason from the closed registry of [PIP-0011](/pips/0011): `compliance_blocked` when the assessment or its absence blocks the delivery, `rail_rejected` when the native rail rejects, `expired` when the quote expired.

## Conformance

`PATH-RAIL.Routed` is a network profile: the routing operator is admitted to the payee's network ([Conformance](/docs/conformance)).

| Profile | Requires |
|---|---|
| `PATH-RAIL.Routed` | Signed `path.route_quote` honoured until `expires_at`; a `route_delivery` attestation for each delivery; the assessment before delivery and the treatment without a valid one; the return rule. Not claimed by any implementation until this PIP is implemented |

## Interface

| Call | Change |
|---|---|
| `GET /.well-known/path-configuration` of the routing operator | `endpoints.routes`; `gateway` lists `path-flash-1.0` with the networks it delivers on; `conformance` lists `PATH-RAIL.Routed` |
| `POST <routes>/quotes` | Member credential. `{ payee, via, sent, nonce }`, or `received` in place of `sent`. Answers a `path.route_quote` |
| `POST <routes>/deliveries` | Member credential. `{ quote }`. Accepts a quote; answers the delivery's `route_reference` and status |
| `GET <routes>/deliveries/{route_reference}` | The requester only. The status, and the `route_delivery` attestation once delivered |
| `GET /registers/rails` | `path-flash-1.0`: `status: "profiled"`, `beneficiary_formats: ["path_address"]`, `rail_reference_types: ["route_reference"]`, `profile: "PIP-0025"` |

## Until this PIP is implemented

The register keeps `path-flash-1.0` `reserved`. A capability naming it is refused with `400` ([PIP-0020](/pips/0020)). No receipt carries a `route_delivery` attestation, and `route` stays `null` everywhere ([PIP-0005](/pips/0005)).

## Compatibility

Additive. No signed object of an earlier PIP changes shape. A reader of `attestations[]` that does not know `route_delivery` keeps it as a signed envelope.