ConfigHub · Durable config for coding agents
Docs / examples/walkthroughs/starter-parameter-store.md Source on GitHub →

An app that reads AWS Parameter Store, with production behind your approval

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.

Quick start

You need: the local hub and Python 3. Without an AWS account, the steps use a stand-in.

By handAsk your agent
Connect the appcub 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 settingEdit 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 productioncub inbox approve BASE/ORDER, then sh deliver (step 6)You approve it yourself.
Undocub 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.

Deeper dive

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.

Show the full walkthrough

Human

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.

Steps

  1. Start a hub of your own; it becomes 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)
  2. Make the app and its stand-in AWS account. The job reads the settings that the stand-in returns. 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 /billing
    Imported environment files; owner can now run cub repo adopt.
  3. Deploy it. 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.
    …
  4. Approve production and deliver it. Then sign a separate 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 deliver
    Approved 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'}
  5. Update it. Edit the settings file as usual, and propose the change with its reason. Staging takes it at once. Production waits under a change order, the hub's request to change production, until you approve it.
    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 → 2
  6. Check what production still reads before approval, then approve the update and deliver it. cub 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 deliver
    Production reads {'INVOICE_DAY': '1', 'LOG_LEVEL': 'info', 'SSM_CACHE_SECONDS': '300', 'SSM_MAX_RETRIES': '2', 'SSM_WITH_DECRYPTION': 'true'}
  7. Undo the update in production. 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 deliver
    Set 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'}
  8. Move it to your team's shared hub. Sign in once (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"
  9. Check that production in the shared hub waits for you, without changing anything there: the app takes a change only through its change workflow (the first 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
    true
  10. Delete the app from your own hub, now that the shared hub holds it. Parameter Store keeps the values it was last given.
    cub component delete --recursive --detach billing
    cub space delete --recursive billing-file-proposals
    Successfully deleted component billing (ID)

Undo it

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.

What you have now

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.

Agent

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.

  • deploy, "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": run step 3's 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.
  • update, "Make the billing run fail fast, two retries; I'll approve production": edit 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.
  • undo, "Undo the retries change in production, and deliver it": run step 7.
  • move, "Move billing to our team's shared hub": run steps 8 and 9 with their context. Then check that production there waits for approval, by reading only, as the later step does; never make a change or a change order there to test it, and say so plainly if it does not.
  • delete, "Remove billing from this computer's hub": run step 10, only once the shared hub holds the app.

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.

Testing

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-account is 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 in TEAM_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.

Test results

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.

  • Scripted run (on confighub mini 0.11.1-mini.3, 14 November 2026): passed, 75 seconds for the steps, within the page's budget of 240; each of the three planted faults (a changed quoted line, a budget of zero seconds, a check that holds on a fresh hub) was caught.
  • Scripted run (on confighub mini 0.11.1-mini.7, 14 November 2026): passed, 62 seconds for the steps, within the page's budget of 240; each of the three planted faults (a changed quoted line, a budget of zero seconds, a check that holds on a fresh hub) was caught.
  • Environment, published confighub mini 0.11.1-mini.3 with its own plugin (0.86.0): A local hub and a local stand-in for AWS Parameter Store (no AWS account); a shared hub on confighub.com (the Kubara organization) for the move to a shared hub. Approvals were scripted: the test script ran the person's approve and deliver commands. This is the no-account path, not live AWS. After each run the runner removed the hubs it started and everything it made in the shared hub.
  • Agent runs: 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; c is the Claude plugin and the local hub, without this page.
ArmModelChecks passedMedian secondsMedian costCommands left for the person (median)
aclaude-opus-5-53/9 (+6 not applicable)268.1$1.5625
bclaude-opus-5-515/15139.2$0.5226
cclaude-opus-5-59/15227.3$1.0963
aclaude-sonnet-5-50/9 (+6 not applicable)182.0$0.7182
bclaude-sonnet-5-515/1595.1$0.2165
cclaude-sonnet-5-50/15135.2$0.4986

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.

ArmModelPersonsOfferedNoticedWant the next step nowLaterIn the way
aclaude-opus-5-5300%100%n/an/a97%
bclaude-opus-5-5300%100%n/an/a100%
cclaude-opus-5-5300%100%n/an/a100%
aclaude-sonnet-5-5300%100%n/an/a93%
bclaude-sonnet-5-5300%100%n/an/a93%
cclaude-sonnet-5-5300%100%n/an/a100%
  • Separate hosted AWS check on published mini.2, 14 November 2026: the real test parameter read 5 retries while the change to 2 waited, and the scoped reader was denied a direct AWS write. ConfigHub later recorded the named owner's browser approval against the proposed base revision. The owner then promoted it in the browser. The hosted order reported Released and Completed, without a forced promotion, and live revision 3 contained 2 retries. Its bytes matched the approved source revision. The published adapter refused the browser approval because it lacked the CLI revision claims. After the AWS session was renewed, the source candidate with the browser approval fix verified that approval and wrote revision 3. A separate read-only AWS profile read back 2 retries at Parameter Store version 2. The delivery receipt matched the hash of revision 3, and reapplying left the parameter at version 2. The test parameters, IAM roles, hosted app, workflows, invocation, and reader account were removed and checked absent. This live delivery used the source candidate adapter with the published mini.2 CLI; the published adapter itself did not deliver the change.
  • Arm c rerun on a branch build (package 0.11.1-mini.910, not a published package), 3 runs per model, 14 November 2026: Opus passed 15 of 15 tasks and Sonnet 5 of 15; no run invented a key, and two Sonnet runs failed on an expired shared sign-in. The record is in the ConfigHub mini repository's run records, 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.

  • Environment: checksum-verified published mini.7 for macOS arm64 and the Claude plugin it ships, with Claude Code on this computer. These are agent runs; the earlier scripted runs and planted faults are labelled separately.
  • Agent runs: a pilot, 3 runs per arm on each of claude-sonnet-5-5. Arms: a is ordinary tools only; b is the Claude plugin, the local hub and this page as reading.
ArmModelChecks passedMedian secondsMedian costCommands left for the person (median)
aclaude-sonnet-5-50/9 (+6 not applicable)133.8$0.5182
bclaude-sonnet-5-515/1595.5$0.2375

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.

ArmModelPersonsOfferedNoticedWant the next step nowLaterIn the way
aclaude-sonnet-5-5150%100%n/an/a100%
bclaude-sonnet-5-5150%100%n/an/a100%
  • Focused shared-hub check on published mini.9, 15 November 2026. The packaged delivery program refused the pending order, the AWS reader was denied a direct write, and Parameter Store continued to return 5 retries at version 1. After the owner approved and promoted the order in the shared hub's browser, the package applied live revision 3. Its receipt digest matched the approved revision. A separate AWS read returned 2 retries at version 2. Reapplying reported unchanged and AWS stayed at version 2. The test parameters, IAM roles, hub app and scoped reader were removed. This check read the AWS parameter directly. The no-account rehearsal above covers rollback.