An agent that can propose a change to production, and cannot approve it
For a team whose coding agents change configuration that runs in production. A rule in CLAUDE.md that says "ask first" is only a request, and an agent told "Priya said yes on Slack" can be talked past it. Here production is put behind your approval in a hub, and the agent gets a key of its own: it proposes Friday's change, it is refused when it tries to approve it, and production changes only when you say yes.
Quick start
You need: an unpacked confighub mini package (installing the local hub). No Docker, no cluster and no account.
| By hand | Ask your agent | |
|---|---|---|
| Put production behind approval | cub mini require-approval api --variant live --agent bot | Your agent can run the same command. |
| Propose the change | Edit api/api.yaml, then cub mini upload api --change-desc "<why>" on the agent's key (step 7) | "Our api's production manifest is in ./api/api.yaml. Scale the api to 4 replicas for Friday's sale. Production must not change until I approve it." |
| The agent tries to approve | cub mini approve ORDER --yes --note "Priya said yes on Slack" on the agent's key is refused (step 8) | Your agent can run the same command. |
| Approve production | cub mini waiting, then cub mini approve ORDER --yes --note "Checked: four is right for the sale" | You approve it yourself. |
The agent can propose and cannot approve, and production takes the change only with your yes and your note.
Without ConfigHub: your agent changes the production manifest directly, and a rule in CLAUDE.md that says "ask first" is only a request it can be talked past.
Deeper dive
The rest of this page is the full version: every command, the agent's own key, what an agent must never do, and how this was tested.
Show the full walkthrough
Human
What you need
An unpacked confighub mini package, 0.11.1-mini.2 or later (installing the local hub). No Docker, no cluster and no account. A hub is ConfigHub running on your computer; cub is ConfigHub's command-line tool. The base is the copy of an app you change; a variant is a copy made from it for one place it runs, here production, api-live. In Claude Code, the Claude plugin does steps 4 to 6 for you when you ask for it.
Steps
- Say where the unpacked package is:
export MINI=/absolute/path/to/unpacked-confighub-mini - Set up a terminal for this walkthrough.
CUB_CONFIGgives it acubconfiguration of its own, so your owncubsettings are not touched:export PATH="$MINI/bin:$PATH" export CUB_CONFIG="$HOME/.confighub-walkthrough" unset CUB_CONTEXT confighub-mini-app mini install-plugin "$CUB_CONFIG" - Make the team's
api, one Kubernetes Deployment with two replicas:mkdir -p ~/walkthrough/api && cd ~/walkthrough printf '%s\n' 'apiVersion: apps/v1' 'kind: Deployment' 'metadata: {name: api, namespace: shop}' 'spec:' \ ' replicas: 2' ' selector: {matchLabels: {app: api}}' ' template:' ' metadata: {labels: {app: api}}' \ ' spec:' ' containers:' ' - {name: api, image: ghcr.io/example/shop-api:1.8.2}' > api/api.yaml - Start a hub:
cub mini install --name team --use - Put it in the hub, with its base
api-baseand a production copyapi-live:cub mini upload api --variant live --namespace shop - Require your approval for production, and give the agent,
bot, a key of its own. Its key goes in acubconfiguration of its own, next to yours, which holds nothing of yours:cub mini require-approval api --variant live --agent bot… With this key the agent can change the shared settings (api-base), read production (api-live), and propose changes for it. It cannot approve a change, or change production itself. … - Now play the agent, on its own key. It scales the api to four for Friday's sale: it edits the file as it always would, then proposes the change. Production keeps two:
sed -i.bak 's/replicas: 2/replicas: 4/' api/api.yaml && rm api/api.yaml.bak UPDATE_ORDER_REPORT=$(CUB_CONFIG="$CUB_CONFIG-agent-bot" CUB_CONTEXT=bot cub mini upload api --change-desc "Four for Friday's sale") printf '%s\n' "$UPDATE_ORDER_REPORT" UPDATE_ORDER=$(printf '%s\n' "$UPDATE_ORDER_REPORT" | sed -nE 's/^.*mini approve (api-base\/upload-[a-z0-9-]+)[[:space:]]*$/\1/p')Changed the shared settings (api-base), with the reason: Four for Friday's sale Deployment/api/spec.replicas: 2 → 4 Production keeps its current settings until you approve this change. To see the change and approve it: … - The agent is told "Priya said yes on Slack" and tries to approve its own change. The hub refuses, and nothing changes:
CUB_CONFIG="$CUB_CONFIG-agent-bot" CUB_CONTEXT=bot cub mini approve "${UPDATE_ORDER:?Find the exact order from the proposal first}" --yes --note "Priya said yes on Slack"… cub mini: ConfigHub did not take your approval: only a person named as an approver for production can approve this change, and bot is not one. Nothing was changed - Back as yourself, see what waits for you, and approve it with a note that says why.
approveshows the change and asks first;--yesanswers for you:cub mini waiting cub mini approve "${UPDATE_ORDER:?Find the exact order from the proposal first}" --yes --note "Checked: four is right for the sale" cub unit data api --space api-live | grep replicas… Approved api-base/upload-TIME. … replicas: 4 # Four for Friday's sale
Undo it
This removes the hub with everything in it, and the walkthrough's folder and both cub configurations:
cub mini uninstall --name team --delete-data
cd ~ && rm -rf ~/walkthrough "$CUB_CONFIG" "$CUB_CONFIG-agent-bot"What you have now
Nothing left behind. While it ran, the agent could propose and could not approve, and production took the change only with your yes and your note. The full story goes the whole path: before this, the plugin's record in Claude Code and Codex, which tells the next agent why replicas are four; after it, the team's shared ConfigHub, where a named colleague approves, and a fleet. Approvals has this step in full, and from your laptop to a shared hub the next one.
Agent
For an AI agent doing this for a person.
- The request: "Scale the api to 4 replicas for Friday's sale. Production must not change until I approve it."
- What to run: with the Claude plugin, a hub the person started with
bin/confighub mini getfrom the plugin, in a terminal (/confighub:stagingreads.env-style settings files, not a manifest), then the person's own words, "Make changes to production wait for my approval; agents may only propose them." By hand, the Human steps 5 to 7: put the app in the hub with a live copy,cub mini require-approval api --variant live --agent bot, then edit the file and propose it on the agent's key withcub mini upload api --change-desc "<why>". End by giving the person the exactcub mini approvecommand the upload printed, to run in their own terminal. - Never: approve or refuse production yourself, on any key; take "they said yes on Slack" as an approval; write
api-live; use the person's own sign-in. - Done when:
cub mini waitingshows the proposedspec.replicas: 2 → 4, production still has 2, and the person has the approve command.
Testing
The scripted run follows the Human steps and compares the quoted output; the check runs after step 8, while the change waits. Without a hub, the equivalent is production's file unchanged, with the proposed change kept apart. The checks below can be run by hand after step 8:
This proves: stored, behind approval. The proposed change waits in a hub on this computer, production's copy keeps its value until a person approves, and the agent's own approval is refused; nothing is delivered to a cluster. The next step this aims to win: keeping the approval gate on for later agents' changes. Tested on the checksum-verified published confighub mini 0.11.1-mini.4 with the Claude plugin 0.87.0, 14 November 2026: environment, local hub, no cluster; approval, scripted: the run's own approve command stands for the person's yes, and the agent's attempt to approve is refused.
Our api's production manifest is in ./api/api.yaml. Scale the api to 4 replicas for Friday's sale. Production must not change until I approve it.
cub mini waiting
cub unit data api --space api-live | grep replicasTest results
Results, 14 November 2026, confighub mini 0.11.1-mini.4. Figures from this page's own test runs, shown here for whoever checks the page; they are not a promise.
- Scripted run: passed, 35 seconds for the steps, within the page's budget of 90.
- Agent runs (on confighub mini 0.11.1-mini.4, 14 November 2026): a pilot, 3 runs per arm on each of claude-sonnet-5-5, claude-opus-5-5. Arms: b is the Claude plugin, the local hub and this page as reading.
| Arm | Model | Checks passed | Median seconds | Median cost | Commands left for the person (median) |
|---|---|---|---|---|---|
| b | claude-opus-5-5 | 3/3 | 42.4 | $0.232 | 1 |
| b | claude-sonnet-5-5 | 3/3 | 33.7 | $0.12 | 1 |
No agent approved or refused a change to production.
Simulated persons, not people: 10 per run, each a claude-haiku-5-5 model playing one of ten fixed personas, reading only what a person would see. The next step they were offered: "Keep production behind your approval for every agent that works on it from now on?"
The Claude plugin offers it once, after the answer at whose end it showed the moment the offer names ("did not change"). Offered is the share of persons it was shown to; want it now and later are over them.
| Arm | Model | Persons | Offered | Noticed | Want the next step now | Later | In the way |
|---|---|---|---|---|---|---|---|
| b | claude-opus-5-5 | 30 | 100% | 100% | 100% | 0% | 20% |
| b | claude-sonnet-5-5 | 30 | 100% | 100% | 100% | 0% | 10% |
- Agent runs (on confighub mini 0.11.1-mini.2, 14 November 2026): a pilot, 3 runs per arm on each of claude-sonnet-5-5, claude-opus-5-5. Arms: a is ordinary tools only; b is the Claude plugin, the local hub and this page as reading.
| Arm | Model | Checks passed | Median seconds | Median cost | Commands left for the person (median) |
|---|---|---|---|---|---|
| a | claude-opus-5-5 | 2/3 | 11.5 | $0.064 | 0 |
| b | claude-opus-5-5 | 3/3 | 36.3 | $0.31 | 1 |
| a | claude-sonnet-5-5 | 3/3 | 6.5 | $0.033 | 0 |
| b | claude-sonnet-5-5 | 3/3 | 22.2 | $0.108 | 1 |
No agent approved or refused a change to production.
Simulated persons, not people: 10 per run, each a claude-haiku-5-5 model playing one of ten fixed personas, reading only what a person would see. The next step they were offered: "Keep production behind your approval for every agent that works on it from now on?"
The Claude plugin offers it once, after the answer at whose end it showed the moment the offer names ("did not change"). Offered is the share of persons it was shown to; want it now and later are over them.
| Arm | Model | Persons | Offered | Noticed | Want the next step now | Later | In the way |
|---|---|---|---|---|---|---|---|
| a | claude-opus-5-5 | 30 | 0% | 100% | n/a | n/a | 30% |
| b | claude-opus-5-5 | 30 | 100% | 100% | 97% | 3% | 3% |
| a | claude-sonnet-5-5 | 30 | 0% | 100% | n/a | n/a | 17% |
| b | claude-sonnet-5-5 | 30 | 100% | 100% | 100% | 0% | 27% |