Uh oh!
There was an error while loading. Please reload this page.
fix(installer): attribute rejected-zone hint to its real source (Bugbot #356) - #357
Merged
Merged
Conversation
#356) The invalid-location failure branch always told the operator the zone was auto-derived from the timezone and pointed them at TRACEBLOC_CLIENT_LOCATION as the fix. When the rejected value actually came FROM that env override, the hint read as "your override was ignored" — the opposite of what happened. Track whether the location was pinned via TRACEBLOC_CLIENT_LOCATION ("env") or timezone-derived ("auto") and pass the source into _report_create_failure so the fix hint names the real origin. Defaults to "auto" when the caller omits it. Adds three unit tests covering both sources plus the default. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
LukasWodka
commented
Jul 16, 2026
Contributor
👋 Heads-up — Code review queue is at 37 / 30 Above the WIP limit. The team convention is to review existing PRs before opening new work. Open PRs currently in Code review (oldest first):
Pull from review before opening new work. (This is a nudge from the kanban WIP check, not a block.) |
shujaatTracebloc
previously approved these changes
Jul 16, 2026
The rejected-zone-hint edit changed scripts/lib/provision.sh; regenerate scripts/manifest.sha256 so the supply-chain "manifest is current" check passes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
saqlainsyed007
approved these changes
Jul 16, 2026
Uh oh!
There was an error while loading. Please reload this page.
saadqbal added a commit
that referenced
this pull request
Jul 16, 2026
…from timezone (#356) * Merge pull request #355 from tracebloc/feat/provision-drop-location-prompt feat(installer): stop prompting for location during register — auto-derive from timezone (#354) * fix(installer): attribute rejected-zone hint to its real source (Bugbot #356) (#357) * fix(installer): attribute rejected-zone hint to its real source (Bugbot #356) The invalid-location failure branch always told the operator the zone was auto-derived from the timezone and pointed them at TRACEBLOC_CLIENT_LOCATION as the fix. When the rejected value actually came FROM that env override, the hint read as "your override was ignored" — the opposite of what happened. Track whether the location was pinned via TRACEBLOC_CLIENT_LOCATION ("env") or timezone-derived ("auto") and pass the source into _report_create_failure so the fix hint names the real origin. Defaults to "auto" when the caller omits it. Adds three unit tests covering both sources plus the default. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * chore(installer): refresh manifest checksum for provision.sh (R8) The rejected-zone-hint edit changed scripts/lib/provision.sh; regenerate scripts/manifest.sha256 so the supply-chain "manifest is current" check passes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This was referenced Jul 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Fixes the one Cursor Bugbot finding on #356 ("Misleading invalid-zone failure hint",
scripts/lib/provision.sh#L85-88).When
client createrejects a location as not a valid carbon zone,_report_create_failurealways said the zone was auto-derived from the timezone and pointed the operator atTRACEBLOC_CLIENT_LOCATIONas the remedy. But when the rejected value came fromTRACEBLOC_CLIENT_LOCATION, that hint reads as "your override was ignored" — misleading.How
provision_client:"env"when pinned viaTRACEBLOC_CLIENT_LOCATION,"auto"when timezone-derived._report_create_failure, which now words the fix hint to the actual source (defaults to"auto"if omitted — back-compatible).provision.bats(env source, auto source, default).All 26 provision.bats tests pass locally.
bash -nclean.Merging into
developupdates the develop→main release PR #356.Rolls up under the location-drop task (#356) — Bugbot drive-by, no separate ticket.
Note
Low Risk
Installer-only messaging and test coverage; no change to provisioning logic, credentials, or API behavior.
Overview
When
client createrejects a carbon zone,_report_create_failureno longer always blames timezone auto-derivation.provision_clientrecords whether the location came fromTRACEBLOC_CLIENT_LOCATION(env) or timezone detection (auto), passes that into_report_create_failure, and the invalid-zone hints point operators at the right fix (correct the env var vs setTRACEBLOC_CLIENT_LOCATION). The third argument defaults toautofor backward compatibility.Three
provision.batscases cover env-sourced, auto-sourced, and omitted-source behavior.scripts/manifest.sha256is updated forprovision.sh.Reviewed by Cursor Bugbot for commit 9f7168d. Bugbot is set up for automated code reviews on this repo. Configure here.