Repository navigation
Keep Inbox answers through GitHub failures and low quotas - #1234
Merged
Merged
Conversation
Preserve Inbox failure/quota documentation alongside accumulated dismissal kinds, and regenerate the manual HTML. Validation: cargo check, cargo clippy --all-targets -- -D warnings, cargo fmt --check, and scripts/affected-tests origin/issue-919 passed. The affected-test selector used cargo test and completed in 1908.99 seconds wall, including Rust compilation and all 49 site checks.
Preserve GitHub issue settlement and History facts alongside Inbox failure diagnostics, last-answer times, shared quota reserves and refresh locking. Combine the site documentation and regenerate the manual. Extend regressions to cover Needs you issue facts during failed or quota-deferred reads and legacy cache migration. Validation: cargo check, cargo clippy --all-targets -- -D warnings, cargo fmt --check, and scripts/affected-tests origin/issue-919 passed. The affected-test run used cargo test: 2,504 Rust tests passed (57 ignored), and all 49 site checks passed, in 1,219.21 seconds wall including compilation.
This was referenced Oct 24, 2026
Merged
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.
Summary
Keep the Inbox usable when GitHub fails and leave its last quota to the factory.
Console and
statusshare the quota gate, kept facts and warning. JSON addsgithub_last_answered_atandgithub_failure. Warning changes wake open Inbox pages. The site pages and domain-to-code index describe the behavior.Closes #1197
Evidence
github_failures_warn_with_last_answer_and_clear_after_recoveryfailed because JSON omitted the last-answer time and failure.After: binary and Console HTTP tests cover unreachable GitHub, expired credentials, rate limiting, preserved groups, warning recovery, both quota reserves, reset recovery, and stopping between GraphQL batches.
cargo test --test status legacy_github_answer_time_survives_a_failed_refresh -- --exactfailed: a second read returned null instead of the known timestamp.After: the retained test passes; cache migration preserves the last good read time.
Validation on
2512089:scripts/affected-tests origin/issue-919passed with all 49 site browser checks and 2,485 Rust tests (57 skipped).cargo clippy --all-targets -- -D warningsandcargo fmt --checkpassed. All CI checks and release smoke checks are green on the same head.Timing:
PATH="$PWD/.thirdshift-review-XEZuP4/tools/bin:$PATH" /usr/bin/time -p scripts/affected-tests origin/issue-919took 2,698.80s wall, including site checks and Rust recompilation. The documented optional Nextest runner was supplied on that task-local PATH: Rust execution took 2,436.788s, with 2m 58s compilation. The CItestjob took 10m 58s execution, excluding queue time and including setup, formatting and clippy. Host load and runner differences limit timing comparisons.Test seams
thirdshift statusandstatus --jsonthrough the binary, with fakeghresponses and fixture timestamps.gh.Review coverage
Independent Standards and Spec reviews used
issue-919pinned at326e4a175becdf9e576049c1a80f4392f3195c6f(the fetched remote branch; the local branch is stale in another worktree). Both reviewers read all 18 changed files, including generated output. Changed files left unread: none. Generated-output exclusions: none.Standards: both P3 suggestions addressed (typed quota reset clocks and shared Console fixture aging). Spec: the P2 timestamp migration defect reproduced, fixed and verified. Reports, including final files-read lists, are retained in
.thirdshift-review-XEZuP4/standards.mdand.thirdshift-review-XEZuP4/spec.mdbeside the Session trace.Unaddressed findings
Security review outcome
No unaddressed introduced findings.
CI notes
testjob: inherited fixture race ingithub::inbox_remains_responsive_during_a_blocked_github_read;Scenario::gh_callsreadsgh-calls.jsonwhile the fake'sappend_recordtruncates and rewrites it. The test and both helper files are byte-identical to issue-919 at c21c317; the same base test reproducesEOF while parsing a valueattests/support/mod.rs:1175withstrace -f -e inject=write:delay_enter=20ms. Left unchanged because the failure is unrelated to this branch.Local Repair validation on
91f1e21:scripts/affected-tests origin/issue-919passed (all 49 site checks and the full Rust suite viacargo test), 1,167.25s wall, with a cached Rust build. No source changes or CI re-runs.Merge Danger
Door: two-way
Reads GitHub and updates only the local kept answer. Existing version-1 answers remain readable, including their original last-answer time.
Blast Radius: Inbox
Affects CLI/Console refresh timing, warnings and shared GitHub quota use; the limits are fixed and add no User config settings.
Built with codex · gpt-6.1-sol · xhigh