Skip to main content
An agent proposes an action and the facts it rests on: “refund ₹50,000 for order 123, the refund is eligible”. The fact that the refund is eligible is the agent’s claim, not a business fact. Parmana answers two questions separately, and an action runs only when both hold:
  • Authority. May this kind of action be decided here at all?
  • Business validity. Is this exact action valid for this exact business object, according to the system that owns the facts?
The design and its phases are in RFC-0023; the claims are CLAIMS.md 2.53 to 2.55. To connect a system, see Connect a business signal source; to give an agent authority, see Grant an agent authority.

The flow

  1. The agent proposes an action and facts.
  2. The facts must describe the action being executed (boundSignals).
  3. Authority. The policy in force must be the approved, current one, and the capability must be decided under its bound policy. At the API, the caller’s key must allow the capability. Under a policy with requireAuthorityGrant, the caller must also hold a grant in force for the action, and the request must be within its limits. If authority is not established the request is refused, and no business system is asked.
  4. Business validation. For each fact the policy declares a source for, Parmana asks that source about the business object it reads from the request, never using the agent’s value. If the agent proposed a value, it must equal the source’s.
  5. The policy is evaluated on the values the sources established.
  6. The signed human approval is checked (Human approval), then the action is authorized and released, and a signed record is written.

Naming the source of a fact

  • source: the business system to ask, as registered through maker checker. Any system that answers the protocol can be one: an ERP, an order system, a CRM, a ledger.
  • claim: what to ask it.
  • subject: where the business object is in the request, target or a parameters path.
  • maxAgeSeconds: how old the answer may be, from 1 to 86400, default 300.
A policy with a malformed declaration fails to load. So does a policy where the same fact is also bound to the request, approval backed, or given an unbound reason, or where no rule reads it. GET /policies/in-effect lists the declarations under signals.sourced, so an agent knows it need not send them.

Trusted Signal

Each answer is recorded as a Trusted Signal, bound to the business object and the action:
The digest is the SHA-256 of the signal without its proof, and the decision that carries it is signed. That proves what Parmana observed. When the source is registered with a key, sourceProof is the source’s own Ed25519 signature over its answer, which Parmana verified before trusting it (sourceProofVerified: true). That proves the source said it. A source registered with a key cannot give an unsigned answer: it is refused as SOURCE_UNAVAILABLE. A source registered without one has no sourceProof; its answer is trusted on the pinned HTTPS connection alone.

Statuses

  • AUTHORIZED means the action may be decided: the action type, and, under a policy that requires a grant, this request within the caller’s grant. It does not mean this action is valid or was executed.
  • NOT_AUTHORIZED: the capability is decided under the wrong policy, or, under a policy that requires a grant, the caller holds none in force or the request is outside its limits.
  • AUTHORITY_EXPIRED: the caller’s grant has passed its validUntil.
  • AUTHORITY_UNCLEAR: the policy in force could not be established as the approved one, or the caller’s grants could not be read.
  • INVALID: the agent proposed a value the source contradicts, or proposed facts that do not describe the action.
  • MISSING_DATA: the request names no business object, the source has no such fact, or it answered with the wrong type.
  • CONFLICTING_DATA: the source holds contradictory facts.
  • SOURCE_UNAVAILABLE: the source is not registered or was revoked, failed, took longer than 10 seconds (or its registered timeout), or gave an answer Parmana cannot trust: incomplete, not echoing the query, or not signed by its registered key.
  • VALIDATION_EXPIRED: the answer is older than maxAgeSeconds, or past the source’s own validUntil.
  • NOT_EVALUATED: validation did not run, because authority was not established or the policy declares no sources. It is never VALID.
Every status other than VALID refuses the request, with one exception: NOT_EVALUATED under a policy that declares no sources. Such a policy decides as it did before, and still needs a signed approval to approve. No status is ever turned into another.

In the record

Every decision carries assessment, inside the signed Execution Trust Record or Refusal Record:
A refused decision always includes execution as NOT_EXECUTED. An approved decision’s execution is in the Trust Record’s executions. The decision’s signals keep what the agent proposed, so a reader sees the proposal and the source’s answer side by side. Changing any status fails verification. Records made before this change have no assessment and still verify.

Limits today

  • Not deployed yet. Registering sources and asking them is in the repository and tested, but no real business system has been connected. No shipped policy declares a source.
  • Checked once. An answer is checked when the request is decided, not again when the action is released (phase 4).
  • Grants are opt in, per policy. A policy without requireAuthorityGrant keeps today’s authority checks. No shipped policy requires a grant yet. Grant limits are per request, not per day.
  • Refund eligibility has no source yet. refundEligible and fraudCheckPassed in customer-refund are still declared by the caller and can only refuse (see Limitations).