transition_candidacy

Move a candidacy through the funnel

All MCP toolsWrite

Advance one candidacy along the employer edges — screening_passed / interviewing / offered / accepted / declined. Passes while the job is published; an unpublished job refuses (job_not_published). A record on the agreed terms names no job and passes. withdrawn is the candidate's verb and converted has its own tool, convert_candidacy — neither is accepted as input. Backward moves and moves out of a terminal state refuse naming the invalid edge. A document-stage decision (applied → screening_passed / declined) on a job whose document screening has required aspects refuses required_unanswered — that decision is recorded on the web decision surface, not from here. Reaching offered while the candidate's name is still closed to your organization files the candidate a name share request (their own decision); accepted refuses identity_closed with nothing written until the candidate has disclosed their name — never retry it on their behalf.

Input schema

{
  "type": "object",
  "properties": {
    "candidacyId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      "description": "The candidacy to move (candidacies.id)."
    },
    "to": {
      "type": "string",
      "enum": [
        "screening_passed",
        "interviewing",
        "offered",
        "accepted",
        "declined"
      ],
      "description": "The target state — employer edges only: forward moves plus declined. withdrawn/converted are not reachable from this surface."
    }
  },
  "required": [
    "candidacyId",
    "to"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Output schema

{
  "type": "object",
  "properties": {
    "candidacy": {
      "type": "object",
      "properties": {
        "candidacyId": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
          "description": "The selection record (candidacies.id)."
        },
        "jobId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            {
              "type": "null"
            }
          ],
          "description": "The job this selection record is on (jobs.id) when the seat is a job's; null on the agreed terms."
        },
        "agreementId": {
          "anyOf": [
            {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            {
              "type": "null"
            }
          ],
          "description": "The agreed terms this selection record is on (agreements.id) when the seat is the agreement's; null on a job seat — exactly one of jobId / agreementId is set (ADR-0229)."
        },
        "origin": {
          "type": "string",
          "enum": [
            "external"
          ],
          "description": "Candidacy origin: \"external\" (the selection record opened from outside the organization). The state machine never conditions on it."
        },
        "state": {
          "type": "string",
          "enum": [
            "applied",
            "screening_passed",
            "interviewing",
            "offered",
            "accepted",
            "converted",
            "withdrawn",
            "declined"
          ],
          "description": "Candidacy state: the active pipeline \"applied\" → \"screening_passed\" → \"interviewing\" → \"offered\" → \"accepted\" → \"converted\", plus the terminal negatives \"withdrawn\" (seeker-initiated) and \"declined\" (hirer-initiated)."
        },
        "profileVersion": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 1,
              "maximum": 9007199254740991
            },
            {
              "type": "null"
            }
          ],
          "description": "The profile_versions.version pinned when the record opened (int >= 1); null when the person had no profile version yet."
        },
        "appliedAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
          "description": "When the selection record opened (applied), ISO 8601 datetime (UTC)."
        },
        "stateChangedAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
          "description": "When the current state was entered, ISO 8601 datetime (UTC)."
        }
      },
      "required": [
        "candidacyId",
        "jobId",
        "agreementId",
        "origin",
        "state",
        "profileVersion",
        "appliedAt",
        "stateChangedAt"
      ],
      "additionalProperties": false,
      "description": "One selection record as a write result (withdraw): the candidacy row's state and its seat — a job or the agreed terms — no job join."
    },
    "transition": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "enum": [
            "applied",
            "screening_passed",
            "interviewing",
            "offered",
            "accepted",
            "converted",
            "withdrawn",
            "declined"
          ],
          "description": "Candidacy state: the active pipeline \"applied\" → \"screening_passed\" → \"interviewing\" → \"offered\" → \"accepted\" → \"converted\", plus the terminal negatives \"withdrawn\" (seeker-initiated) and \"declined\" (hirer-initiated)."
        },
        "to": {
          "type": "string",
          "enum": [
            "applied",
            "screening_passed",
            "interviewing",
            "offered",
            "accepted",
            "converted",
            "withdrawn",
            "declined"
          ],
          "description": "Candidacy state: the active pipeline \"applied\" → \"screening_passed\" → \"interviewing\" → \"offered\" → \"accepted\" → \"converted\", plus the terminal negatives \"withdrawn\" (seeker-initiated) and \"declined\" (hirer-initiated)."
        },
        "occurredAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
          "description": "When the transition happened, ISO 8601 datetime (UTC)."
        },
        "actorToken": {
          "description": "Opaque subject_token of the actor who drove the transition, if any.",
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        }
      },
      "required": [
        "from",
        "to",
        "occurredAt"
      ],
      "additionalProperties": false,
      "description": "The appended history row, with the credential's subject_token as actor."
    },
    "outcomeRecorded": {
      "type": "boolean",
      "description": "True iff the transition emitted a match_outcomes capture row (declined and accepted do; forward moves do not)."
    }
  },
  "required": [
    "candidacy",
    "transition",
    "outcomeRecorded"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

On this page