Repository navigation
fix(deploy): deploy scripts read the repository from origin, not a stale owner - #240
Merged
Merged
Conversation
…ale owner All six deploy scripts pinned the GitHub API to beknown-work/bkt3code. The repository has since been transferred to iamtushar324, so that path answers with a 301 and nothing else. auto-deploy.sh read it with a curl that did not follow redirects, so jq got the redirect body and failed with "Cannot iterate over null" on every timer tick; bkt3 sat on old code after a green build until the artifact was installed by hand. The redirect-following flag has since been added, but every script still depends on a redirect GitHub only keeps until someone claims the old name. Each script now derives the slug from its checkout's origin remote and fails with a clear message if that is not an owner/name pair, so the next transfer needs no change here. Model: Claude Opus 5 via Claude Code in T3 Code. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: unavailable · PR result: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
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 free
to 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.
Problem
All six deploy scripts pinned the GitHub API to
beknown-work/bkt3code. The repository has since been transferred toiamtushar324, so that path answers with a301and nothing else:auto-deploy.shread that with acurlthat did not follow redirects, sojqgot the redirect body and failed on every timer tick:This is not theoretical — it fired today. After #224 merged,
Validate and deploy bkt3went green foraa846e707and the artifact was built, but bkt3 stayed on9d309d657through ~10 minutes of failing timer ticks until the artifact was installed by hand.The redirect-following flag has since been added to the three
auto-deploy.shscripts, which unblocks today. But every script still depends on a redirect that GitHub keeps only until someone claims the old name — at which point the deploy silently points at a repository we do not own.Fix
Each script derives the slug from its own checkout's
originremote, and fails with a clear message if that is not anowner/namepair:No owner is hardcoded anywhere in
deploy/now, so the next transfer needs no change here. Kept standalone per script rather than adding a shared sourced file, matching how these six scripts are already written.Verification
bash -nclean on all six.Derivation against all three live checkouts (
t3code-bkmain,t3code-expbkt3,t3code) yieldsiamtushar324/bkt3codeand passes the guard.The derived URL returns runs for each environment's workflow:
deploy-bkt3.ymlbkmainaa846e707successdeploy-expbkt3.ymlexpbkmaine1d692cb0successdeploy-t3.ymlt3main983e3edafsuccessNo application code changes, so no UI evidence applies.
Model: Claude Opus 5 via Claude Code in T3 Code.
🤖 Generated with Claude Code