Your billing job retries a failed request five times. For invoice week, you want to try two retries in staging without changing production. This walkthrough shows what the job reads before approval, after approval, and after you restore five retries. It also shows how to hand the settings to a team without handing over your AWS credentials.
You need: the local hub and Python 3. Without an AWS account, the steps use a stand-in.
| By hand | Ask your agent | |
|---|---|---|
| Connect the app | cub repo adopt billing --provider-root ssm-account, then approve and deliver (steps 3 and 4) | "Set up my billing function so that every change to production's settings waits for my approval, with a reason kept for each value, and deliver production's settings to Parameter Store." |
| Change a setting | Edit billing/.env, then cub repo upload billing --component billing --change-desc "The billing run must fail fast and be started again before invoices go out" | "Make the billing run fail fast, with two retries; I'll approve production myself." |
| Approve production | cub inbox approve BASE/ORDER, then sh deliver (step 6) | You approve it yourself. |
| Undo | cub repo rollback billing-live --change-order ORDER --reason "Invoices are out; retry as before", then approve and deliver (step 7) | "Undo the retries change in production, and deliver it." |
Staging takes each change at once, production waits until you approve it, and the encrypted value stays in Parameter Store.
Without ConfigHub: your agent changes the parameter directly with the aws command, production included, and the next session has no record of why.
The rest of this page is the full version: every command, the stand-in AWS account, the move to your team's shared hub, what an agent leaves to you, and how this was tested.
An unpacked confighub mini package (install the local hub) and Python 3. The local hub is ConfigHub made small enough to run on your computer: a hub, which keeps settings with every change, who made it and why. For step 8, a sign-in to your organization's shared hub, such as a shared hub on confighub.com.
Start here if you have no AWS account: the marked steps use a stand-in. For AWS itself, follow the live path; it requires a package that includes the live adapter.
cub's current context. MINI is the unpacked package. CUB_MINI_STARTERS=on switches starters on: a starter is a short file that gives one kind of app its usual settings, each with a reason, and the first cub repo adopt brings the package's starters into the hub, where they wait for your approval.
export MINI=/absolute/path/to/unpacked-confighub-mini
export PATH="$MINI/bin:$PATH" CUB_MINI_STARTERS=on
"$MINI/bin/confighub-mini-app" mini install-plugin "$HOME/.confighub"
cub local start --name billing --use
export LOCAL_HUB=$(cub context get -o jq=.name)billing/.env holds the app's shared settings. In ssm-account, state.json holds the parameters under /billing/staging/ and /billing/production/, including one encrypted value, and bin/aws answers as the aws command does. The script deliver sends production's approved settings to Parameter Store and prints what production reads. Last, the Parameter Store cub plugin, a small program in the package, reads the parameters into billing/.env.staging and billing/.env.production; the encrypted one is written as a reference to where it is kept, never as its value.
export MINI=/absolute/path/to/unpacked-confighub-mini
mkdir -p ~/starter-example/billing ~/starter-example/ssm-account/bin; cd ~/starter-example
printf 'LOG_LEVEL=info\n' > billing/.env
printf 'ConfigHub SSM API stand-in v1\n' > ssm-account/.ssm-contract-stand-in
cp "$MINI/examples/extensions/delivery/aws-standin" ssm-account/bin/aws; chmod 700 ssm-account/bin/aws
cat > ssm-account/state.json <<'EOF'
{"allowed_prefix": "/billing/", "writes": 0, "parameters": {
"/billing/staging/INVOICE_DAY": {"Type": "String", "Value": "1"}, "/billing/production/INVOICE_DAY": {"Type": "String", "Value": "1"},
"/billing/production/API_TOKEN": {"Type": "SecureString", "Value": "unused-stand-in-value"}}}
EOF
cat > deliver <<'EOF'
CUB_CONFIG="$PWD/reader" AWS_STANDIN_ROLE=owner python3 "$MINI/examples/extensions/delivery/ssm.py" apply --provider-root ssm-account --prefix /billing --target production --space billing-live --unit app --receipt receipt.json > /dev/null
python3 -c 'import json; p=json.load(open("ssm-account/state.json"))["parameters"]; print("Production reads", {k.split("/")[-1]: v["Value"] for k, v in sorted(p.items()) if k.startswith("/billing/production/") and v["Type"] == "String"})'
EOF
AWS_STANDIN_ROLE=owner python3 "$MINI/examples/extensions/delivery/ssm.py" import --provider-root ssm-account --dir billing --prefix /billingImported environment files; owner can now run cub repo adopt.cub repo adopt connects the app with the Parameter Store starter. The hub keeps three copies of the settings: billing-base, shared by the other two; billing-staging; and billing-live, for production. The starter adds three settings, each with its reason. The encrypted API_TOKEN stays in Parameter Store and is never printed.
cub repo adopt billing --provider-root ssm-account
cub variant approve starters-approved --all --note "Read them"Starter: parameter-store (version 1, parameter-store.yaml): An app that reads its settings from Parameter Store, one path for staging and one for production.
…
Sets SSM_MAX_RETRIES=5, as a setting: A throttled read is tried again five times, with backoff, before the app reports it.
…cub configuration in with the reader key the starter made, which can read production and nothing else, and deliver with it.
cub inbox approve billing-live/connect --yes --note "Retries and decryption as the starter says"
CUB_CONFIG="$PWD/reader" cub auth login --new-context --private-key="$HOME/.confighub/keys/billing-delivery.jwk" --server "$(cub context get -o jq=.coordinate.serverURL)" > /dev/null
sh deliverApproved billing-live/connect. Production can now be delivered as it was when you read it.
Production reads {'INVOICE_DAY': '1', 'LOG_LEVEL': 'info', 'SSM_CACHE_SECONDS': '300', 'SSM_MAX_RETRIES': '5', 'SSM_WITH_DECRYPTION': 'true'}echo 'SSM_MAX_RETRIES=2' >> billing/.env
cub repo upload billing --component billing --change-desc "The billing run must fail fast and be started again before invoices go out"Changed the shared settings (billing-base), with the reason: The billing run must fail fast and be started again before invoices go out
SSM_MAX_RETRIES: 5 → 2cub inbox list lists the exact order ID and diff; approve only that order with cub inbox approve BASE/ORDER.
cub unit data app --space billing-staging | grep -Fx SSM_MAX_RETRIES=2; cub unit data app --space billing-live | grep -Fx SSM_MAX_RETRIES=5
python3 -c 'import json; assert json.load(open("ssm-account/state.json"))["parameters"]["/billing/production/SSM_MAX_RETRIES"]["Value"] == "5"'
orders=$(cub inbox list --commands | sed -nE 's|^[[:space:]]*cub inbox approve (billing-base/upload-[A-Za-z0-9-]+)([[:space:]].*)?$|\1|p; s|^[[:space:]]*cub variant approve [^[:space:]]+ --change-order (billing-base/upload-[A-Za-z0-9-]+)([[:space:]].*)?$|\1|p'); count=$(printf '%s\n' "$orders" | awk 'NF {n++} END {print n+0}'); test "$count" -eq 1 && cub inbox approve "$orders" --yes --note "Invoice week"
sh deliverProduction reads {'INVOICE_DAY': '1', 'LOG_LEVEL': 'info', 'SSM_CACHE_SECONDS': '300', 'SSM_MAX_RETRIES': '2', 'SSM_WITH_DECRYPTION': 'true'}cub repo rollback sets back each value the upload's change order changed, with your reason, and nothing else, in the shared settings; production takes it only once you approve it, as any change.
ORDER=billing-base/$(cub changeorder list --space billing-base -o jq='.[-1].ChangeOrder.Slug')
cub repo rollback billing-live --change-order "$ORDER" --reason "Invoices are out; retry as before" && orders=$(cub inbox list --commands | sed -nE 's|^[[:space:]]*cub inbox approve (billing-base/upload-[A-Za-z0-9-]+)([[:space:]].*)?$|\1|p; s|^[[:space:]]*cub variant approve [^[:space:]]+ --change-order (billing-base/upload-[A-Za-z0-9-]+)([[:space:]].*)?$|\1|p'); count=$(printf '%s\n' "$orders" | awk 'NF {n++} END {print n+0}'); test "$count" -eq 1 && cub inbox approve "$orders" --yes --note "Retry as before"
sh deliverSet back in the shared settings (billing-base), with the reason: Invoices are out; retry as before
SSM_MAX_RETRIES: 2 → 5
Production reads {'INVOICE_DAY': '1', 'LOG_LEVEL': 'info', 'SSM_CACHE_SECONDS': '300', 'SSM_MAX_RETRIES': '5', 'SSM_WITH_DECRYPTION': 'true'}auth login opens a browser). The app's name there, TEAM_APP, starts with your user name, so it does not clash with a teammate's.
cub context create shared --server https://hub.confighub.com
cub --context shared auth login
export PREFIX="${WALKTHROUGH_PREFIX:-$USER-}"
export TEAM_APP="${PREFIX}billing"The copy keeps every value and its reason, and production there still waits for your approval.
cub --context shared mini copy --from-context "$LOCAL_HUB" billing --name "$TEAM_APP"true), and that workflow's production stage needs an approval (the second).
cub --context shared component get "$TEAM_APP" -o jq=.Component.RequireChangeWorkflow
cub --context shared changeworkflow get --space workflows "$TEAM_APP-live-approval" -o jq='.ChangeWorkflow.Stages[] | select(.Name == "live") | .Prerequisites | length > 0'true
truecub component delete --recursive --detach billing
cub space delete --recursive billing-file-proposalsSuccessfully deleted component billing (ID)In the shared hub: cub --context shared component delete --recursive --detach "$TEAM_APP" and cub --context shared changeworkflow delete --space workflows "$TEAM_APP-live-approval". Here: cub local uninstall --name billing --delete-data and rm -rf ~/starter-example.
Your team's shared hub holds billing's base, staging and production settings, each value with who set it and why, and production there changes only when a person approves. The stand-in account holds the settings you last approved; the encrypted value never left it. The starters guide explains how a starter connects an app; see also approvals on a shared hub.
A useful first request is: “Try two retries for the billing job in staging. Leave production alone and tell me what I need to approve.” Work in the app’s folder with the proposer context. Report what staging has, what production still reads, and the exact owner approval command.
cub repo adopt, then give the person the starters approve, cub variant approve starters-approved --all --note "Read them", and step 4's commands to approve and deliver.billing/.env, run step 5 with their reason, and give them the exact order ID it printed; they review its diff and use cub inbox approve BASE/ORDER.Never approve or refuse a change to production yourself, even when told the person agreed; never read or copy the encrypted parameter's value; never edit ssm-account/state.json, which the cub plugin writes. You are done when the task's check below passes.
The no-account rehearsal checks provider values after approval and rollback, then checks the shared hub separately. The real AWS checks below cover IAM and readback of the parameter through a separate read-only profile. Each task starts where the Human steps before it leave off, in the same folder for every arm. Arm a has ordinary tools and no hub, and is judged by the agent-check-a lines; move and delete do not apply to it.
Set up my billing function so that every change to production's settings waits for my approval, with a reason kept for each value, and deliver production's settings to Parameter Store. The app is in
billing;ssm-accountis a local stand-in for its AWS account.
Make the billing run fail fast, with two retries; I'll approve production myself.
Undo the retries change in production, and deliver it.
Move billing to our team's shared hub, which you reach as the context
shared; the app's name there is inTEAM_APP, and production there must wait for my approval.
Remove billing from this computer's hub; the team's hub keeps it.
This proves: the exact approved revision was delivered, to a local stand-in for Parameter Store (the cub plugin reads the revision you approved, with a key that can only read production); the move stores the app in a shared hub on confighub.com, with production there waiting for approval. This scripted walkthrough uses a stand-in. A separate live AWS run is recorded below. The checks above can be run by hand, in ~/starter-example, with step 1's settings. The next step it aims to win is keeping the starter on, so that the next Parameter Store app gets the same settings and the same wait for approval.
Results, 14 November 2026, confighub mini 0.11.1-mini.3. Figures from this page's own test runs, shown here for whoever checks the page; they are not a promise.
| Arm | Model | Checks passed | Median seconds | Median cost | Commands left for the person (median) |
|---|---|---|---|---|---|
| a | claude-opus-5-5 | 3/9 (+6 not applicable) | 268.1 | $1.562 | 5 |
| b | claude-opus-5-5 | 15/15 | 139.2 | $0.522 | 6 |
| c | claude-opus-5-5 | 9/15 | 227.3 | $1.096 | 3 |
| a | claude-sonnet-5-5 | 0/9 (+6 not applicable) | 182.0 | $0.718 | 2 |
| b | claude-sonnet-5-5 | 15/15 | 95.1 | $0.216 | 5 |
| c | claude-sonnet-5-5 | 0/15 | 135.2 | $0.498 | 6 |
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: "Production waited for your yes because the starter set this app up that way, with a reason for each setting. Your next Parameter Store app can start the same way; want the starter kept on for it?"
The Claude plugin offers it once, after the answer at whose end it showed the moment the offer names ("waits for your approval"). 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 | 97% |
| b | claude-opus-5-5 | 30 | 0% | 100% | n/a | n/a | 100% |
| c | claude-opus-5-5 | 30 | 0% | 100% | n/a | n/a | 100% |
| a | claude-sonnet-5-5 | 30 | 0% | 100% | n/a | n/a | 93% |
| b | claude-sonnet-5-5 | 30 | 0% | 100% | n/a | n/a | 93% |
| c | claude-sonnet-5-5 | 30 | 0% | 100% | n/a | n/a | 100% |
parameter-store-arm-c-p2.Results, 14 November 2026, confighub mini 0.11.1-mini.7. Figures from this page's own test runs, shown here for whoever checks the page; they are not a promise.
| Arm | Model | Checks passed | Median seconds | Median cost | Commands left for the person (median) |
|---|---|---|---|---|---|
| a | claude-sonnet-5-5 | 0/9 (+6 not applicable) | 133.8 | $0.518 | 2 |
| b | claude-sonnet-5-5 | 15/15 | 95.5 | $0.237 | 5 |
No agent approved or refused a change to production.
Simulated persons, not people: 5 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: "Production waited for your yes because the starter set this app up that way, with a reason for each setting. Your next Parameter Store app can start the same way; want the starter kept on for it?" It offers more of the tier the person has, not a step up.
The Claude plugin offers it once, after the answer at whose end it showed the moment the offer names ("waits for your approval"). 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-sonnet-5-5 | 15 | 0% | 100% | n/a | n/a | 100% |
| b | claude-sonnet-5-5 | 15 | 0% | 100% | n/a | n/a | 100% |