goateddev

Centrex

Safe writes: plan, approve, apply

Letting an AI assistant change a real Genesys Cloud™ org is safe only if nothing is written that a person has not seen and approved. This is how Centrex keeps writes in Genesys Cloud safe: every write is a plan you see and approve, and Centrex re-checks it before writing.

From question to change, in four steps

  1. Reads go through execute only

    The assistant looks things up with search and describe, and reads your org with execute. execute runs one read operation and refuses every write, whatever the assistant asks.

  2. Every write is a plan you see

    plan writes nothing. It reads the current resource and shows what would change: for an update, each field before and after, including the fields a full replace would remove; for a create, the validated payload; for a delete, the whole resource. It lists the permissions the operation needs and gives the plan an id.

  3. You approve it

    The approval is your assistant's permission prompt on apply. You read the plan, then allow or refuse that one call.

  4. apply re-checks, writes, verifies and logs

    apply reads the resource again and refuses if any field the plan touches, or the resource's version, changed since the plan. Otherwise it writes, reads again to confirm the change (confirmed: true, or confirmed: false with warnings when the re-read cannot show it), and appends one line to apply-log.jsonl with the state before and after.

What else keeps the org safe

  • Single-use plans that expire

    A plan is applied once and expires 30 minutes after it is made. Two applies of the same plan at once write once: the second is refused.

  • Refusals are logged too

    An unknown, expired, already applied or stale plan writes nothing, and the refusal is logged with its reason.

  • Read-only mode

    With CENTREX_READ_ONLY=1, plan and apply refuse every write. Use it for sessions that should only read.

  • Access limited by the OAuth client's roles

    Centrex signs in with an OAuth client of your org (Client Credentials grant). The assistant can do only what that client's roles allow: give it only the roles the work needs.

  • Secrets stay out of files

    Values under secret field names (password, token, apiKey…) are redacted in plans, logs and saved responses. You give them again at apply; they are sent with the write and never saved.

  • No telemetry

    Centrex runs on your machine. It calls your org's own region and, only for Architect flow files, the storage links the Platform API hands back.

When the current state cannot be read

Some writes have no read operation that shows the current state, or the read answers 403 or 404. The plan says so (stateKnown: false) and shows the call and payload, and apply writes without the staleness check. You still see and approve the plan. A delete whose read answers 404 is refused: there is nothing to delete.

Never allow-list apply

Centrex does not try to prove that a person approved a plan. The person's gate is your assistant's permission prompt on apply. If apply is in the client's allow-list, the assistant can write to your org without anyone seeing the plan.

The read-only actions (search, describe, execute, status and plan) can be allow-listed. In Claude Code that looks like this; never allow the whole server (mcp__centrex or mcp__centrex__*), which would include apply:

{
  "permissions": {
    "allow": [
      "mcp__centrex__search",
      "mcp__centrex__describe",
      "mcp__centrex__execute",
      "mcp__centrex__plan",
      "mcp__centrex__status"
    ],
    "ask": ["mcp__centrex__apply"]
  }
}

A client that calls tools with no person to answer its prompts must get Centrex only with CENTREX_READ_ONLY=1.

Read more