Change what a Temporal worker retries
A dependency is overloaded. Try one Activity attempt in staging while production continues retrying. When you approve the change, new workflow runs use the released policy. If callers need the old behavior, approve a rollback and watch the Temporal worker succeed again.
Quick start
You need: an unpacked mini package containing the Temporal worker starter, plus Go, Python 3 and the Temporal CLI.
| By hand | Ask your agent | |
|---|---|---|
| Connect the worker | Adopt the checkout with CUB_MINI_STARTERS=on, then cub mini receipts worker --setup (step 2) | "Connect the disposable Temporal worker and show the approved catalog and initial behavior." |
| Try one attempt | cub mini set worker ACTIVITY_MAX_ATTEMPTS=1 --variant base --change-desc "Reduce retries during the incident" | "Try one attempt, and show what happens before and after the owner's approval." |
| Approve and deliver | Approve the live order, then deliver it with the cub plugin and --live (step 4) | You approve it yourself. |
| Roll back | Propose restoring the retry limit, then approve and apply it (step 5) | "Restore the policy and show the Temporal worker uses the new rollback revision." |
To rehearse all of it in disposable hubs, run "$MINI/examples/temporal/starter/check-worker" --package "$MINI" --out "$PWD/temporal-results".
Without ConfigHub: your agent changes the retry policy directly in the worker's app.env, production included, and the next session has no record of why.
Restart the Temporal worker during a rollout
You choose the disposable rehearsal and ask your agent to show what survives the restart. Your agent runs the command below from the unpacked package and reports the retry count before and after the test approval. You can also run it yourself. For a real production rollout, you approve the policy.
MINI="$PWD"
"$MINI/examples/temporal/starter/check-worker" --rollout --package "$MINI" --out "$MINI/temporal-rollout"The rehearsal uses a test owner. Check that production keeps its old retry limit while approval waits, that the worker resumes after a restart, and that delivery refuses a policy whose contents differ from its approved digest.
Deeper dive
The rest of this page is the full version: the packaged rehearsal, connecting your own worker, the probes that show how many attempts a workflow run makes, the move to a shared hub, and how this was tested.
Show the full walkthrough
Human
Use an unpacked mini package containing the Temporal worker starter, plus Go, Python 3 and the Temporal CLI. The comparison uses disposable hubs on loopback and a real Temporal development service.
Steps
- From an empty directory, run the package example. It conducts steps 2–6 in disposable hubs, with scripted approvals. Use the commands in the example's
examples/temporal/starter/README.mdwhen connecting your own app. Approve production from your account.export MINI=/absolute/path/to/unpacked-confighub-mini test -x "$MINI/examples/temporal/starter/check-worker""$MINI/examples/temporal/starter/check-worker" --package "$MINI" --out "$PWD/temporal-results"PASS the approved rollback reaches a new revision and restores worker behavior - Switch starters on with
CUB_MINI_STARTERS=on. Adopt the checkout containing the worker executable andapp.env. Review the structured catalog in the hub. Verifycub mini receipts worker --setupidentifies the approved catalog revision. A newer pending starter should be ignored. - Use the scoped reader to write the approved policy. Start the Temporal worker from the example. Run the probe. The sample Activity fails twice and succeeds on its third attempt.
- Propose one attempt with
cub mini set worker ACTIVITY_MAX_ATTEMPTS=1 --variant base --change-desc "Reduce retries during the incident"and create a live change order. The old revision should still succeed on its third attempt. Then approve the order. Use the cub plugin with--live, the exact order and live revision, and run a new probe. It should now fail after one attempt. - Propose restoring the retry limit. The probe should still fail once while rollback waits. After approving and applying the rollback, a new probe should again succeed on attempt three, reporting the new revision. The example stops the test worker, Temporal development service and test hubs.
- To use a shared hub, copy the app to a disposable destination and check its approval workflow. Use the destination order, revision and reader to deliver; verify them with another probe. The local example does not run this step. Remove the destination app and workflow when finished.
To rehearse a rollout worker restart during approval, use mini.8 or later:
"$MINI/examples/temporal/starter/check-worker" --rollout --package "$MINI" --out "$PWD/temporal-rollout"
"$MINI/examples/temporal/starter/check-worker" --plain --out "$PWD/temporal-plain"The first rehearsal uses one shared settings upload and one approval of the resulting order. The second uses Temporal and local files, with its own approval signal. Both start and stop their own local Temporal workers.
Agent
Ask which Activity needs different retries and what outcome a probe should see. Show staging, the pending order and the running policy. Give the owner the exact approval command. In a new workflow run, report the number of attempts and the revision the worker actually loaded. Use the disposable example for checks. Tell the person that the rehearsal uses scripted fixture approvals. In a real rollout, only the owner approves production. The rehearsal stops its own Temporal processes and test hubs. Keep the output in temporal-results for later checks and leave the Go cache alone.
Testing
The comparison uses a real Temporal service and the same worker for two arms. The starter writes its policy and receipt together in temporal-activity-policy.json. The manual arm uses the full settings file and ordinary mini pull receipt. It verifies the approved starter catalog, the pending order boundary, a planted local settings change with the old receipt, the applied revision and hash, and recovery after rollback. Both arms must reach the same behavior. The starter wins only if its separate catalog and per-app setup costs are reported accurately.
Connect the disposable Temporal worker and show the approved catalog and initial behavior.
Try one attempt, and show what happens before and after the owner's approval.
Restore the policy and show the Temporal worker uses the new rollback revision.
Explain what I would need to move this to a shared hub. Give me the owner approval and reader setup steps without signing in or making changes there.
Make sure the rehearsal stopped its Temporal workers and test hubs. Check only the processes and folders this rehearsal created. Keep the result files so I can review them.
This proves: the structured starter is stored and selected, and a real Temporal worker runs the exact approved policy and its rollback on a local service. The hosted run below verifies delivery from a shared hub to a local Temporal worker.
In the local macOS arm64 mini.908 comparison, the starter passed 19/19 checks and manual mini passed 11/11 using scripted approvals. Both used revisions 3, 4 and 5 and showed the same retry behavior. The starter kept the original runtime environment and rejected a changed policy with the old digest. After catalog review it connected in one command (9.2 s). Manual mini took two (12.3 s) to create and connect a new pattern.
Test results
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.
- Scripted run: passed, 158 seconds for the steps, within the page's budget of 360. The real local Temporal worker passed 19 of 19 checks with the starter and 11 of 11 with manual mini. Both arms used scripted approvals.
Two Claude Sonnet 5.5 pilots with the Claude plugin passed all six deploy, update and rollback checks. The agents ran the disposable comparison, which supplies its own scripted approvals. Move and delete had no assertions. All ten simulated readers noticed the result and reported friction. Several flagged cleanup of local test files and the build cache as unexpected. The Claude plugin showed no next-step offer.
Two follow-up Sonnet 5.5 pilots used the same mini.7 package and passed all six deploy, update and rollback checks. Move and cleanup were discussion and verification tasks with no scored assertions. Seven of ten simulated readers reported friction. Agents brought up unrelated database processes, and some readers still found the handoff hard to follow. The runner reported no processes left by these pilots. The cleanup prompt now scopes the check to resources created by the rehearsal. That final wording has not been piloted.
On the checksum-verified macOS arm64 mini.8 archive, the separate Story 5 restart rehearsal passed all 17 checks. Plain Temporal passed all seven shared runtime checks using a custom approval signal and digest-checked file delivery. Restart to delivery took 2.827 seconds with the starter and 0.983 seconds with plain Temporal in this local run. The scripted owner approved the main rollout once in each arm. Only the starter arm checks the approved catalog and the hub's approval record. The plain arm does not authenticate a separate owner.
- Focused shared-hub check on published mini.9, 15 November 2026. The packaged Temporal starter established the initial policy, and the app was copied to a shared hub on confighub.com. The packaged delivery program refused the pending order. A real local Temporal worker still succeeded on attempt three from revision 2. The owner approved the destination order in the browser. The package delivered revision 3 using the destination's scoped reader, and a new workflow failed after one attempt as expected. The worker reported the same settings hash as the approved revision. The test app, workflows, reader and local processes were removed.