Repository navigation
fix(efficacy): write a trial's refreshed token back while the trial runs - #88
Merged
Merged
Conversation
A trial's refresh retires the refresh token the account's file holds, and the write-back waited for the trial's end, so the owner's own session was forced to log in mid-trial. A watch now writes a later home token back as soon as it appears, under the same lock and compare; the link is still remade only between trials. Closes #87 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DpT5xPB8YTAMW2Msp4aPTX
6 tasks
The watch stopped without a final look, so a refresh after it waited for the next trial's re-link, which the last trial of a run, or one before a long wait for the generator, does not reach for hours. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DpT5xPB8YTAMW2Msp4aPTX
Contributor
Author
|
Addressed the P2 finding in 3b1cc92: the watch now does one final write-back as the trial ends, after the watcher has stopped.
|
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.
A trial's token refresh retires the refresh token the account's file holds. The harness wrote the new one back only at the trial's end, so the owner's session was forced to log in mid-trial. A watch now writes it back within 15 s. Closes #87.
tests/efficacy/harness.pycredential_watch: polls the home's file during each build and change trial; writes back throughwrite_backundercredential_locktests/efficacy/harness.pydocs/architecture/06-runtime-view.mdrefresh_credentialsstays the final pass.Verification
BENCHMARK_TEMPLATES=../solid-ai-templates)🤖 Generated with Claude Code
https://claude.ai/code/session_01DpT5xPB8YTAMW2Msp4aPTX