OJCP Mandates

Living Document,

This version:
0.3
Version History:
https://github.com/ojcp-org/ojcp/commits/main
Issue Tracking:
GitHub
Editor:
(Recruitics)

Abstract

OJCP Mandates is an optional companion specification to the Open Job Context Protocol. It defines user mandates: credentials by which a person authorizes an agent’s signing key to act for them, and how providers verify and consume them.

1. Introduction

This document extends OJCP, which defines the tools, the Agent Declaration that carries a mandate, and agent identity. Implementing it is OPTIONAL: it applies only when a provider requires a user mandate.

2. User Mandates

A platform signature (OJCP: Verification) proves which software made a request. It does not prove that a person authorized that software to take a particular action. This section defines the minimum interoperable security profile for AgentDeclaration.user_mandate: a credential that binds a user’s authorization to one OJCP action and to the agent signing key that may exercise it.

User mandates are OPTIONAL. This section applies only when a provider requires a user mandate for a request. A provider that requires none, and an agent that sends none, behave exactly as elsewhere in this specification. This section fixes the security boundary every user mandate MUST satisfy; the credential’s media type and exact claim profile, a registry of action statement types, and manifest signalling are not defined by this version, and any credential that meets this profile conforms.

2.1. Definitions

User mandate

A credential, carried in AgentDeclaration.user_mandate, by which a user authorizes one agent signing key to perform one OJCP action under the constraints it discloses.

Action statement

The canonical ojcp_action object describing the authorized action (§ 2.5 Action Statement).

Mandate-admission policy

A provider’s policy that determines which mandate issuers or user-rooted keys are admissible for an action (§ 2.3 Mandate Admission).

2.2. Three Claims, Three Decisions

Providers MUST treat the following claims independently:

Claim Typical evidence What it proves What it does not prove
Platform / agent identity [RFC9421] signature and Signature-Agent (OJCP: Agent Identity) The verified agent platform made this request. A person authorized the request.
Candidate identity Verification Proof (OJCP Candidate Verification) or provider account flow A verifier or provider made the stated identity claim. That an agent may submit a particular application.
User authorization Valid user_mandate admitted by the provider’s mandate-admission policy A user-authorized key authorized this action under the disclosed constraints. The candidate’s civil identity, unless a separate identity flow establishes it.

A provider MUST NOT promote a successful result in one row to a successful result in another. A Verification Proof is not a submission mandate, and a platform-signed acting_on_behalf_of value is not delegated user authority.

2.3. Mandate Admission

Cryptographic validity is necessary but not sufficient. A provider that requires a user mandate MUST have a mandate-admission policy that determines which mandate issuers or user-rooted keys are admissible for the relevant action. The policy sits outside the credential: an issuer cannot make itself authorized merely by issuing a valid credential, and a credential signed only by the agent platform’s key is never user authority.

Providers MAY admit a user-controlled key, a provider account-bound credential, or an independent identity-provider credential. A provider that must establish that the authorizing user is the named applicant MUST perform that binding through its own account, verified email, or OJCP Candidate Verification process. A newly generated public key alone proves control of the key, not a person’s legal identity.

2.4. Mandate Profile

user_mandate SHOULD be an SD-JWT Verifiable Credential ([SD-JWT-VC], [RFC9901]) in compact serialization, presented with a key-binding proof by the agent’s signing key. A mandate accepted for an OJCP action MUST convey, directly or by selectively-disclosed claims:

The credential MUST NOT carry acting_on_behalf_of or other direct user identifiers unless the provider’s matched action actually needs them. A provider MUST NOT require disclosure of a stable user identifier merely to validate delegation.

The decoded issuer-signed claims of a single-use mandate for a submit_application call. The mandate carries the action statement by digest; it has no status claim because it is single-use and valid for ten minutes. Values are illustrative.
{
  "iss": "did:jwk:eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6Ik...",
  "vct": "urn:example:ojcp-user-mandate",
  "aud": "https://careers.acme.com",
  "iat": 1773844800,
  "nbf": 1773844800,
  "exp": 1773845400,
  "jti": "mnd_RGBLQJ-l7qj9DiNH",
  "cnf": { "jkt": "tKwHslziExQ7dQgDX2HX8q9EuvAYmS_A3SKfjNHpdX8" },
  "ojcp_version": "0.1",
  "ojcp_action": "sha256:f-iFWllBWhQTjicNqPPPyN25DsN5rkUQThmL2e2VahM"
}

2.5. Action Statement

A mandate binds a stable representation of the action, not an HTTP or JSON-RPC payload. The action statement is a JSON object, ojcp_action. A mandate conveys it either as the object itself or, when embedded by digest, as the string sha256: followed by the base64url encoding (without padding) of the SHA-256 hash of its JCS serialization ([RFC8785]).

Field Requirement Value
ojcp_version OPTIONAL The OJCP version, when the mandate carries its version identifier here.
resource_server REQUIRED The origin of the OJCP endpoint that consumes the mandate; equal to aud.
employer REQUIRED when the resource server serves more than one employer The employer context of the job (§ 2.5.1 Multi-Tenant Resource Servers).
tool REQUIRED The OJCP tool name, e.g. submit_application.
job_id REQUIRED The job’s ojcp_id.
application_id REQUIRED for submit_application The application_id returned by begin_application.
agent_id REQUIRED The verified agent_id (OJCP: Verification).
agent_key_thumbprint REQUIRED The [RFC7638] thumbprint of the agent signing key; equal to cnf.jkt.
candidate_data_digest REQUIRED for submit_application A digest of the semantically material candidate data, defined below.
mandate_nonce REQUIRED for submit_application The single-use nonce the provider returned with the application session (§ 2.5.2 Mandate Nonce).

candidate_data_digest covers the semantically material candidate data sent with the request, excluding transport metadata and the mandate itself. It prevents substituting a different resume reference, screening answer, contact address, or profile after consent. Its value is sha256: followed by the base64url encoding (without padding) of the SHA-256 hash of the JCS serialization of an object whose members are the request’s application_data and candidate_context, exactly as sent; a member absent from the request is omitted.

Providers and agents MUST ignore action-statement fields they do not recognize. A provider MUST reject a mandate when a field required for the requested tool is absent or does not match the action statement the provider independently reconstructs.

The action statement whose digest the mandate above carries:
{
  "ojcp_version": "0.1",
  "resource_server": "https://careers.acme.com",
  "employer": { "ojcp_employer_id": "acme-corp" },
  "tool": "submit_application",
  "job_id": "careers.acme.com:analyst-2026-001",
  "application_id": "app_abc123",
  "agent_id": "ai.northstar.assistant",
  "agent_key_thumbprint": "tKwHslziExQ7dQgDX2HX8q9EuvAYmS_A3SKfjNHpdX8",
  "candidate_data_digest": "sha256:l8Kt_6K5fFTzhjg_iIYDcXjskULviQZ5h7QClTNOeqo",
  "mandate_nonce": "mn_xBVlesPAiuvWDyyxUDEDzDTG"
}

2.5.1. Multi-Tenant Resource Servers

An ATS that hosts application flows for many employers separates two security properties: the recipient of the mandate, and the employer the application is made to.

{
  "resource_server": "https://apply.example-ats.com",
  "employer": { "ojcp_employer_id": "acme" },
  "tool": "submit_application",
  "job_id": "apply.example-ats.com:1234",
  "application_id": "app_7f3a...",
  "agent_id": "ai.example.agent",
  "agent_key_thumbprint": "base64url-rfc7638-thumbprint",
  "candidate_data_digest": "sha256:base64url(JCS(candidate fields and answers))",
  "mandate_nonce": "provider-issued-single-use-nonce"
}

The provider MUST reconstruct both bindings from its own session state, and MUST reject a mandate that matches its endpoint but names a different employer, tenant, job, or official-job anchor. A mandate for one employer therefore cannot be reused for another employer on the same ATS.

2.5.2. Mandate Nonce

For begin_application, a provider MAY accept a mandate without application_id. When it does, the action statement MUST still bind the resource server, the employer when multi-tenant, the job, the agent signing key, the requested consent_scope, and any candidate data to be prefetched (by candidate_data_digest over the request’s candidate_context).

Before a mandate-bound submit_application, the provider MUST return an unpredictable, single-use mandate_nonce with the application session in the begin_application response. The agent binds it into the action statement for submit_application. The nonce keeps a low-entropy candidate-data digest from serving alone as a reusable or dictionary-attackable authorization handle.

2.6. Verification

A mandate binds to the agent signing key of a verified request, so a provider MUST NOT evaluate a user_mandate on a request whose agent identity has not been verified per OJCP: Verification. Such a request fails with the applicable agent-signature error code.

For a context that requires a user mandate, a provider MUST, in order:

  1. Verify the credential signature and the holder proof required by its selected SD-JWT VC profile.

  2. Apply its mandate-admission policy (§ 2.3 Mandate Admission); cryptographic validity alone is not sufficient.

  3. Verify aud, the time bounds (nbf when present, and exp), the OJCP version, and that cnf.jkt equals the thumbprint of the currently verified agent signing key.

  4. Reconstruct the action statement from the received request and the provider’s session state, then verify every field required for the requested tool, or the action digest.

  5. Enforce the mandate’s revocation or status rule before executing the action. A mandate with no status mechanism is acceptable only within the provider’s maximum lifetime for single-use mandates.

  6. Reject a mandate whose jti or mandate_nonce has already been consumed. For a successful terminal submission, atomically record both as consumed. A retry after an indeterminate network failure MAY use the provider’s ordinary idempotency mechanism, but MUST NOT create a second application.

  7. Bind the acceptance decision to the application session, and invalidate it when the user revokes consent or the mandate expires.

Failure at any step MUST fail closed, and MUST NOT fall back to treating acting_on_behalf_of, a platform signature, or a Verification Proof as authorization.

2.6.1. Key Binding and Rotation

A mandate bound through cnf.jkt authorizes that exact agent signing key, not every key the agent platform may publish later. An agent’s key directory (OJCP: Key Discovery) MUST retain the mandated key until the mandate expires; key rotation does not transfer a mandate to a new key. If the old key cannot remain available for verification, the user mandate MUST be reissued for the new key. This keeps the mandate’s lifetime within the key-retention and rotation window, and avoids silently widening the user’s authorization.

2.7. Signalling and Errors

A provider that requires a user mandate MUST document the requirement in its tool descriptions. This version defines no Job Manifest field for mandate requirements.

When a context requires a user mandate and none is presented, or the presented mandate fails any step of § 2.6 Verification, the provider MUST return the standard error envelope (OJCP: Error Responses) with error_code user_mandate_required. One code covers both cases, so the response does not reveal which check failed.

The experimental USER_MANDATE_FIXTURES in the OJCP conformance suite exercise these decisions — a missing or unadmitted mandate, a platform credential or Verification Proof presented as user authority, agent-key, audience, employer, job and candidate-data mismatches, expiry, revocation, and replay. They distinguish failure classes internally to test each check; those classes are not wire error codes.

2.8. Security and Privacy Considerations

Index

Terms defined by this specification

Terms defined by reference

References

Normative References

[RFC8785]
A. Rundgren; B. Jordan; S. Erdtman. JSON Canonicalization Scheme (JCS). June 2020. Informational. URL: https://www.rfc-editor.org/info/rfc8785/

Non-Normative References

[RFC7638]
M. Jones; N. Sakimura. JSON Web Key (JWK) Thumbprint. September 2015. Proposed Standard. URL: https://www.rfc-editor.org/info/rfc7638/
[RFC7800]
M. Jones; J. Bradley; H. Tschofenig. Proof-of-Possession Key Semantics for JSON Web Tokens (JWTs). April 2016. Proposed Standard. URL: https://www.rfc-editor.org/info/rfc7800/
[RFC9421]
A. Backman, Ed.; J. Richer, Ed.; M. Sporny. HTTP Message Signatures. February 2024. Proposed Standard. URL: https://www.rfc-editor.org/info/rfc9421/
[RFC9449]
D. Fett; et al. OAuth 2.0 Demonstrating Proof of Possession (DPoP). September 2023. Proposed Standard. URL: https://www.rfc-editor.org/info/rfc9449/
[RFC9901]
D. Fett; K. Yasuda; B. Campbell. Selective Disclosure for JSON Web Tokens. November 2025. Proposed Standard. URL: https://www.rfc-editor.org/info/rfc9901/
[SD-JWT-VC]
SD-JWT-based Verifiable Digital Credentials (SD-JWT VC). Internet-Draft. URL: https://datatracker.ietf.org/doc/draft-ietf-oauth-sd-jwt-vc/