Repository navigation
fix(build,client): the stale-checkout guard says when the fetch fails and when origin is missing, and the join token expiry is in hours - #107
Merged
Conversation
… and when origin is missing, and the join token expiry is in hours Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
retr0h
force-pushed
the
fix/guard-and-token-expiry
branch
from
November 27, 2026 05:29
c0b4416 to
a9028b4
Compare
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.
Part 3 of #103: items 8 and 9.
Changes:
git fetch, such as offline, was ignored, so the check compared with a staleorigin/mainwithout saying so. The run now says the fetch failed and whichorigin/mainit compared with.origin/mainfailed with an index error. It now fails with "has no origin/main to compare with: add the osapi remote as origin, or -e build_allow_stale=true".lab_join_expireswithregex_replace('h$', ''), so90mor1dgave 0, and a new token came on each run (the client: each run mints a new one-use join token for the local agent, because just agent never joined here #90 bug again). The expiry is nowlab_join_expires_hours, a whole number, andlab_join_expiresis built from it.Checks:
scratchpad/guardtest.sh): with no origin, it exits 1 with the message. With an origin whose fetch fails, it printsbranch 0 <sha> unfetched, and the run warns.ansible-lintpasses on build, client and group_vars.Closes #103: with #105 and #106, every item of #103 is fixed.
🤖 Generated with Claude Code